tracd not starting when using Auth

26 views
Skip to first unread message

Deniz Yalcin

unread,
Sep 14, 2021, 5:47:05 AMSep 14
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,Company.com" 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?


RjOllos

unread,
Sep 15, 2021, 3:34:06 PMSep 15
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:

Ryan 

Deniz Yalcin

unread,
Sep 16, 2021, 4:05:49 AMSep 16
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,Company.com" 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:
https://trac-hacks.org/wiki/AccountManagerPlugin/AuthStores#HtDigestStore
[components]
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

[account-manager]
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


RjOllos

unread,
Sep 16, 2021, 11:42:29 PMSep 16
to Trac Users
On Thursday, September 16, 2021 at 1:05:49 AM UTC-7 deni...@gmail.com 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,Company.com" 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:

C:\tracprojects\environment1
C:\tracprojects\environment2
...

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

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

Maybe my folder structure is not correct?

Jun Omae

unread,
Sep 20, 2021, 10:59:30 AMSep 20
to trac-...@googlegroups.com
On Thu, Sep 16, 2021 at 5:05 PM Deniz Yalcin <deni...@gmail.com> 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,Company.com" C:\tracprojects

Should be:

tracd -p 8000 --auth="tracprojects,C:\tracprojects\trac.htdigest,Company.com"
C:\tracprojects

https://trac.edgewall.org/wiki/TracStandalone#UsingAuthentication says
about the argument:

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


--
Jun Omae <jun...@gmail.com> (大前 潤)

Deniz Yalcin

unread,
Sep 29, 2021, 5:12:29 AMSep 29
to Trac Users
Worked, thanks a lot. 
Reply all
Reply to author
Forward
0 new messages