Question

I am trying to setup trac 0.12.5 on debian 7. Trac is running as standalone service, tracd. I've generated .htpasswd file for basic authentification according with wiki instructions.

When I run tracd from console, evetything is ok, I can log into tracker:

$ sudo tracd -s -p 8000 --basic-auth="Trac,/var/Trac/.htpasswd," /var/Trac/

But when i run it via init script and try to log in, it says:

Trac Error Authentication information not available. Please refer to the installation documentation.

piece of init script which I suspect of error:

DAEMON_OPTS="--daemonize -s --pidfile=$PIDFILE --port=$PORT --basic-auth=\"Trac,/var/Trac/.htpasswd,\" $PROJECT_ENV"

full script: http://pastebin.com/kdDDjzvf

So how can i make tracd start automaitcally?

Sorry, if it's duplicate question, but i can't find it.

Was it helpful?

Solution

Problem solved after I've removed quote and equals sign in daemon options:

DAEMON_OPTS="--daemonize -s --pidfile=$PIDFILE --port=$PORT --basic-auth=\" Trac,/var/Trac/.htpasswd,\" $PROJECT_ENV"

became:

DAEMON_OPTS="--daemonize -s --pidfile=$PIDFILE --port=$PORT --basic-auth Trac,/var/Trac/.htpasswd, $PROJECT_ENV"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top