/etc/nginx/client_body_temp/0000000001"이 작성되었습니다.

/etc/nginx/client_body_temp/0000000001"이 작성되었습니다.

NGINX + generate-fcgi 아래에 베어 저장소가 있습니다.

이제 원격 Git에 로컬 디렉터리를 추가하려고 합니다.

$ git init
$ git add *
$ git commit -m "Initial commit"
$ git remote add zeus http:/domain.com/new.git
$ git push zeus master
Counting objects: 5483, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5343/5343), done.
error: RPC failed; result=22, HTTP code = 500 | 2.82 MiB/s
fatal: The remote end hung up unexpectedly
Writing objects: 100% (5483/5483), 463.89 MiB | 19.33 MiB/s, done.
Total 5483 (delta 1591), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

NGINX 오류 로그에는 다음이 있습니다.

32015/03/03 12:51:55 [crit] 21530#0: *1 writev() "/etc/nginx/client_body_temp/0000000001"은 8184 중 4671개만 기록했습니다. 클라이언트: 10.249.140.96, 서버: domain.com , 요청: "POST /new.git/git-receive-pack HTTP/1.1", 호스트: "domain.com"

NGINX 구성:

    location / {

        client_max_body_size 0;

        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        fastcgi_param GIT_HTTP_EXPORT_ALL "";
        fastcgi_param GIT_PROJECT_ROOT    /var/gitrepo;
        fastcgi_param PATH_INFO           $uri;
        fastcgi_param SCRIPT_FILENAME     /usr/libexec/git-core/git-http-backend;
        fastcgi_param REMOTE_USER         $remote_user;
        include /etc/nginx/fastcgi_params;

        dav_methods PUT DELETE MKCOL COPY MOVE;
        dav_ext_methods PROPFIND OPTIONS;

    }

답변1

$ git config http.postBuffer 524288000

언급한 대로 문제가 해결되었습니다.여기

관련 정보