You are not logged in.

#1 2010-10-08 13:18:33

domanov
Member
From: Italy
Registered: 2006-11-10
Posts: 45

[SOLVED] Trac standalone server refusing to start as daemon

Dear people,

Few months ago I set up trac to manage/access my svn repositories at work. The standalone tracd server got started as daemon from rc.conf, authentication with htdigest, everything was just fine.  Yesterday I realized that tracd was not reachable, and trying a start/restart:

# /etc/rc.d/tracd start
Usage: tracd [options] [projenv] ...
tracd: error: no such option: --auth '*',/srv/GroupWiki/htdigest,MyDomain.org

The relevant part of /etc/conf.d/tracd is:

PORT=80
AUTH="'*',/srv/proj1/htdigest,MyDomain.org"
PROJECT="/srv/proj1 /srv/proj2"

Thing is, if I start tracd from the command line using those same options, it runs fine:

# tracd -p 80 --auth "'*',/srv/proj1/htdigest,MyDomain.org" /srv/proj1 /srv/proj2
Server starting in PID 25260.
Serving on 0.0.0.0:80 view at http://127.0.0.1:80/
Using HTTP/1.1 protocol version

Any hint?

domanov

Last edited by domanov (2010-10-11 09:57:42)

Offline

#2 2010-10-11 02:11:12

Pingwinski
Member
From: Sweden
Registered: 2010-10-09
Posts: 15

Re: [SOLVED] Trac standalone server refusing to start as daemon

Hello!
Looks like you might need to escape the double quotation marks on the following line (and maybe add a new pair).

AUTH="'*',/srv/proj1/htdigest,MyDomain.org"

Maybe this will do the trick:

AUTH="\"'*',/srv/proj1/htdigest,MyDomain.org"\"

Offline

#3 2010-10-11 10:03:37

domanov
Member
From: Italy
Registered: 2006-11-10
Posts: 45

Re: [SOLVED] Trac standalone server refusing to start as daemon

Thanks Pingwinski! There is a problem with quoting, but not in the tracd.conf. Well, I had to edit the /etc/rc.d/tracd file to remove the extra quoting around "$AUTH" (and by the way, remove the $SINGLE variable, I didn't find any definition or reference to that...!!

Before:

    tracd $SINGLE -d $HOSTNAME $PORT "$AUTH" $PROJECT

After:

    tracd -d $HOSTNAME $PORT $AUTH $PROJECT

In conf.d/tracd.conf the line doesn't need extra escaping, i.e. is working like this:

AUTH="'*',/srv/project/htdigest,MyDomain.org"

Sending a message to the maintainer to take a look at this.

Greets,

Domanov

Offline

Board footer

Powered by FluxBB