Edgewall Software

Ticket #7496 (closed defect: fixed)

Opened 5 months ago

Last modified 2 months ago

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

Reported by: jon.wbstr@… Owned by: cboos
Priority: normal Milestone: 0.11.2
Component: web frontend/tracd Version: 0.11-stable
Severity: normal Keywords: srvany windows documentation
Cc:

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

Change History

Changed 5 months ago by anonymous

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

Changed 3 months ago by anonymous

  • summary changed from tracd fails to run as service using srvany to 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

Changed 3 months ago by cboos

  • keywords srvany windows added
  • owner set to cboos
  • milestone set to 0.11.3

#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.

Changed 3 months ago by anonymous

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.

Changed 2 months ago by Simon <saimen54@…>

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.

Changed 2 months ago by cboos

  • keywords documentation added
  • milestone changed from 0.11.3 to 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.

Changed 2 months ago by cboos

  • status changed from new to closed
  • resolution set to fixed
  • severity changed from major to normal

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

Thanks Simon for your feedback!

Add/Change #7496 (tracd fails to run as service using srvany.exe and sc.exe)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.