Modify ↓
Opened 21 years ago
Closed 21 years ago
#1252 closed defect (invalid)
TracStandalone (tracd) fails to allow login
| Reported by: | anonymous | Owned by: | Jonas Borgström |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web frontend/tracd | Version: | 0.8 |
| Severity: | normal | Keywords: | tracd |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
I setup a passwords file using htdigest and then run tracd passing the "--auth project,d:/pathtopasswords,trac", but when I login I am getting the following error:
Trac detected an internal error:
'NoneType' object has no attribute 'do_auth'
Traceback (most recent call last):
File "tracd", line 232, in do_trac_req
self.do_real_trac_req()
File "tracd", line 242, in do_real_trac_req
self.remote_user = self.env.auth.do_auth(self)
AttributeError: 'NoneType' object has no attribute 'do_auth'
It seems like it isn't finding/using the passwords file since this is the same error I get when I startup tracd without the passwords file.
The full tracd start command is:
python tracd -p 9090 --auth foundation,d:/Tools/TracData/passwords,trac d:/Tools/TracData/trac.db
The full htdigest command is:
htdigest -c d:/Tools/TracData/passwords trac myUserName
Attachments (0)
Change History (1)
comment:1 by , 21 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → invalid |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



Are you sure you're using 0.8? If so, then why are you pointing tracd to a
trac.dbfile instead of an environment directory?Tracd will match the name of the project environment directory against the project name part of the
--authoption, which would mean that your Trac environment should be called foundation. If it doesn't match, you'd get the above error.