Hi Sean,

Thanks again for the help.

You are correct, the paste was wrong.  The file does say log_dir.

As for the 2 logs files, they both exist but are 0 bytes each.

So the service installs correctly and seems to start correctly.  The
browser is left waiting for a response that never comes.  Stopping the
service results in a long delay, followed by the message:

Error stopping service: The service did not respond to the start or
control request in a timely fashion. (1053)

at the command line and the following error in the System event log:

Timeout (30000 milliseconds) waiting for a transaction response from the
MarvinService service.

Additionally, if I just start and stop the service without trying to
load a page is works fine.  And running the service with the debug
option (python service.py debug), also produces no output, until I hit
CTRL-C to stop service in debug mode, in which case it outputs:

Stopping debug service.
Error 0xC0000003 - The instance's SvcRun() method failed

  File
"C:\marvin\Python24\lib\site-packages\win32\lib\win32serviceutil.py",
line 743, in SvcRun
    self.SvcDoRun()
  File "C:\marvin\marvin\service.py", line 92, in SvcDoRun
    cherrypy.server.start()
  File
"c:\marvin\python24\lib\site-packages\cherrypy-2.1.0-py2.4.egg\cherrypy\_cpserver.py",
line 111, in start
    self._start()
  File
"c:\marvin\python24\lib\site-packages\cherrypy-2.1.0-py2.4.egg\cherrypy\_cpserver.py",
line 129, in _start
    time.sleep(.1)

exceptions.IOError: [Errno 4] Interrupted function call

But it also gives that exact same message if I just start the debug mode
and CTRL-C it immediately with no page view.  This makes me thing that
this is what I should see when stopping debug mode.

This problem is frustrating because of the distinct lack of output or
error message.

I am going to try using the service on a brand new clean project to see
what happens.  I will also try adding a bunch of print statements to see
how far the service gets before hanging.

Anyway, I hope this extra info provides some insight.  I will post the
results of my findings when I have a change to try them.

Thanks again,
Krys

Sean De La Torre wrote:
> Krys,
> 
> The paths you specified in your original email look correct.  Here are
> a couple of things to check:
> 
> 1. In your earlier email, the last line in the config section is listed
> as " og_dir = r'' ".  Was that pasted correctly?  That line should read
> " log_dir = r'' ".
> 2. Check the base directory (c:\marvin\marvin) for two log file:
> stdout.log and stderr.log.  Those logs should contain output, and it is
> likely that your error will be found there.  If these logs do not
> exist, then check the Windows Event Logs to see if any errors are
> listed there.
> 
> Let me know if you find anything.
> 
> Thanks,
> 
> Sean
> 

<snip>

Reply via email to