Edgewall Software
Modify

Opened 19 years ago

Closed 19 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 Christopher Lenz)

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 Christopher Lenz, 19 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

Are you sure you're using 0.8? If so, then why are you pointing tracd to a trac.db file instead of an environment directory?

Tracd will match the name of the project environment directory against the project name part of the --auth option, which would mean that your Trac environment should be called foundation. If it doesn't match, you'd get the above error.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.