Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 11-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
-->
questions about windows services

hi,there,
I have once installed glacier2router as a windows service and start it successfully three months ago, but today failed. I also tried icepath2server and a home made server ,failed too. The error code is 1053: The service did not respond to the start or control request in a timely fashion.
I am not sure what's wrong with it because I have updated my ice from 2.1.2 to 3.0.0 and during these months, the windows itself also was updated by microsoft.
Do you ever meet this problem?


OS : win2k sp4


Thanks in advance.

OrNot
__________________
Looking for the nails with my favorite hammer, ICE.
-------------------------------------------
Huo.Fei
GE Healthcare
Bin.Li@ge.com
--------------------------------------------

Last edited by OrNot : 11-25-2005 at 04:39 AM.
Reply With Quote
  #2 (permalink)  
Old 11-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 enable the event log for your services and checked the Windows event log if there was any warnings or errors?

To enable the use of the Windows event log for your service, you need to set the Ice.UseEventLog property to 1.

Benoit.
Reply With Quote
  #3 (permalink)  
Old 11-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,
I enabled Ice.UseEventLog to 1 ,but no outputs in app. event log.Together With the error 1053, there is an error message (event ID 7009) ,which said a timeout when waiting the server to begin(30 seconds.)
It seems too short to connect the service control.
__________________
Looking for the nails with my favorite hammer, ICE.
-------------------------------------------
Huo.Fei
GE Healthcare
Bin.Li@ge.com
--------------------------------------------
Reply With Quote
  #4 (permalink)  
Old 11-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
Could you give more information on how you registered the service? Please also make sure that the local system account has permissions to access to the service you want to run as well as its configuration file if you're using a configuration file.

I just tried to install IcePatch2 as a service and didn't get any troubles, I used the following commands:

Code:
  C:\> mkdir icepatch2_download
  C:\> icepatch2calc icepatch2_download
  C:\> icepatch2server --install IcePatch2 --IcePatch2.Endpoints="tcp -p 10000" --IcePatch2.Directory=C:\icepatch2_download
Benoit.
Reply With Quote
  #5 (permalink)  
Old 11-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
I tried the glacier2router with the chat demo:

To run the demo, first start the chat server:

$ server

In a separate window, start the Glacier2 router:

$ glacier2router --install GRouter --Ice.Config=D:\Ice-3.0.0\demo\Glacier2\chat\config.glacier2

$ glacier2router --start GRouter

now failed with error 1053.

(can you start your icepatch2server sucessfully?)
__________________
Looking for the nails with my favorite hammer, ICE.
-------------------------------------------
Huo.Fei
GE Healthcare
Bin.Li@ge.com
--------------------------------------------

Last edited by OrNot : 11-25-2005 at 07:28 AM.
Reply With Quote
  #6 (permalink)  
Old 11-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
Mmm, this works for me. However, I had to change the permissions on the configuration file to allow the local system account to read it. I also had to change the relative paths in the configuration to absolute paths.

Could you try the instructions I posted in this post and see if it helps (replace Ice-2.1.2 with Ice-3.0.0 in the instructions)?

Btw, yes the icepatch2server starts successfully.

Thanks,

Benoit.
Reply With Quote
  #7 (permalink)  
Old 11-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,
I changed the permissions from local system account to administrator and then worked.
$%$^%^&$.... . I don't know why. I tried in another pc with OS windows 2003, local system account is OK. Very Strange.
__________________
Looking for the nails with my favorite hammer, ICE.
-------------------------------------------
Huo.Fei
GE Healthcare
Bin.Li@ge.com
--------------------------------------------

Last edited by OrNot : 11-25-2005 at 10:21 PM.
Reply With Quote
  #8 (permalink)  
Old 11-28-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
FYI, I was able to reproduce this error 1053 today. It turned out that one of the DLL the icegridnode.exe executable depended on wasn't accessible to the "Local System" account... After changing the permissions on this DLL, I could start the icegridnode as a service. I suspect you're having a similar problem and I recommend you to check the persmissions on all the DLLs icegridnode.exe depends on.

Hope this helps,

Benoit.
Reply With Quote
  #9 (permalink)  
Old 12-02-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,
Can you reproduce this error with icepathc2server in win2000?

I can get rid of this error by

control panel->admin. tools->services-> icepatch2server property page->
login tab-> change the local system to administrator.

But, do you know how to achievet this by console commond because I want to do like this in program:

.....
int status;
status=system("icepatch2server --start PatchServer ");


Thanks a lot.
OrNot
__________________
Looking for the nails with my favorite hammer, ICE.
-------------------------------------------
Huo.Fei
GE Healthcare
Bin.Li@ge.com
--------------------------------------------
Reply With Quote
  #10 (permalink)  
Old 12-02-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
Yes, I'm able to reproduce the error 1053 with IcePatch2 if I change the permissions of one of the DLLs the icepatch2server.exe depends on. The problem goes away if I give the local system account the permissions to read the DLL.

For example, to give read acccess to the system account on all the DLLs from the Ice 3.0.0 directory you can use the following command:

C:\Ice-3.0.0\bin> cacls *.dll /E /G System:R
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
IceBox Determining Dependent Services Sameerrele Help Center 2 09-25-2006 01:59 PM
Purify and IceBox services xdm Help Center 4 06-07-2006 04:59 PM
Share endpoint between services in IceBox rspivak Help Center 2 04-14-2006 07:18 AM
Help on creating services w/ ICE stephan Help Center 6 02-02-2004 05:14 PM
Sincronithing services xdm Help Center 4 01-16-2004 02:59 PM


All times are GMT -4. The time now is 10:21 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.