#7496 closed defect (fixed)
tracd fails to run as service using srvany.exe and sc.exe
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | highest | Milestone: | 0.11.2 |
Component: | web frontend/tracd | Version: | 0.11.4 |
Severity: | blocker | Keywords: | srvany windows documentation |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
After upgrading from 0.10 to 0.11 and Python 2.4.4 tracd will no longer run as a service on windows 2003.
This was working with trac 0.11dev-r5982 according to: http://trac.edgewall.org/wiki/TracOnWindowsStandalone
Application: C:\Python24\Python.exe AppParameters: C:\Python24\Scripts\tracd -s -b 209.35.180.183 -p 80 D:\svn_repository\trac\afids
Using these values on the command prompt gets me a running tracd, but attempts to start it through srvany fail without any kind of logging.
Attachments (0)
Change History (10)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Summary: | tracd fails to run as service using srvany → tracd fails to run as service using srvany.exe and sc.exe |
---|
I have Trac 11.1 and Python 2.5.2 on Windows XP. With srvany.exe it looks like service do not runs at all.
If I register service with sc.exe system utility
sc create trac binPath= "C:/Python/Scripts/tracd.exe --single-env --port 8080\ --basic-auth=test-project,c:/trac/.htpasswd,realm c:/trac/test-project" displayname= "Trac Server" depend= Tcpip start= auto
it fails to run with reason:
Services Could not start the Trac Server service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion. OK
comment:3 by , 16 years ago
Keywords: | srvany windows added |
---|---|
Milestone: | → 0.11.3 |
Owner: | set to |
#7586 closed as duplicate.
This is an installation issue, but as there's apparently no working recipe (TracOnWindowsStandalone#RunningTracdasservice is not enough?), it's maybe worth investigating.
comment:4 by , 16 years ago
Correct, there is no working recipe that I've been able to find.
The wiki instructions worked for Trac 0.10 and Python 2.4, but between the upgrade to Python 2.5 and Trac 0.11, this stopped working.
comment:5 by , 16 years ago
I'm running tracd as a service an it works just fine (Trac 0.11.1, WinXP, Python 2.5.2). AFAIR the problem is a change from 0.10 to 0.11.
For 0.10 the Application was python.exe with AppParameters tracd.py and with 0.11 it is sufficient to use tracd.exe as Application.
Here's what I did:
- Download and install Windows Server 2003 Resource Kit Tools
- Run InstSrv:
InstSrv tracd SrvAny.exe
- Edit this reg. key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tracd
- Create subkey
Parameters
- Add
Application
string value with exact fully qualified path to trac executable, e.g.C:\Python25\Scripts\tracd.exe
- Add
AppParameters
string value with following data:-p8000 C:\tracenv1 C:\tracenv2
- Create subkey
So the instruction on teo is correct, but with 0.11 tracd.exe should be used instead of tracd.py, which could be stated more clearly.
comment:6 by , 16 years ago
Keywords: | documentation added |
---|---|
Milestone: | 0.11.3 → 0.11.2 |
I've modified the recipe as suggested and added a link to it from the main TracStandalone page.
Ticket will be closed with the last round of documentation sync.
comment:7 by , 16 years ago
Resolution: | → fixed |
---|---|
Severity: | major → normal |
Status: | new → closed |
comment:8 by , 16 years ago
Priority: | normal → highest |
---|---|
Severity: | normal → blocker |
Version: | 0.11-stable → 0.11.4 |
I have the same problem in the same scenario but trac 0.1.1.4 and trac 0.1.1.3 with python 2.5.1 and python 2.6 : 『Warning: Can't synchronize with the repository (/var/svn/repositories/TestProject does not appear to be a Subversion repository.). Look in the Trac log for more information.』
comment:10 by , 15 years ago
Note : I had to reboot my system to get the service to actually launch tracd.
I have the same problem in the same scenario but trac 0.11 with python 2.5.2
here is the commandline:
tracd.py -p 8088 -a *,d:\alm\projects\conf\users.htdigest,trac d:\alm\projects
called from the ..\python25\Scripts directory it works fine, runs as a service with srvany it fails. On the same machine the previous version trac 0.10 with python 2.4.4 worked fine (now its uninstalled)
and here are my svrany registry entries:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Trac\Parameters\ Application: "d:\alm\python25\python.exe" AppParameters: "d:\alm\python25\scripts\tracd.py -p 8088 -a *,d:\alm\projects\conf\users.htdigest,trac d:\alm\projects"
hope it helps uli