[python-win32] Problems starting services - any advice?

David London david.london at sentai.com
Mon Dec 3 22:02:20 CET 2007


Hello all,
I'm encountering some strangeness when running my python code on a windows 
machine and I was wondering if anyone had any advice,

I have a number of python services (8) that run on a client machine, 
monitoring various database tables or folders, doing something with the data, 
then sleeping for a given amount of time and repeating. 
Normally, I have installed and run these services as "local system" and they 
have worked without any problems. 
For the latest client, they have asked that we run all of the services as a 
specific user. This is where I'm running into problems.
When I attempt to start the 8th service, it gives me an error (error 1053: The 
service did not respond to the start or control request in a timely fashion). 
It doesn't matter what order I start them in, the eighth service always fails 
to start. And if I change the service back to run as "local service" it runs 
without problem. 
I'm pretty sure that this is not a windows specific problem, since I can 
create another user (with the same permissions) and when I attempt to start 
the service it gives me the same error.
It appears as if there is some internal limit on the number of services that 
pywin can handle. 

Has anyone else encountered this? Or have any advice on where I could look to 
see what errors are being generated? I can not find any logs or error 
messages when the services fail to start.

This is happening on a windows server 2003 R2, standard edition, with service 
pack 2. I'm using python 2.5, with pywin32-210. 
Python is not installed in the default location (we put it in d:\python25), 
but the pywin installation has not been modified. 
The python class that handles the service has been attached.

Any suggestions would be helpful and appreciated.

Thanks,
David London
Sentai Software
david.london at sentai.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EventMailService.py
Type: application/x-python
Size: 3715 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-win32/attachments/20071203/f78b73f4/attachment.bin 


More information about the python-win32 mailing list