Opened 10 years ago

Closed 10 years ago

# Error attempting to run WindowsServiceScript

Reported by: Owned by: anonymous Florent normal WindowsServiceScript normal 0.10

### Description

I would like to run trac as a windows service.

I'm running trac 0.10.3.1, tracd, WindowsServiceScript, and windows 2k.

I can install the service and it shows up as a windows service. When I try to start the service, it fails, with this message in the event log:

The instance's SvcRun() method failed  File "C:\Program Files\Python24\Lib\site-packages\win32\lib\win32serviceutil.py", line 785, in SvcRun
self.SvcDoRun()
File "C:\Program Files\Python24\Scripts\tracservice.py", line 94, in SvcDoRun
self.httpd = self.trac_init()
File "C:\Program Files\Python24\Scripts\tracservice.py", line 143, in trac_init
wsgi_app = TracEnvironMiddleware(dispatch_request, exceptions.NameError: global name 'dispatch_request' is not defined


Any ideas as to what this means and how to fix it?

Or any suggestions for other ways to do this?

### comment:1 Changed 10 years ago by Florent

are u sure u did not forget to include statement:

"from trac.web.main import dispatch_request"

(i never tried the patched script on 0.10)

### comment:2 Changed 10 years ago by anonymous

Resolution: → invalid new → closed

You're right, this was an editing error on my part. Thanks for your help.

### Modify Ticket

Change Properties