trac install doesn't find authentication information

After installing trac, the installer reports that it completed and set up an initial administration login. The installer adds a location match directive to apache conf, but trac seems unable to find the auth info. Here is the directive:

AuthType Basic
AuthUserFile /home//etc/svn.basic.passwd

Require valid-user

Looks OK to me but gets the trac error "Authentication information not available." Thoughts?



This is for the login page (/login). The admin page (/admin) is not found ("No administration panels available"), and trac-admin fails (DistributionNotFound, does the installer put the package somewhere unusual?).

Re trac-admin, it looks like the installer puts a tmp copy of the Trac egg under the user's home dir. When I manually copy this to site-packages, it fails with:

Traceback (most recent call last):
  File "./trac-admin", line 7, in ?
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c1-py2.4.egg/", line 236, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c1-py2.4.egg/", line 2096, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'trac-admin') not found

Ok, I see the bug now .. Virtualmin isn't setting up authentication for the Trac login path properly.

I will fix this in the next release. The work-around is to go to Services -> Configure Website -> Location regexp /home/something/public_html/*/login . Then in the Path field change it to just /.*/login , click Save and then click Apply Changes.

Still gets the same error. Even when I replace the regex with a literal location and try anything else, it still fails.

Sorry, still had a browser tab open to the standard site when I'd updated the httpd conf for the SSL site. It now finds the auth info.