Mailing List Archive

Authentication information not available. Please refer to the installation documentation
I'm trying to set up auths on a new Trac installation (Trac 0.11dev).


As per the documents page TracStandalone, I've created a python script
(cut and pasted the code from the page) and run it.

$ python tracauths.py -u aelfric -p tanelorn >> digest.txt


This produces a file digest.txt, which contains:

aelfric:trac:<<a long hex string here>>


I then start tracd with the command:

$ tracd -p 8000 -a=MediaLib,/Users/aelfric/Development/trac/auth/
digest.txt,trac /Urs/aelfric/Development/trac/


I get into the first project page (Welcome to Trac 0.11dev), but when
I click on Login, I get the following error:

Authentication information not available. Please refer to the
installation documentation.


Here's the log of messages from tracd prior to clicking on Login:

Server starting in PID 17596.
Serving on 0.0.0.0:8000 view at http://127.0.0.1:8000/
21:38:01 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.mimeview.php from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.ticket.query from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.attachment from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_fs from /
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.mimeview.patch from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.mimeview.txtl from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] ERROR: Skipping "trac.mimeview.txtl =
trac.mimeview.txtl [textile]": ("textile>=2.0" not found)
21:38:01 Trac[loader] DEBUG: Loading trac.admin.web_ui from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.ticket.admin from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.mimeview.rst from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.db.postgres from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui from /
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.timeline from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.mimeview.pygments from /
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.about from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.ticket.roadmap from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:01 Trac[loader] DEBUG: Loading trac.mimeview.silvercity from /
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] ERROR: Skipping "trac.mimeview.silvercity =
trac.mimeview.silvercity [silvercity]": ("SilverCity>=0.9.4" not
found)
21:38:02 Trac[loader] DEBUG: Loading trac.wiki.macros from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading trac.db.sqlite from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading trac.mimeview.enscript from /
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading trac.web.auth from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading trac.admin.console from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading trac.db.mysql from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading trac.search from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading trac.prefs from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading trac.ticket.report from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Trac-0.11dev_r6049-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading bitten.main from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Bitten-0.6dev_r516-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading bitten.master from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Bitten-0.6dev_r516-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading bitten.coverage from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Bitten-0.6dev_r516-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading bitten.web_ui from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Bitten-0.6dev_r516-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading bitten.admin from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Bitten-0.6dev_r516-py2.5.egg
21:38:02 Trac[loader] DEBUG: Loading bitten.testing from /Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
Bitten-0.6dev_r516-py2.5.egg
21:38:02 Trac[default_workflow] DEBUG: Workflow actions at
initialization: {'leave': {'operations': [u'leave_status'], 'name':
'leave', 'default': 1, 'newstate': u'*', 'oldstates': [u'*'],
'permissions': []}, 'reopen': {'operations': [u'del_resolution'],
'name': 'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates':
[u'closed'], 'permissions': [u'TICKET_CREATE']}, 'resolve':
{'operations': [u'set_resolution'], 'name': 'resolve', 'default': 0,
'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'accepted',
u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'accept':
{'operations': [u'set_owner_to_self'], 'name': 'accept', 'default': 0,
'newstate': u'accepted', 'oldstates': [u'new', u'assigned',
u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']},
'reassign': {'operations': [u'set_owner'], 'name': 'reassign',
'default': 0, 'newstate': u'assigned', 'oldstates': [u'new',
u'assigned', u'accepted', u'reopened'], 'permissions':
[u'TICKET_MODIFY']}}

21:38:02 Trac[main] DEBUG: Dispatching <Request "GET u'/'">
21:38:03 Trac[svn_fs] DEBUG: Subversion bindings imported
21:38:03 Trac[chrome] DEBUG: Prepare chrome data for request
21:38:03 Trac[api] DEBUG: Updating wiki page index
21:38:03 Trac[session] DEBUG: Retrieving session for ID
'361b945ec02c1c62218596dc'
127.0.0.1 - - [21/Nov/2007 21:38:04] "GET /trac HTTP/1.1" 200 -


And after clicking on Login:

21:39:04 Trac[main] DEBUG: Dispatching <Request "GET u'/login'">
21:39:04 Trac[main] WARNING: 500 Trac Error (Authentication
information not available. Please refer to the <a href="/trac/wiki/
TracInstall#ConfiguringAuthentication" title="Configuring
Authentication">installation documentation</a>.)
21:39:04 Trac[chrome] DEBUG: Prepare chrome data for request
21:39:04 Trac[session] DEBUG: Retrieving session for ID
'361b945ec02c1c62218596dc'
127.0.0.1 - - [21/Nov/2007 21:39:04] "GET /trac/login HTTP/1.1" 500 -


I've also tried using the htdigest command to create the password
file:


$ htdigest -c password.txt trac aelfric
Adding password for aelfric in realm trac.
New password:
Re-type new password:

tracd -p 8000 -a=MediaLib,/Users/aelfric/Development/trac/auth/
password.txt,trac /Users/aelfric/Development/trac/


The results were the same:

22:10:51 Trac[main] DEBUG: Dispatching <Request "GET u'/login'">
22:10:51 Trac[main] WARNING: 500 Trac Error (Authentication
information not available. Please refer to the <a href="/trac/wiki/
TracInstall#ConfiguringAuthentication" title="Configuring
Authentication">installation documentation</a>.)
22:10:52 Trac[chrome] DEBUG: Prepare chrome data for request
22:10:52 Trac[session] DEBUG: Retrieving session for ID
'361b945ec02c1c62218596dc'
127.0.0.1 - - [21/Nov/2007 22:10:52] "GET /trac/login HTTP/1.1" 500 -


Here's a list of the software levels involved:

Babel: 0.9.1
Bitten: 0.6dev_r516
Genshi: 0.4.4
Pygments: 0.8.1
PySQLite: 2.3.5
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple
Computer, Inc. build 5367)] on darwin
SQLite: 3.5.1
Subversion: version 1.4.4 (r25188) compiled Jun 15 2007, 09:34:00
(precompled binary from CollabNet)
Trac: 0.11dev-r6049


I'm scratching my head on tis one--I've granted anonymous the
TRAC_ADMIN privilege in order to get some work done. I would much
prefer having things done correctly, so any ideas are welcome.


Cheers,

Mark.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Authentication information not available. Please refer to the installation documentation [ In reply to ]
> $ tracd -p 8000 -a=MediaLib,/Users/aelfric/Development/trac/auth/
> digest.txt,trac /Urs/aelfric/Development/trac/

Looking at the help message:

Usage: standalone.py [options] [projenv] ...

Options:
--version show program's version number and exit
-h, --help show this help message and exit
-a DIGESTAUTH, --auth=DIGESTAUTH
[projectdir],[htdigest_file],[realm]
--basic-auth=BASICAUTH
...

It's either
-a MediaLib,/Users/aelfric/Development/trac/auth/digest.txt,trac
or
--auth=MediaLib,/Users/aelfric/Development/trac/auth/digest.txt,trac

I'm not sure the '=' syntax works with single character option switch

HTH,
Manu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Authentication information not available. Please refer to the installation documentation [ In reply to ]
Hi Manu,

On 21 Nov 2007, at 23:14, Emmanuel Blot wrote:
>
>> $ tracd -p 8000 -a=MediaLib,/Users/aelfric/Development/trac/auth/
>> digest.txt,trac /Urs/aelfric/Development/trac/
>
> It's either
> -a MediaLib,/Users/aelfric/Development/trac/auth/digest.txt,trac
> or
> --auth=MediaLib,/Users/aelfric/Development/trac/auth/digest.txt,trac
>
> I'm not sure the '=' syntax works with single character option switch


Both of these return the "Authentication information not available."
error.

Mark Dancer
mark.dancer@pobox.com




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Authentication information not available. Please refer to the installation documentation [ In reply to ]
I had the same problem a while ago. And this following command (exactly as it is) works well for me.

tracd -p 8099 --auth=project1,/trac/project1/users,Tilda /trac/project1



Mark Dancer <mark.david.dancer@gmail.com> wrote:
Hi Manu,

On 21 Nov 2007, at 23:14, Emmanuel Blot wrote:
>
>> $ tracd -p 8000 -a=MediaLib,/Users/aelfric/Development/trac/auth/
>> digest.txt,trac /Urs/aelfric/Development/trac/
>
> It's either
> -a MediaLib,/Users/aelfric/Development/trac/auth/digest.txt,trac
> or
> --auth=MediaLib,/Users/aelfric/Development/trac/auth/digest.txt,trac
>
> I'm not sure the '=' syntax works with single character option switch


Both of these return the "Authentication information not available."
error.

Mark Dancer
mark.dancer@pobox.com








Mustafa Aldemir


---------------------------------
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Authentication information not available. Please refer to the installation documentation [ In reply to ]
On 22 Nov 2007, at 6:44, Mustafa Aldemir wrote:

> I had the same problem a while ago. And this following command
> (exactly as it is) works well for me.
>
> tracd -p 8099 --auth=project1,/trac/project1/users,Tilda /trac/
> project1

I think that's the same command, allowing for differences in how the
projects were set up.

Here's what I'm currently doing.

I set the current working directory to the directory containing the
trac project using:

cd /Users/aelfric/Development/trac/

which gives me the prompt:

~/Development/trac aelfric$

(I'm running on Mac OS X, so I actually use Open Terminal Here to
create a terminal session with that directory as the cwd, but I did
try explicitly running the cd command in a vanilla terminal session
in case it made a difference).

I then start tracd with the following command:

tracd -p 8000 --auth=MediaLib,./auth/password.txt,trac .

Here's my understanding of this command:

MediaLib the name of the project, matches the name
I supplied when I ran trac-admin initenv (oddly, changing this to
some other value seems to make no difference).
./auth/password.txt the path from the cwd to the
authorization file
trac the realm I used in the password file
(which contains aelfric:trac:..., changing this value results in a
warning message Warning: found no users in realm)
. the path from the cwd to the directory
for the current project (changing this results in an empty list of
available projects)

Cheers,

Mark.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Authentication information not available. Please refer to the installation documentation [ In reply to ]
> Here's my understanding of this command:
>
> MediaLib the name of the project, matches the name I
> supplied when I ran trac-admin initenv (oddly, changing this to some other
> value seems to make no difference).

Can you try with a wildard (* as the first argument in the triplet) ?

Cheers,
Manu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Authentication information not available. Please refer to the installation documentation [ In reply to ]
Hi Manu,

On 22 Nov 2007, at 19:07, Emmanuel Blot wrote:

>
>> Here's my understanding of this command:
>>
>> MediaLib the name of the project, matches the
>> name I
>> supplied when I ran trac-admin initenv (oddly, changing this to
>> some other
>> value seems to make no difference).
>
> Can you try with a wildard (* as the first argument in the triplet) ?

tracd -p 8000 --auth=*,./auth/password.txt,trac .

Bingo! Works like a charm. Many thanks Manu.

Cheers,

Mark Dancer
mark.dancer@pobox.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Authentication information not available. Please refer to the installation documentation [ In reply to ]
> Bingo! Works like a charm. Many thanks Manu.

I suspect the project name / project file name duality stroke again ;-)
I don't remember the implementation (and I'm working on an ISR routine
bug so I can't have a look at Trac right now ;-)), but try replacing
the project name with the project file name, or vice versa (rather
than keeping the catch-all projects '*').

Cheers,
Manu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Authentication information not available. Please refer to the installation documentation [ In reply to ]
Hi Manu,

On 22 Nov 2007, at 21:00, Emmanuel Blot wrote:

> I suspect the project name / project file name duality stroke
> again ;-)
> I don't remember the implementation (and I'm working on an ISR routine
> bug so I can't have a look at Trac right now ;-)), but try replacing
> the project name with the project file name, or vice versa (rather
> than keeping the catch-all projects '*').

tracd -p 8000 --auth=trac,./auth/password.txt,trac .

works.

This install has been a long and frustrating process, and now the
problem is fixed I can see where I misread the install documentation
(several times over, sigh...). I really appreciate the help you've
given me.

Regards,

Mark Dancer
mark.dancer@pobox.com




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: Authentication information not available. Please refer to the installation documentation [ In reply to ]
I am getting a little closer to fixing this authentication error in my
setup.

I added this to my apache VirtualHost:

DirectoryIndex /cgi-bin/trac.fcgi

Now, I can press the login button on the front page of my site and it
shows me as logged in.

But all the links on the page contain cgi-bin/trac.fcgi (well, they
did before the DirectoryIndex change above). When I go to one of the
other pages I am no longer shown as logged in. For example, if I
click on the Wiki link, it's https://example.org/cgi-bin/trac.fcgi/wiki,
I get to that page fine but I have a 'login' link at the top.
Clicking that again produces the Authentication information not
available error.

If I manually go to https://example.org/wiki, I get a 'page not found'
error from apache.

How can I tell trac not to include the cgi-bin/trac.fcgi in the links
when it outputs the page?

I've tried editing url and base_url in the trac.ini file but that
makes no difference.

Michael Grant
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---