You are not logged in.
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.orgThe 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 versionAny hint?
domanov
Last edited by domanov (2010-10-11 09:57:42)
Offline
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
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" $PROJECTAfter:
tracd -d $HOSTNAME $PORT $AUTH $PROJECTIn 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