Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

upgrade problems with login

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


bradshaw at mcs

Jan 18, 2007, 8:38 AM

Post #1 of 7 (1335 views)
Permalink
upgrade problems with login

I have an issue where I am trying to upgrade my trac install from a
debian-sarge install of trac 0.9.6 to an ubuntu-dapper with 0.10.3. I
will note that the new install basically mimics my old setup the only
difference is the name.

Here is the config on the working server. sarge with trac 0.9.6 and
apache2 2.0.54-5sarge1, and python 2.3

RewriteEngine on
RewriteRule ^/$ http://trac.mcs.anl.gov/projects
RewriteRule ^/projects/+$ /projects/index.html [L]
RewriteCond /www/trac.mcs.anl.gov/projects/$1 -d
RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2 [S=1,E=TRAC_ENV:/www/trac.mcs.anl.gov/projects/$1]
RewriteRule ^/projects/(.*) /projects/index.html

<Directory "/www/trac.mcs.anl.gov/projects">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
Satisfy any
</Directory>

<LocationMatch "/projects/(.*)/login">
SSLRequireSSL
AuthPAM_Enabled on
AuthType Basic
AuthName "secure area"
Require valid-user
</LocationMatch>

<Location /projects>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /www/trac.mcs.anl.gov/projects
PythonOption TracUriRoot /projects
</Location>



Here is the config from the upgraded machine that isn't
working. Ubuntu dapper amd64, trac 0.10.3, apache2 2.0.55-4ubuntu2.1,
and python 2.4

RewriteEngine on
RewriteRule ^/$ http://trac2.mcs.anl.gov/projects
RewriteRule ^/projects/+$ /projects/index.html [L]
RewriteRule ^/projects/(.*)/login$ https://trac2.mcs.anl.gov/projects/$1/login [L]
RewriteCond /disks/www/trac.mcs.anl.gov/projects/$1 -d
RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2 [S=1,E=TRAC_ENV:/disks/www/trac.mcs.anl.gov/projects/$1]
RewriteRule ^/projects/(.*) /projects/index.html

<Directory "/disks/www/trac.mcs.anl.gov/projects">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
</Directory>

<LocationMatch "/projects/(.*)/login">
AuthPAM_Enabled on
AuthType Basic
AuthName "secure area"
Require valid-user
</LocationMatch>

<Location /projects>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /disks/www/trac.mcs.anl.gov/projects
PythonOption TracUriRoot /projects
</Location>

I have already tested and proven that the "AuthPAM_Enabled on" works
properly as my svn repos and authz tools all work as normal. The
problem I am seeing is that when I click on the login link in my new
trac install I get an apache 500 error in my logs and the trac page
says.

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

I am slowly heading towards my wits end. I am sure there is someone
out there who can show me the errors of my ways.

Thanks for the help.

Rick


--~--~---------~--~----~------------~-------~--~----~
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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


me at mattgillen

Jan 18, 2007, 9:25 AM

Post #2 of 7 (1279 views)
Permalink
Re: upgrade problems with login [In reply to]

Rick Bradshaw wrote:
> Here is the config on the working server. sarge with trac 0.9.6 and
> RewriteEngine on
> RewriteRule ^/$ http://trac.mcs.anl.gov/projects
> RewriteRule ^/projects/+$ /projects/index.html [L]
> RewriteCond /www/trac.mcs.anl.gov/projects/$1 -d
> RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2
> [S=1,E=TRAC_ENV:/www/trac.mcs.anl.gov/projects/$1]
> RewriteRule ^/projects/(.*) /projects/index.html
>
> Here is the config from the upgraded machine that isn't
> working. Ubuntu dapper amd64, trac 0.10.3, apache2 2.0.55-4ubuntu2.1,
> and python 2.4
>
> RewriteEngine on
> RewriteRule ^/$ http://trac2.mcs.anl.gov/projects
> RewriteRule ^/projects/+$ /projects/index.html [L]
> RewriteRule ^/projects/(.*)/login$
> https://trac2.mcs.anl.gov/projects/$1/login [L] RewriteCond
> /disks/www/trac.mcs.anl.gov/projects/$1 -d
> RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2
> [S=1,E=TRAC_ENV:/disks/www/trac.mcs.anl.gov/projects/$1]
> RewriteRule ^/projects/(.*) /projects/index.html
> ...
>
> I have already tested and proven that the "AuthPAM_Enabled on" works
> properly as my svn repos and authz tools all work as normal. The
> problem I am seeing is that when I click on the login link in my new
> trac install I get an apache 500 error in my logs and the trac page
> says.
>
> "Authentication information not available. Please refer to the
> installation documentation."
>
> I am slowly heading towards my wits end. I am sure there is someone
> out there who can show me the errors of my ways.

Does it have to do with the "https" in the rewrite rules in the second case?

Matt

--~--~---------~--~----~------------~-------~--~----~
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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


bradshaw at mcs

Jan 18, 2007, 11:13 AM

Post #3 of 7 (1284 views)
Permalink
Re: upgrade problems with login [In reply to]

Matt,
I have tried with commenting out the rewrite rules and
still end up with the same 500 error. I have even tried without https
completely and I still end up in the same spot.
I will admit this is quite the baffling problem, and there has
to be something very small or stupid that I am missing.

Thanks for the response
Rick

Matthew Gillen <me[at]mattgillen.net> writes:

> Rick Bradshaw wrote:
>> Here is the config on the working server. sarge with trac 0.9.6 and
>> RewriteEngine on
>> RewriteRule ^/$ http://trac.mcs.anl.gov/projects
>> RewriteRule ^/projects/+$ /projects/index.html [L]
>> RewriteCond /www/trac.mcs.anl.gov/projects/$1 -d
>> RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2
>> [S=1,E=TRAC_ENV:/www/trac.mcs.anl.gov/projects/$1]
>> RewriteRule ^/projects/(.*) /projects/index.html
>>
>> Here is the config from the upgraded machine that isn't
>> working. Ubuntu dapper amd64, trac 0.10.3, apache2 2.0.55-4ubuntu2.1,
>> and python 2.4
>>
>> RewriteEngine on
>> RewriteRule ^/$ http://trac2.mcs.anl.gov/projects
>> RewriteRule ^/projects/+$ /projects/index.html [L]
>> RewriteRule ^/projects/(.*)/login$
>> https://trac2.mcs.anl.gov/projects/$1/login [L] RewriteCond
>> /disks/www/trac.mcs.anl.gov/projects/$1 -d
>> RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2
>> [S=1,E=TRAC_ENV:/disks/www/trac.mcs.anl.gov/projects/$1]
>> RewriteRule ^/projects/(.*) /projects/index.html
>> ...
>>
>> I have already tested and proven that the "AuthPAM_Enabled on" works
>> properly as my svn repos and authz tools all work as normal. The
>> problem I am seeing is that when I click on the login link in my new
>> trac install I get an apache 500 error in my logs and the trac page
>> says.
>>
>> "Authentication information not available. Please refer to the
>> installation documentation."
>>
>> I am slowly heading towards my wits end. I am sure there is someone
>> out there who can show me the errors of my ways.
>
> Does it have to do with the "https" in the rewrite rules in the second case?
>
> Matt
>
>

--~--~---------~--~----~------------~-------~--~----~
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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


dave at boost-consulting

Jan 18, 2007, 12:12 PM

Post #4 of 7 (1280 views)
Permalink
Re: upgrade problems with login [In reply to]

Rick Bradshaw <bradshaw[at]mcs.anl.gov>
writes:

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

I recently had a similar problem when attempting to move from an
HTTP-authenticated system to using the new AccountManager. The fix
was that I had to disable the LoginModule as described here:

http://trac-hacks.org/wiki/AccountManagerPlugin#LoginModule

However, it seems from your config that you're not trying to use HTML
forms authentication, so that advice may not apply to you.

--
Dave Abrahams
Boost Consulting
www.boost-consulting.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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


bradshaw at mcs

Jan 18, 2007, 12:58 PM

Post #5 of 7 (1290 views)
Permalink
Re: upgrade problems with login [In reply to]

Dave,
you are correct. I am trying to stick with http auth due to my
requirements to be able to use AuthPam, which fits in with our normal
authentification method. Does anyone know if I were to switch to this
AccountManager if it will allow me to use Pam authentification?

Rick

David Abrahams <dave[at]boost-consulting.com> writes:

> Rick Bradshaw <bradshaw[at]mcs.anl.gov>
> writes:
>
>> "Authentication information not available. Please refer to the
>> installation documentation."
>
> I recently had a similar problem when attempting to move from an
> HTTP-authenticated system to using the new AccountManager. The fix
> was that I had to disable the LoginModule as described here:
>
> http://trac-hacks.org/wiki/AccountManagerPlugin#LoginModule
>
> However, it seems from your config that you're not trying to use HTML
> forms authentication, so that advice may not apply to you.
>
> --
> Dave Abrahams
> Boost Consulting
> www.boost-consulting.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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


bradshaw at mcs

Jan 19, 2007, 11:33 AM

Post #6 of 7 (1292 views)
Permalink
Re: upgrade problems with login [In reply to]

So I still have no luck finding my error. Is there anyway to enable
debugging information in trac to see what is actually happening when I
click on the "login" link? I turned on loggin for the trac project I
am testing with, but it just lists the same problem as the actual
webpage.

is there any reasonable way to fire trac up in a python interpreter so
I can find out what is actually happening or in my case not happening?

Rick


Rick Bradshaw <bradshaw[at]mcs.anl.gov> writes:

> I have an issue where I am trying to upgrade my trac install from a
> debian-sarge install of trac 0.9.6 to an ubuntu-dapper with 0.10.3. I
> will note that the new install basically mimics my old setup the only
> difference is the name.
>
> Here is the config on the working server. sarge with trac 0.9.6 and
> apache2 2.0.54-5sarge1, and python 2.3
>
> RewriteEngine on
> RewriteRule ^/$ http://trac.mcs.anl.gov/projects
> RewriteRule ^/projects/+$ /projects/index.html [L]
> RewriteCond /www/trac.mcs.anl.gov/projects/$1 -d
> RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2 [S=1,E=TRAC_ENV:/www/trac.mcs.anl.gov/projects/$1]
> RewriteRule ^/projects/(.*) /projects/index.html
>
> <Directory "/www/trac.mcs.anl.gov/projects">
> AllowOverride None
> Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> AddHandler cgi-script .cgi
> Order allow,deny
> Allow from all
> Satisfy any
> </Directory>
>
> <LocationMatch "/projects/(.*)/login">
> SSLRequireSSL
> AuthPAM_Enabled on
> AuthType Basic
> AuthName "secure area"
> Require valid-user
> </LocationMatch>
>
> <Location /projects>
> SetHandler mod_python
> PythonHandler trac.web.modpython_frontend
> PythonOption TracEnvParentDir /www/trac.mcs.anl.gov/projects
> PythonOption TracUriRoot /projects </Location>
>
>
>
> Here is the config from the upgraded machine that isn't
> working. Ubuntu dapper amd64, trac 0.10.3, apache2 2.0.55-4ubuntu2.1,
> and python 2.4
>
> RewriteEngine on
> RewriteRule ^/$ http://trac2.mcs.anl.gov/projects
> RewriteRule ^/projects/+$ /projects/index.html [L]
> RewriteRule ^/projects/(.*)/login$
> https://trac2.mcs.anl.gov/projects/$1/login [L] RewriteCond
> /disks/www/trac.mcs.anl.gov/projects/$1 -d
> RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2 [S=1,E=TRAC_ENV:/disks/www/trac.mcs.anl.gov/projects/$1]
> RewriteRule ^/projects/(.*) /projects/index.html
>
> <Directory "/disks/www/trac.mcs.anl.gov/projects">
> AllowOverride None
> Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> AddHandler cgi-script .cgi
> Order allow,deny
> Allow from all
> </Directory>
>
> <LocationMatch "/projects/(.*)/login">
> AuthPAM_Enabled on
> AuthType Basic
> AuthName "secure area"
> Require valid-user
> </LocationMatch>
>
> <Location /projects>
> SetHandler mod_python
> PythonHandler trac.web.modpython_frontend
> PythonOption TracEnvParentDir /disks/www/trac.mcs.anl.gov/projects
> PythonOption TracUriRoot /projects
> </Location>
>
> I have already tested and proven that the "AuthPAM_Enabled on" works
> properly as my svn repos and authz tools all work as normal. The
> problem I am seeing is that when I click on the login link in my new
> trac install I get an apache 500 error in my logs and the trac page
> says.
>
> "Authentication information not available. Please refer to the
> installation documentation."
>
> I am slowly heading towards my wits end. I am sure there is someone
> out there who can show me the errors of my ways.
>
> Thanks for the help.
>
> Rick
>
>
>

--~--~---------~--~----~------------~-------~--~----~
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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


bradshaw at mcs

Jan 19, 2007, 2:06 PM

Post #7 of 7 (1269 views)
Permalink
Re: upgrade problems with login [In reply to]

Good news I ended up finding my problem. I had a stray Satisfy any in
a clause that didn't seem to matter in my older version of Apache2,
but it certainly causes issues in my new version. so between apache2
2.0.54-5sarge1 and apache2 2.0.55-4ubuntu2.1 something changed which
made this Satify any apply differently.

so here was the fix:

<Directory "/www/trac.mcs.anl.gov/projects">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
Satisfy any
</Directory>

remove the "Satisfy any"

<Directory "/www/trac.mcs.anl.gov/projects">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
</Directory>

and bam it worked.

Thanks for the help
Rick


Rick Bradshaw <bradshaw[at]mcs.anl.gov> writes:

> I have an issue where I am trying to upgrade my trac install from a
> debian-sarge install of trac 0.9.6 to an ubuntu-dapper with 0.10.3. I
> will note that the new install basically mimics my old setup the only
> difference is the name.
>
> Here is the config on the working server. sarge with trac 0.9.6 and
> apache2 2.0.54-5sarge1, and python 2.3
>
> RewriteEngine on
> RewriteRule ^/$ http://trac.mcs.anl.gov/projects
> RewriteRule ^/projects/+$ /projects/index.html [L]
> RewriteCond /www/trac.mcs.anl.gov/projects/$1 -d
> RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2 [S=1,E=TRAC_ENV:/www/trac.mcs.anl.gov/projects/$1]
> RewriteRule ^/projects/(.*) /projects/index.html
>
> <Directory "/www/trac.mcs.anl.gov/projects">
> AllowOverride None
> Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> AddHandler cgi-script .cgi
> Order allow,deny
> Allow from all
> Satisfy any
> </Directory>
>
> <LocationMatch "/projects/(.*)/login">
> SSLRequireSSL
> AuthPAM_Enabled on
> AuthType Basic
> AuthName "secure area"
> Require valid-user
> </LocationMatch>
>
> <Location /projects>
> SetHandler mod_python
> PythonHandler trac.web.modpython_frontend
> PythonOption TracEnvParentDir /www/trac.mcs.anl.gov/projects
> PythonOption TracUriRoot /projects </Location>
>
>
>
> Here is the config from the upgraded machine that isn't
> working. Ubuntu dapper amd64, trac 0.10.3, apache2 2.0.55-4ubuntu2.1,
> and python 2.4
>
> RewriteEngine on
> RewriteRule ^/$ http://trac2.mcs.anl.gov/projects
> RewriteRule ^/projects/+$ /projects/index.html [L]
> RewriteRule ^/projects/(.*)/login$
> https://trac2.mcs.anl.gov/projects/$1/login [L] RewriteCond
> /disks/www/trac.mcs.anl.gov/projects/$1 -d
> RewriteRule ^/projects/(.*)(/?.*) /projects/trac.cgi$2 [S=1,E=TRAC_ENV:/disks/www/trac.mcs.anl.gov/projects/$1]
> RewriteRule ^/projects/(.*) /projects/index.html
>
> <Directory "/disks/www/trac.mcs.anl.gov/projects">
> AllowOverride None
> Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> AddHandler cgi-script .cgi
> Order allow,deny
> Allow from all
> </Directory>
>
> <LocationMatch "/projects/(.*)/login">
> AuthPAM_Enabled on
> AuthType Basic
> AuthName "secure area"
> Require valid-user
> </LocationMatch>
>
> <Location /projects>
> SetHandler mod_python
> PythonHandler trac.web.modpython_frontend
> PythonOption TracEnvParentDir /disks/www/trac.mcs.anl.gov/projects
> PythonOption TracUriRoot /projects
> </Location>
>
> I have already tested and proven that the "AuthPAM_Enabled on" works
> properly as my svn repos and authz tools all work as normal. The
> problem I am seeing is that when I click on the login link in my new
> trac install I get an apache 500 error in my logs and the trac page
> says.
>
> "Authentication information not available. Please refer to the
> installation documentation."
>
> I am slowly heading towards my wits end. I am sure there is someone
> out there who can show me the errors of my ways.
>
> Thanks for the help.
>
> Rick
>
>
>

--~--~---------~--~----~------------~-------~--~----~
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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.