Modify

Opened 17 years ago

Closed 17 years ago

Last modified 15 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

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?

Attachments (0)

Change History (2)

comment:1 Changed 17 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 17 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
Action
as closed The owner will remain Florent.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.