Redmine git intergration

Added by Marcel Eeken over 8 years ago

Hey all,

A wile ago I followed this wiki page, HowTo_configure_Redmine_for_advanced_git_integration, to use redmine as a tool for access control for my git repositories. For a long time this worked perfectly but when I recently upgraded my redmine version to 1.1.2 it broke. When I try to push or pull something I get the error:

fatal: http://user:pass@git.server/project/info/refs not found: did you run git update-server-info on the server?
The command 'E:/Git/bin/git.exe' terminated with exit code 128.

My apache config looks like this:

<VirtualHost *>
        ServerName server

        ServerAdmin git@server
        DocumentRoot location

        PerlLoadModule Apache::Redmine

        <Directory "location">
                Options None
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>

        <Location "/">
                AuthType Basic
                AuthName "Redmine git repositories" 
                Require valid-user

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

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

                RedmineDbUser "user" 
                RedmineDbPass "pass" 
                RedmineGitSmartHttp yes
        </Location>

        CustomLog /var/log/apache2/git.log combined

        LogLevel debug
</VirtualHost>

These are the gems installed:

gem list --local

*** LOCAL GEMS ***

actionmailer (2.3.11, 2.3.5)
actionpack (2.3.11, 2.3.5)
activerecord (2.3.11, 2.3.5)
activeresource (2.3.11, 2.3.5)
activesupport (2.3.11, 2.3.5)
eventmachine (0.12.10)
i18n (0.4.2)
json (1.4.6)
juggernaut (0.5.8)
oniguruma (1.1.0)
plist (3.1.0)
rack (1.1.1, 1.0.1)
rails (2.3.11, 2.3.5)
rake (0.8.7)
textpow (0.10.1)
tzinfo (0.3.23)
ultraviolet (0.10.2)

This is my redmine environment:

RAILS_ENV=production script/about
About your application's environment
Ruby version              1.8.7 (i486-linux)
RubyGems version          1.3.5
Rack version              1.1.1
Rails version             2.3.11
Active Record version     2.3.11
Active Resource version   2.3.11
Action Mailer version     2.3.11
Active Support version    2.3.11
Application root          /usr/share/redmine-trunk
Environment               production
Database adapter          mysql
Database schema version   20110228000100

About your Redmine plugins
Redmine Hudson plugin                            1.0.5
Google Calendar Plugin                           0.1.2
Redmine Charts                                   0.1.0
Knowledgebase                                    0.2.5
Redmine Graphs plugin                            0.2.1
Redmine Ultraviolet Syntax highlighting plugin   0.0.3
Google Analytics plugin                          0.2.0
Redmine Hide Emails By Default plugin            0.0.1
Redmine Checkout plugin                          0.5
Embedded                                         0.0.1

Replies (1)

RE: Redmine git intergration - Added by Marcel Eeken over 8 years ago

Sorry pressed the wrong button meant to click the preview button

This is what i get in my apache log:

ip - - [14/Mar/2011:16:18:30 +0100] "GET /project/info/refs?service=git-receive-pack HTTP/1.1" 401 737 "-" "git/1.7.0.2.msysgit.0.14.g956d7" 
ip - user [14/Mar/2011:16:18:30 +0100] "GET /project/info/refs?service=git-receive-pack HTTP/1.1" 404 264 "-" "git/1.7.0.2.msysgit.0.14.g956d7" 
ip - user [14/Mar/2011:16:18:30 +0100] "GET /project/info/refs HTTP/1.1" 404 264 "-" "git/1.7.0.2.msysgit.0.14.g956d7" 

The project that I am trying to acces does exist because if i go directly trough the url to the repo is works. But when i try to use redmine as access manager it fails. I have implemented the patch file.

Marcel

(1-1/1)