2016-02-16 29 views
0

我在GCP實例上運行phabricator(端口80/443打開)。 apache2進程作爲www數據運行,並且允許sudo權限。推送到phabricator上的託管回購時的HTTP 403

www-data ALL=(root) SETENV: NOPASSWD: /usr/local/bin/git-http-backend 

phabricator守護進程運行爲root。現在,ssh克隆是不允許的,只允許http。

我設置與VCS密碼的用戶,並試圖推到一個新的回購協議(與GIT_TRACEGIT_CURL_VERBOSE集),我收到以下錯誤:

* The requested URL returned error: 403 Forbidden 
* Closing connection 2 
error: RPC failed; result=22, HTTP code = 403 
fatal: The remote end hung up unexpectedly 
fatal: The remote end hung up unexpectedly 
Everything up-to-date 

在Apache的other_vhosts_access.log,我看以下行:

src.example.com:80 x.x.x.x - user [16/Feb/2016:05:03:32 +0000] "GET /diffusion/CS/repo.git/info/refs?service=git-receive-pack HTTP/1.1" 403 230 "-" "git/1.9.1" 

在我的設置中是否有什麼我缺少?什麼會造成這種情況?

回答

0

不知怎的,改變我的VCS密碼解決了這個問題。結束這個問題。