Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#1425 closed defect (invalid)

Error attempting to run WindowsServiceScript

Reported by: anonymous Owned by: flox
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 8 years ago by flox

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 8 years ago by anonymous

  • Resolution set to invalid
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed The owner will remain flox.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.