Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#1425 closed defect (invalid)

Error attempting to run WindowsServiceScript

Reported by: anonymous Owned by: Florent
Priority: normal Component: WindowsServiceScript
Severity: normal Keywords:
Cc: Trac Release: 0.10


I would like to run trac as a windows service.

I'm running trac, 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\", line 785, in SvcRun
 File "C:\Program Files\Python24\Scripts\", line 94, in SvcDoRun
   self.httpd = self.trac_init()
 File "C:\Program Files\Python24\Scripts\", 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?

Attachments (0)

Change History (2)

comment:1 Changed 11 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 11 years ago by anonymous

Resolution: invalid
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Florent.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.