Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-24-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
A trivial problem

hi,
I want to start the glacier2router as a service .


1) D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --install OrNot ice.config=config.glacier2
2) D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --start OrNot

but failed:

Service start pending.
Service failed to start.
Current state: STOPPED
Exit code: 1066
Service specific exit code: 1
Check point: 0
Wait hint: 0

What is wrong with my operations?

OS: win2K server Sp4.


Thank you very much.

OrNot

Last edited by OrNot : 07-24-2005 at 11:23 PM.
Reply With Quote
  #2 (permalink)  
Old 07-24-2005
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
You should provide the full path to the config file, and make sure it's readable by the SYSTEM user.

Cheers,
Bernard
Reply With Quote
  #3 (permalink)  
Old 07-24-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
hi, Bernard,
Do you mean:


D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --install OrNot D:\\Ice-2.1.2\\demo
\\issue\\Chat4\\ice.config=config.glacier2

D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --start OrNot

but also failed.

Service start pending.
Service failed to start.
Current state: STOPPED
Exit code: 1066
Service specific exit code: 1
Check point: 0
Wait hint: 0


I can start it as a common application so I think the confing file is readable , isn't it?
Reply With Quote
  #4 (permalink)  
Old 07-25-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Hi,

You need to check the configuration file permissions to ensure that it's readable by the SYSTEM user. You should also check the Windows event log with the Event Viewer application. It might contain some information on the reasons why the service isn't starting.

Benoit.
Reply With Quote
  #5 (permalink)  
Old 07-25-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
hi,
I have checked the config file permissions and make sure that it is readable to administrator(I always log into my pc with Administrator and never changed the file perperties since it was downloaded. Any special considerations are needed?)

The event log:

Event source: Service Control Manager
event ID: 7024
User: N/A

Description: The OrNot service terminated with service-specific error 1.

BTW: If I run it as a common app., It works very well.
------------------------------------------------------------
D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --Ice.Config=config.glacier2
------------------------------------------------------------

Thanks .
OrNot

Last edited by OrNot : 07-25-2005 at 05:53 AM.
Reply With Quote
  #6 (permalink)  
Old 07-25-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Did you also check the "Application" log in the event viewer? There should be more information there about the error.

Also note that the local system account doesn't have the same rights as an administrator, it might not be able to read the config file even if you can as an administrator. Did you try to grant read access to everyone on the configuration file? You can do this with the command line (or the Windows GUI):

Code:
   C:\> cacls config.glacier2 /G Everyone:R
I was able to run the Glacier2 router as a service using the configuration from the chat application from the Issue 4 of the newsletter. I had to do the following:
  • Start IceStorm
  • Start the chat server
  • Edit config.glacier2 and change the IceSSL.Client.CertPath and IceSSL.Server.CertPath properties to "C:\Ice-2.1.2\certs" (full paths)
  • Ensure that the "config.glacier2" file was readable by the local system account by giving it read access to everyone with "cacls config.glacier2 /G Everyone:R"
  • Register the Glacier2 service with "glacier2router --install Glacier2 --Ice.Config=C:\Ice-2.1.2\demo\chat\config.glacier2"
  • Start the Glacier2 service with "glacier2router --start Glacier2"

Hope this helps!

Benoit.
Reply With Quote
  #7 (permalink)  
Old 07-25-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
Thank you Benoit. The problems have been resolved following your steps. In comparison with your steps, an once not noticed error was :


glacier2router --install OrNot D:\\Ice-2.1.2\\demo
\\issue\\Chat4\\ice.config=config.glacier2

should be:


glacier2router --install OrNot --ice.config=D:\\Ice-2.1.2\\demo\\issue\\Chat4\\config.glacier2


Thank you again. Thank you for your patience. ICE is nice not only for itself but also for you and your colleagues.

Cheers
OrNot
Reply With Quote
  #8 (permalink)  
Old 08-25-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
Hi, Benoit,
So sorry but I have to trouble you again.
I have written a service program and run well in the mode of the console command.But it can not be started as a service when I installed and started it. The output of the system log seems like that in my previous post in this thread. What made me confused is that there isn't any application log output therefore I can not get any hints.

Service start pending.
Service failed to start.
Current state: STOPPED
Exit code: 1066
Service specific exit code: 1
Check point: 0
Wait hint: 0


What did I neglect ? How can I debug it ?
Thank you so much.
OrNot
Reply With Quote
  #9 (permalink)  
Old 08-25-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
You could add some logging to your service to see where it's failing to start. You can use the Ice logger to do this (you can get a reference on the logger with the communicator->getLogger() method). You'll also need to configure the logger to log to the system event log by setting the Ice.UseEventLog property to 1.

Hope this helps,

Benoit.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trivial correction stephan Patches 3 10-19-2004 06:59 PM


All times are GMT -4. The time now is 09:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.