【发布时间】:2016-02-16 05:07:57
【问题描述】:
我正在一个 GCP 实例上运行 phabricator(端口 80/443 打开)。 apache2 进程作为 www-data 运行并被允许sudo 权限。
www-data ALL=(root) SETENV: NOPASSWD: /usr/local/bin/git-http-backend
phabricator 守护进程以root 运行。目前不允许 ssh 克隆,只允许 http。
我已经使用 VCS 密码设置了一个用户,并且在尝试推送到新的存储库时(设置了 GIT_TRACE 和 GIT_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"
我的设置中有什么遗漏吗?这是什么原因造成的?
【问题讨论】:
标签: git apache phabricator