git http-backend: info/refs not found...

lordfritte

Lieutenant
Registriert
Juli 2006
Beiträge
956
Hallo Leute ich veruche gerade auf einem Ubuntu Server 10.04 System einen git server auf basis vom http-backend zu basteln.

Aber ich schaffe es nicht ein repo zu klonen..
nachdem ich das Passwort bestätigt habe gibt mir der git client einen Fehler:
http://*@git.***.de/test.git/info/refs not found: did you run git update-server-info on the server?

Das ist meine apache-Konfig:
Code:
<VirtualHost *:80>
        ServerName git.***.de
        DocumentRoot /usr/share/gitphp
        ErrorLog /var/log/apache2/git.error.log
        CustomLog /var/log/apache2/git.access.log common

        SetEnv GIT_PROJECT_ROOT /var/git
        SetEnv GIT_HTTP_EXPORT_ALL
        SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER

        AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /var/www/git/$1
        AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/www/git/$1
        ScriptAliasMatch \
                "(?x)^/(.*/(HEAD | \
                info/refs | \
                objects/info/[^/]+ | \
                git-(upload|receive)-pack))$" \
                /usr/libexec/git-core/git-http-backend/$1

        <Location />
                AuthType Digest
                AuthName "Shared Git Repo"
                AuthUserFile /var/git/.htpasswd
                Require valid-user
        </Location>
</VirtualHost>

access-log:
Code:
***.***.***.*** - - [31/Mar/2014:16:19:16 +0200] "GET /repo/test.git/info/refs?service=git-upload-pack HTTP/1.1" 401 763
***.***.***.*** - tobias [31/Mar/2014:16:19:16 +0200] "GET /repo/test.git/info/refs?service=git-upload-pack HTTP/1.1" 401 763
***.***.***.*** - tobias [31/Mar/2014:16:19:21 +0200] "GET /repo/test.git/info/refs?service=git-upload-pack HTTP/1.1" 404 461
***.***.***.*** - tobias [31/Mar/2014:16:19:21 +0200] "GET /repo/test.git/info/refs HTTP/1.1" 404 461

error-log:
Code:
[Mon Mar 31 16:36:17.472397 2014] [authz_core:debug] [pid 28980] mod_authz_core.c(802): [client ***.***.***.***:59570] AH01626: authorization result of Require valid-user : denied (no authenticated user yet)
[Mon Mar 31 16:36:17.472466 2014] [authz_core:debug] [pid 28980] mod_authz_core.c(802): [client ***.***.***.***:59570] AH01626: authorization result of <RequireAny>: denied (no authenticated user yet)
[Mon Mar 31 16:36:17.502105 2014] [authz_core:debug] [pid 28980] mod_authz_core.c(802): [client ***.***.***.***:59570] AH01626: authorization result of Require valid-user : denied (no authenticated user yet)
[Mon Mar 31 16:36:17.502132 2014] [authz_core:debug] [pid 28980] mod_authz_core.c(802): [client ***.***.***.***:59570] AH01626: authorization result of <RequireAny>: denied (no authenticated user yet)
[Mon Mar 31 16:36:17.502193 2014] [auth_digest:error] [pid 28980] [client ***.***.***.***:59570] AH01794: user tobias: password mismatch: /repo/test.git/info/refs
[Mon Mar 31 16:36:22.974190 2014] [authz_core:debug] [pid 28983] mod_authz_core.c(802): [client ***.***.***.***:59571] AH01626: authorization result of Require valid-user : denied (no authenticated user yet)
[Mon Mar 31 16:36:22.974272 2014] [authz_core:debug] [pid 28983] mod_authz_core.c(802): [client ***.***.***.***:59571] AH01626: authorization result of <RequireAny>: denied (no authenticated user yet)
[Mon Mar 31 16:36:22.974346 2014] [authz_core:debug] [pid 28983] mod_authz_core.c(802): [client ***.***.***.***:59571] AH01626: authorization result of Require valid-user : granted
[Mon Mar 31 16:36:22.974355 2014] [authz_core:debug] [pid 28983] mod_authz_core.c(802): [client ***.***.***.***:59571] AH01626: authorization result of <RequireAny>: granted
[Mon Mar 31 16:36:22.974434 2014] [core:info] [pid 28983] [client ***.***.***.***:59571] AH00128: File does not exist: /usr/libexec/git-core/git-http-backend/repo/test.git/info/refs
[Mon Mar 31 16:36:23.023682 2014] [authz_core:debug] [pid 28984] mod_authz_core.c(802): [client ***.***.***.***:59572] AH01626: authorization result of Require valid-user : denied (no authenticated user yet)
[Mon Mar 31 16:36:23.023919 2014] [authz_core:debug] [pid 28984] mod_authz_core.c(802): [client ***.***.***.***:59572] AH01626: authorization result of <RequireAny>: denied (no authenticated user yet)
[Mon Mar 31 16:36:23.024076 2014] [authz_core:debug] [pid 28984] mod_authz_core.c(802): [client ***.***.***.***:59572] AH01626: authorization result of Require valid-user : granted
[Mon Mar 31 16:36:23.024241 2014] [authz_core:debug] [pid 28984] mod_authz_core.c(802): [client ***.***.***.***:59572] AH01626: authorization result of <RequireAny>: granted
[Mon Mar 31 16:36:23.024387 2014] [core:info] [pid 28984] [client ***.***.***.***:59572] AH00128: File does not exist: /usr/libexec/git-core/git-http-backend/repo/test.git/info/refs

Was mir direkt auffält ist diese Zeile: "***.***.***.*** - tobias [31/Mar/2014:16:19:21 +0200] "GET /repo/test.git/info/refs HTTP/1.1" 404 461" 404 heißt doch Datei nicht gefunden?
Aber der "GIT_PROJECT_ROOT" stimmt, das Verzeichnis test.git existiert auch und www-data hat schreibrechte darauf.
 
gib mal ein "whereis git-core" (whereis mit apt-get installieren falls nicht vorhanden). wird git-core nicht unter /usr/lib/git-core installiert? hast du die config von wo übernommen?
 
Zurück
Oben