Redmine & git integration error
Added by Tuan Anh Nguyen over 12 years ago
Hi guys,
(sorry if the codeblock have some <, i don't know why)
I am trying to integrate git with redmine. I am using Apache, Fusion Passenger, Redmine (2.3.0) and git-http-backend. I followed the tutorial HowTo configure Redmine for advanced git integration. Here is my httpd configuration 
@   <VirtualHost *:3000>
ServerName myserver.com
        ServerAdmin tanh1989@gmail.com
        DocumentRoot /var/www/redmine/public/
        ErrorLog logs/redmine_error_log
	#If you are using mod_fcgid and are going to upload files larger than
        #131072 bytes you should consider adding the following line
        #that allows to upload files up to 20 mb
        MaxRequestLen 20971520
        <Directory /var/www/redmine/public>
                Options Indexes ExecCGI FollowSymLinks
                Order allow,deny
                Allow from all
                AllowOverride all
        </Directory>
        PerlLoadModule Apache::Redmine
        SetEnv GIT
        SetEnv GIT_HTTP_EXPORT_ALL
        SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
        ScriptAlias /git/ /usr/libexec/git-core/git-http-backend
        <Location "/git/">
                #DAV on
                AuthType Basic
                Require valid-user
                AuthName "Git" 
                PerlAccessHandler Apache::Authn::Redmine::access_handler
                PerlAuthenHandler Apache::Authn::Redmine::authen_handler
                RedmineDSN "DBI:mysql:database=redmine;host=localhost" 
                RedmineDbUser "redmine" 
                RedmineDbPass "52642205!#$%^" 
                RedmineGitSmartHttp yes
        </Location>
        Alias /git-private /opt/git/
        <Location /git-private>
 Order deny,allow
                Deny from all
                <Limit GET PROPFIND OPTIONS REPORT>
                        Options Indexes FollowSymLinks MultiViews
                        Allow from 127.0.0.1
                        Allow from localhost
                </Limit>
        </Location>
</VirtualHost>
	Whenever i try to access http://myserver.com/git/myproject, the user promt an login box to ask for username , password. I enter the a developer account "anhle" but it seem not valid.
Here is the redmine_error_log 
[Sat Apr 20 11:52:47 2013] [error] [client 42.116.246.133] access to /git/myproject failed, reason: verification of user id 'anhle' not configured
Could you please tell me what is going wrong here. Thank you very much!
Replies (2)
    
    RE: Redmine & git integration error
    -
    Added by Tuan Anh Nguyen over 12 years ago
  
  Woa, finally i figured it out , just a small note. I post here in case anyone get this trouble like me.
Just follow the guide from HowTo configure Redmine for advanced git integration. But please create a git respository with the same name as the project identifier. That's all and everything is up.If anyone has trouble , please feel free to contact me , maybe i can help :D 
My email : tanh1989@gmail.com
_ thanks Redmine, a great tool , i love opensource community :X
    
    RE: Redmine & git integration error
    -
    Added by Damien SONCOURT about 12 years ago
  
  Thank you, it works !!!!