Project

General

Profile

Upgrade from Ubuntu 11.10 to 12.04 breaks Redmine mercurial authentication

Added by Bill Dieter almost 12 years ago

Our redmine server is configured to use Redmine authentication for mercurial users. It has been working for over a year, but it stopped when I upgraded our server from Ubuntu 11.10 to Ubuntu 12.04 this morning. I can still log in to Redmine and see the repository through the web interface, but when I try to push or pull from the server, I get the following:

$ hg pull
comparing with https://dev.example.com/hg/my-repo
http authorization required
realm: Please use your Redmine password.
user: bdieter
password: 
abort: authorization failed

Here are the relevant lines from the apache2 site configuration file:

        # Redmine authentication for Mercurial repositories
        # and other setup for Mercurial access
        RewriteEngine on
        PerlLoadModule Apache2::Redmine
        PerlLoadModule Authen::Simple::LDAP
        ScriptAliasMatch /hg(.*) /var/www/Escent/cgi-bin/hgwebdir.cgi/$1
        <Location /hg>
                AuthType Basic
                AuthName "Please use your Redmine password." 
                Require valid-user

                #Redmine auth
                PerlAccessHandler Apache::Authn::Redmine::access_handler
                PerlAuthenHandler Apache::Authn::Redmine::authen_handler
                RedmineDSN "DBI:mysql:database=redmine_default;host=localhost" 
                RedmineDbUser "redmine" 
                RedmineDbPass "redmine-db-password" 
        </Location>

        # Redmine base directory
        <Directory "/var/www/Escent/htdocs/redmine">
                RailsBaseURI /redmine
                PassengerResolveSymlinksInDocumentRoot on
        </Directory>

The redmine that comes from the Ubuntu 12.04 package is version 1.3.2.

Any ideas what could have changed that would break authentication? Any ideas how to debug the problem?

Thanks,
Bill.


Replies (1)

RE: Upgrade from Ubuntu 11.10 to 12.04 breaks Redmine mercurial authentication - Added by Bill Dieter almost 12 years ago

Arggh, I found the problem.

        PerlLoadModule Apache2::Redmine

should be

        PerlLoadModule Apache::Redmine

I also had to copy over the latest version of the Redmine.pm module described here. I have no idea how Apache could have gotten changed Apache2.

Sorry for the trouble.

Bill.

    (1-1/1)