ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> py2exe-users
py2exe-users
[Py2exe-users] Python service problems
by David Fraser other posts by this author
Jun 24 2004 9:03AM messages near this date
[Py2exe-users] How to avoid using setup parameters that are py2exe-specific | [Py2exe-users] sys.modules hijinx breaks windows executables
Hi

We are trying to debug a problem with services created using py2exe.
It seems that these problems have arisen after services were installed 
and removed a few times.

OK, first the actual problem we're seeing.  After compiling a service
with py2exe, running "service -install" and attempting to start it from
the Services dialog, it pops up the message "Windows could not start the
Service on Local Computer.  For more information, review the System
Event Log.  If this is a non-Microsoft service, contact the service
vendor, and refer to service-specific error code 1.".

The only thing in the System Event Log is an error logged by Service
Control Manager saying the service terminated with service-specific error 1.

Now, the causes.  On all the computers we've seen this problem, the
service has been installed at least once before and has been able to
start/stop properly.  On two of the computers, the problem arose after
uninstalling the service, installing it with "python service.py service
--install", running it with pythonservice in debug mode, uninstalling it
with "python service.py service --remove", and then reinstalling from
the executable.  Since then, the only way it ill run is from
pythonservice in debug mode.

On the third computer, the service was installed from executable, and
then reinstalled from an updated executable.  I'm not sure how many
times the old executable was installed and uninstalled (at most three 
times), but the updated
executable only ran once, and then showed the error.

One thing I noticed about the first computer is that, even after
uninstalling everything, there were some registry entries to do with the
installed services.  I could not delete these entries - I got an access
denied error (details below)

Does anybody have any ideas?

TIA,
David Fraser

Registry details: The service is called jHistExportService

The important remnant seems to be:
  HKLM\SYSTEM\ControlSet002\Services\jHistExportService and children

which actually holds details of how to run the service.  For the record, 
the other remnants are:
  HKLM\SYSTEM\ControlSet001\Enum\Root\LEGACY_JHISTEXPORTSERVICE and children

HKLM\SYSTEM\ControlSet001\Services\EventLog\Application\jHistExportService 
and children

HKLM\SYSTEM\ControlSet002\Services\EventLog\Application\jHistExportService 
and children
  HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_JHISTEXPORTSERVICE

HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\jHistExportService



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Py2exe-users mailing list
Py2exe-users@[...].net
https://lists.sourceforge.net/lists/listinfo/py2exe-users

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved