tracd not starting when using Auth

Skip to first unread message

Deniz Yalcin

Sep 14, 2021, 5:47:05 AM9/14/21
to Trac Users
Hello Everyone,

I'm having an issue starting the Environment while using an authentication method. 

The command to start the environment is following:
tracd -p 8000 --auth="C:\tracprojects, C:\tracprojects," C:\tracprojects

On Start it produces an Error in the CMD:
IOError: [Errno 13] Permission denied: 'C:\\tracprojects'

Im using the Standalone Trac Server with version 1.4.3

Im executing the cmd as Administrator and the account has highest privilege. Am i missing something here?


Sep 15, 2021, 3:34:06 PM9/15/21
to Trac Users
In the comma-separated auth string, argument 1 must be a Trac environment directory, argument 2 must be the path to the htdigest password file:


Deniz Yalcin

Sep 16, 2021, 4:05:49 AM9/16/21
to Trac Users
Dear Ryan,

Apologize, i havent realised that the File itself needs to be stated in the argument:  tracd -p 8000 --auth="C:\tracprojects, C:\tracprojects\trac.htdigest," C:\tracprojects

Like this it worked and i could also create and write a User into the file through Trac.  However i noticed that when clicking on the Login Page, i get the usual error when the authentication is not set up.
Authentication information not available. Please refer to the installation documentation.
But i followed the instructions from:
acct_mgr.admin.* = enabled
acct_mgr.api.* = enabled
acct_mgr.db.sessionstore = disabled
acct_mgr.guard.accountguard = disabled
acct_mgr.htfile.htdigeststore = enabled
acct_mgr.htfile.htpasswdstore = disabled
acct_mgr.http.* = disabled
acct_mgr.model.* = disabled
acct_mgr.notification.* = enabled
acct_mgr.pwhash.* = disabled
acct_mgr.pwhash.htdigesthashmethod = enabled
acct_mgr.register.* = enabled
acct_mgr.register.emailverificationmodule = enabled
acct_mgr.register.registrationmodule = enabled
acct_mgr.svnserve.svnservepasswordstore = disabled
acct_mgr.web_ui.* = enabled
acct_mgr.web_ui.loginmodule = disabled
acct_mgr.web_ui.resetpwstore = enabled
trac.web.auth.loginmodule = enabled
tracopt.ticket.commit_updater.* = enabled

allow_delete_account = enabled
auth_init = disabled
email_regexp = (?i)^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z0-9-]{2,63}$
force_passwd_change = enabled
generated_password_length = 8
htdigest_file = C:\tracprojects\trac.htdigest
htdigest_realm = Company
login_attempt_max_count = 0
password_store = HtDigestStore
refresh_passwd = disabled
register_basic_question = 
register_basic_token = 
register_check = BasicCheck,EmailCheck,UsernamePermCheck
require_approval = enabled
reset_password = enabled
user_lock_max_time = 86400
user_lock_time = 0
user_lock_time_progression = 1
username_regexp = (?i)^[A-Z0-9.\-_]{5,}$
verify_email = enabled


Sep 16, 2021, 11:42:29 PM9/16/21
to Trac Users
On Thursday, September 16, 2021 at 1:05:49 AM UTC-7 wrote:
Dear Ryan,

Apologize, i havent realised that the File itself needs to be stated in the argument:  tracd -p 8000 --auth="C:\tracprojects, C:\tracprojects\trac.htdigest," C:\tracprojects

Is "C:\tracprojects" a Trac environment directory? I would guess based on the name that it is a directory that contains environments, like:


If it's an environment directory it should contain these files:

VERSION    conf/      files/     log/       templates/
README     cache/     db/        htdocs/    plugins/ 

If not, change the first argument in the string to point to the Trac environment directory rather than its parent.

Deniz Yalcin

Sep 20, 2021, 9:32:27 AM9/20/21
to Trac Users
"C:\tracprojects" is the Environment, since it has all the contents inside.  It also contains all the files mentioned above :

Maybe my folder structure is not correct?

Jun Omae

Sep 20, 2021, 10:59:30 AM9/20/21
On Thu, Sep 16, 2021 at 5:05 PM Deniz Yalcin <> wrote:
> i havent realised that the File itself needs to be stated in the argument:
> tracd -p 8000 --auth="C:\tracprojects, C:\tracprojects\trac.htdigest," C:\tracprojects

Should be:

tracd -p 8000 --auth="tracprojects,C:\tracprojects\trac.htdigest,"
C:\tracprojects says
about the argument:

> Don't use an absolute path here as this won't work

Jun Omae <> (大前 潤)

Deniz Yalcin

Sep 29, 2021, 5:12:29 AM9/29/21
to Trac Users
Worked, thanks a lot. 
Reply all
Reply to author
0 new messages