Project

General

Profile

Unable to get Redmine.pm to work with git, svn OK, git with htpasswd OK

Added by Felix Schäfer almost 15 years ago

Hello,

I can't get git to work with the provided Redmine.pm through apache, although it does work with svn. From what I have gathered patching some "warn()" messages into Redmine.pm, It seems to go through the whole process 20 times, and then gets killed, resulting in my browser saying the server is overloaded, and I should try again in a minute.

Here is the relevant part of the apache.conf:

<VirtualHost x.x.x.x:443>
    ServerName git.some.where
    Include /etc/apache2/vhosts.d/git.some.where.include
    ErrorLog /var/log/apache2/ssl_error_log
    #Some other ssl related stuff that works fine on every other vhost
</VirtuahlHost>

In git.some.where.include:

ServerAdmin root@some.where

DocumentRoot "/var/git" 

<IfDefine PERL>
        PerlWarn on
PerlLoadModule Apache::Redmine
    <IfDefine DAV>
    <Location "/">
        DAV on

        AuthType basic
        AuthName "GIT Repositories" 
        Require valid-user
#       AuthUserFile /etc/apache2/vhosts.d/test

        PerlAccessHandler Apache::Authn::Redmine::access_handler
        PerlAuthenHandler Apache::Authn::Redmine::authen_handler

        RedmineDSN "DBI:mysql:database=db;host=localhost" 

        RedmineDbUser "redmine_user" 
        RedmineDbPass "secret" 
        </Location>
    </IfDefine>
</IfDefine>

<Directory "/var/git">
    Options Indexes FollowSymLinks
    AllowOverride None

    Order allow,deny
    Allow from all
</Directory>

So as I said, Redmine.pm gets called an awful lot for only one request, and it even does get to the bit where authen_handler returns ok every time, so that doesn't seem to be the problem... Also, if I scratch the perl bits and go with the AuthUserFile, it works just as expected. The Redmine.pm as it is now also works just fine with my svn vhost, so that should be fine too.

Does anyone know how I could fix this? Thanks.


Replies (1)

RE: Unable to get Redmine.pm to work with git, svn OK, git with htpasswd OK - Added by Felix Schäfer almost 15 years ago

Ok, I'll reply to myself: Thou shalt test opening repo/HEAD in your browser, not just repo/, and thou shalt pass the GIT_SSL_NO_VERIFY="no" option (or set it in the config) to git.

    (1-1/1)