Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3796 closed defect (worksforme)

Login with All-In-One Installer

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10b1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

Hi I've run the all in one installer and I've looked around this site and the ML.

I have followed the instructions to set up auth as decribed on the http://trac.edgewall.org/wiki/TracStandalone#UsingAuthentication page.

I copied the script down and used the "trac-digest.py -u username -p password >> c:\digest.txt" cmd to create a psw file. This worked.

I start trac with tracd -p 8000 -a JQTest,D:\Trac\Project\conf\digest.txt,trac D:\trac\project\

It starts, but I still get the same error when I click on login.

"Traceback (most recent call last):
  File "d:\python24\lib\site-packages\trac-0.10b1-py2.4.egg\trac\web\main.py", line 335, in dispatch_request
    dispatcher.dispatch(req)
  File "d:\python24\lib\site-packages\trac-0.10b1-py2.4.egg\trac\web\main.py", line 220, in dispatch
    resp = chosen_handler.process_request(req)
  File "d:\python24\lib\site-packages\trac-0.10b1-py2.4.egg\trac\web\auth.py", line 95, in process_request
    self._do_login(req)
  File "d:\python24\lib\site-packages\trac-0.10b1-py2.4.egg\trac\web\auth.py", line 116, in _do_login
    assert req.remote_user, 'Authentication information not available.'
AssertionError: Authentication information not available."

What am I missing?

Attachments (0)

Change History (4)

comment:1 by Christian Boos, 18 years ago

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

You missed the Note: part in the refered section of TracStandalone

in reply to:  description ; comment:2 by anonymous, 18 years ago

Resolution: worksforme
Status: closedreopened

Replying to anonymous:

Hi I've run the all in one installer and I've looked around this site and the ML.

I have followed the instructions to set up auth as decribed on the http://trac.edgewall.org/wiki/TracStandalone#UsingAuthentication page.

I copied the script down and used the "trac-digest.py -u username -p password >> c:\digest.txt" cmd to create a psw file. This worked.

I start trac with tracd -p 8000 -a JQTest,D:\Trac\Project\conf\digest.txt,trac D:\trac\project\

It starts, but I still get the same error when I click on login.

"Traceback (most recent call last):
  File "d:\python24\lib\site-packages\trac-0.10b1-py2.4.egg\trac\web\main.py", line 335, in dispatch_request
    dispatcher.dispatch(req)
  File "d:\python24\lib\site-packages\trac-0.10b1-py2.4.egg\trac\web\main.py", line 220, in dispatch
    resp = chosen_handler.process_request(req)
  File "d:\python24\lib\site-packages\trac-0.10b1-py2.4.egg\trac\web\auth.py", line 95, in process_request
    self._do_login(req)
  File "d:\python24\lib\site-packages\trac-0.10b1-py2.4.egg\trac\web\auth.py", line 116, in _do_login
    assert req.remote_user, 'Authentication information not available.'
AssertionError: Authentication information not available."

What am I missing?

Ok there are 2 notes, one refers to Apache, I'm not using Apache. So I'll assume you mean the other note: "Note: If you use the above script you must use the —auth option to tracd, not —basic-auth, and you must set the realm in the —auth value to 'trac' (without the quotes). Example usage (assuming you saved the script as trac-digest.py): python trac-digest.py -u username -p password >> c:\digest.txt python tracd —port 8000 —auth proj_name,c:\digest.txt,trac c:\path\to\proj_name"

If you look at my start script it is as required: "tracd -p 8000 -a JQTest,D:\Trac\Project\conf\digest.txt,trac D:\trac\project\"

side by side: tracd —port 8000 —auth proj_name,c:\digest.txt,trac c:\path\to\proj_name tracd -p 8000 -a JQTest,D:\Trac\Project\conf\digest.txt,trac D:\trac\project\

which part of the note section did I miss? The project name is "JQTest" The path to this project is "D:\trac\project\" The digest.txt file is in "D:\Trac\Project\conf\"

What did I miss?

in reply to:  2 comment:3 by Matthew Good, 18 years ago

Resolution: worksforme
Status: reopenedclosed

Replying to anonymous:

If you look at my start script it is as required: "tracd -p 8000 -a JQTest,D:\Trac\Project\conf\digest.txt,trac D:\trac\project\"

side by side: tracd —port 8000 —auth proj_name,c:\digest.txt,trac c:\path\to\proj_name tracd -p 8000 -a JQTest,D:\Trac\Project\conf\digest.txt,trac D:\trac\project\

which part of the note section did I miss? The project name is "JQTest"

Note: the project "name" passed to the —auth option is the base name of the project environment directory.

In your case that would be "project".

Also please try to use the MailingList for support in using Trac.

comment:4 by anonymous, 18 years ago

Ok, thx that works now. Appreciate your assistance.

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.