Your message dated Sat, 4 Jan 2014 00:05:57 +0100
with message-id <[email protected]>
and subject line Fixed in 1.0.3-1
has caused the Debian Bug report #698071,
regarding fcgiwrap: does not read DOCUMENT_ROOT and SCRIPT_NAME
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
698071: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698071
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fcgiwrap
Version: 1.0-1+squeeze1
Severity: important

It seems to be impossible to set git-http-backend with the squeeze version of 
fcgiwrap.

Every attempt to clone an existing repo with: "git clone 
http://git.example.com/myrepo.git"; fails with:
FastCGI sent in stderr: "Cannot get script name, is DOCUMENT_ROOT and 
SCRIPT_NAME set and is the script executable?" while reading response header 
from upstream

The script "/usr/lib/git-core/git-http-backend" exists and is executable; 
"DOCUMENT_ROOT" and "SCRIPT_NAME" should be computed with "SCRIPT_FILENAME".

I tried to set "fastcgi_param SCRIPT_NAME   git-http-backend;" and 
"fastcgi_param DOCUMENT_ROOT   /usr/lib/git-core/;" but it did not change 
anything (same error).

I finally tried to use the git version of fcgiwrap ( 
https://github.com/gnosek/fcgiwrap ) and everything worked well (no error, and 
I can clone myrepo).


# nginx config
server {
        listen   80;
        server_name git.example.com;

        access_log /var/log/nginx/git.access.log;
        error_log /var/log/nginx/git.error.log;

        # static repo files for cloning over https
        location ~ 
^.*\.git/objects/([0-9a-f]+/[0-9a-f]+|pack/pack-[0-9a-f]+.(pack|idx))$ {
            root /home/git/repositories;
        }
    
        # requests that need to go to git-http-backend
        location ~ 
^.*\.git/(HEAD|info/refs|objects/info/.*|git-(upload|receive)-pack)$ {
            root /home/git/repositories;
    
            fastcgi_pass 127.0.0.1:8083;
            fastcgi_param SCRIPT_FILENAME   /usr/lib/git-core/git-http-backend;
            fastcgi_param PATH_INFO         $uri;
            fastcgi_param GIT_PROJECT_ROOT  /home/git/repositories;
            fastcgi_param GIT_HTTP_EXPORT_ALL "";
            include fastcgi_params;
        }
}




-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: i386 (i586)

Kernel: Linux 2.6.32-5-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fcgiwrap depends on:
ii  libc6                         2.11.3-4   Embedded GNU C Library: Shared lib
ii  libfcgi0ldbl                  2.4.0-8    Shared library of FastCGI
ii  spawn-fcgi                    1.6.3-1    A fastcgi process spawner

fcgiwrap recommends no packages.

fcgiwrap suggests no packages.

-- no debconf information

-- 
Félix

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 1.0.3-1

Closing, as reporter acks this was fixed in a later version. Thanks for
the feedback!

-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to