Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#7496 closed defect (fixed)

tracd fails to run as service using srvany.exe and sc.exe

Reported by: jon.wbstr@… 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 anonymous, 16 years ago

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

comment:2 by anonymous, 16 years ago

Summary: tracd fails to run as service using srvanytracd 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 Christian Boos, 16 years ago

Keywords: srvany windows added
Milestone: 0.11.3
Owner: set to Christian Boos

#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 anonymous, 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 Simon <saimen54@…>, 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

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 Christian Boos, 16 years ago

Keywords: documentation added
Milestone: 0.11.30.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 Christian Boos, 16 years ago

Resolution: fixed
Severity: majornormal
Status: newclosed

Last round of doc sync done in r7651 (well, the TracLinks changes where already in).

Thanks Simon for your feedback!

comment:8 by anonymous, 16 years ago

Priority: normalhighest
Severity: normalblocker
Version: 0.11-stable0.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:9 by Simon <saimen54@…>, 16 years ago

Please explain, how this error is related to this ticket.

comment:10 by anonymous, 15 years ago

Note : I had to reboot my system to get the service to actually launch tracd.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.