I am trying to get Trac configured, and have run in to the following
error when clicking on the 'Login' link from the main page -

Trac detected an internal error: 
-----------------------------------------
Authentication information not available.

Here is the Python traceback:
-----------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\trac\web\cgi_frontend.py", line
130, in run
    dispatch_request(req.path_info, req, env)
  File "C:\Python23\Lib\site-packages\trac\web\main.py", line 139, in
dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python23\Lib\site-packages\trac\web\main.py", line 107, in
dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Python23\Lib\site-packages\trac\web\auth.py", line 82, in
process_request
    self._do_login(req)
  File "C:\Python23\Lib\site-packages\trac\web\auth.py", line 103, in
_do_login
    assert req.remote_user, 'Authentication information not available.'
AssertionError: Authentication information not available.

And my httpd.conf from Apache:
-----------------------------------------
# Subversion
<Location /svn>
  DAV svn
  # any /svn/foo URL will map to a repository C:/svn/foo
  # I've only got it working using SVNPath!!
  SVNPath e:/svn_repository
#  SVNParentPath e:/svn_repository
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile e:/svn_repository/.htaccess
  AuthzSVNAccessFile e:/svn_repository/.perms

  SVNPathAuthz off
  
  # For any operations other than these, require an authenticated user.
#  <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
#  </LimitExcept>

</Location>

# TRAC
Alias /trac "C:/Python23/share/trac/htdocs"

<Directory "C:/Python23/share/trac/htdocs">
  Options Indexes MultiViews
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

<Location "/cgi-bin/trac.cgi">
  SetEnv TRAC_ENV "e:/trac/trac.db"
  SetEnv PYTHONPATH "C:/Python23/share/trac/htdocs"
  # if you are running Apache as a user other than System, the TMP
variable
  # needs to be set to a place where that user can write scratch
files.Make
  # sure that this directory is created and writable by that user.
  # SetEnv TMP "c:/svn/trac.db/tmp
</Location>

<Location /cgi-bin/trac.cgi/login>
#  AuthType Basic
#  AuthName "Project"
#  AuthUserFile e:/svn_repository/.htaccess
#  Require valid-user

  SVNPath e:/svn_repository
  SetEnv TRAC_ENV "e:/trac/trac.db"
  SetEnv PYTHONPATH "C:/Python23/share/trac/htdocs"

  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile e:/svn_repository/.htaccess
  AuthzSVNAccessFile e:/svn_repository/.perms

  SVNPathAuthz off

</Location>


Thank you,

Michael Craig

_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to