【问题标题】:HTTP 403 while pushing to hosted repo on phabricator推送到 phabricator 上的托管仓库时出现 HTTP 403
【发布时间】: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_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"

我的设置中有什么遗漏吗?这是什么原因造成的?

【问题讨论】:

    标签: git apache phabricator


    【解决方案1】:

    不知何故更改我的 VCS 密码解决了这个问题。结束问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-10-29
      • 1970-01-01
      • 2019-01-13
      • 1970-01-01
      • 2019-07-21
      • 2011-07-26
      • 2011-07-08
      • 2020-09-28
      相关资源
      最近更新 更多