zope2instance fails to run as Windows Service under Python 2.6 and Zope 2.12
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| collective.buildout |
Undecided
|
Unassigned |
Bug Description
I am using Zope 2.12.7 and zope2instance version 4.0b1
starting zopectl>start fails with following error message
Zope434050762 (Zope instance at C:\c3_21June\
C:\Python26\
Jim Pharis (binbrain) wrote : | #1 |
Baiju Muthukadan (baijum) wrote : | #2 |
I am able to reproduce this issue in my Windows XP system.
Changed in collective.buildout: | |
status: | New → Confirmed |
Jim Pharis (binbrain) wrote : | #3 |
The new plone.recipe.
"C:\Python26\
Should be instead
"C:\Python26\
When you change 'exe' to 'py' the Windows service works.
Jim Pharis (binbrain) wrote : | #4 |
I should clarify that the above edit was performed on the command key in regedit.
Jim Pharis (binbrain) wrote : | #5 |
No, I'm still having trouble running as a Windows service. After the above edit I can run c:\python26\
harish bansal (harish-bansal) wrote : | #6 |
plone.recipe.
However you do need to change command key value in regedit.
kleist (kleist) wrote : | #7 |
This bug is fixed in plone.recipe.
harish bansal (harish-bansal) wrote : | #8 |
plone.recipe.
Sometimes on stopping service as
zopectl>stop
doesn't clear up instance.pid and instance.lock files, due to which subsequent
zopectl>start
fails to start the service again and it has to be run again.
kleist (kleist) wrote : | #9 |
Sometimes one can simply remove these files before starting the instance again. But sometimes the .lock file is locked by a hanging Python process, and can't be deleted. While we are trying to spot and squash the bug causing this, here is a tip:
* Install the command line utility "handle" http://
* As Administrator, run "handle instance.lock", the pid of the hanging Python process will be printed
* From PowerShell: "kill <pid>" (e.g. "kill 12345")
This issue is also tracked by http://
So I don't get this error but in a Windows env w/same versions of Zope and zope2instance after running zopectl> install and then zopectl> start I try a zopectl> status and see that pid=-1 and that no pid file was created. If I run in fg the pid file is created and I even get a ZMI. Trying windebug however I get a similar error.
"...can't open file 'client- script. exe': [Errno 2] No such file or directory". The exe created was actually client.exe. The python script created is client-script.py.