【问题标题】:Internal Server Error after git clonegit clone 后内部服务器错误
【发布时间】:2016-04-03 18:17:26
【问题描述】:

我在 git clone 后遇到了内部服务器错误。

命令:

git clone git@bitbucket.org:wewewe/are.git /var/www/html

在运行 git clone 之前,我可以访问 URL 上的测试文件。

我正在使用 root 用户。

我在运行 git clone 之前看到文件夹归 root 所有。现在仍然归root所有。

我该如何解决?

附加信息: 名为 url.com/test.php 的文件仅包含

【问题讨论】:

  • 在临时文件夹中克隆(不是以 root 身份)是否有效?

标签: git ubuntu-14.04 bitbucket


【解决方案1】:

如果错误 500 是在克隆期间,那么它可能是 BitBucket 端的问题(如corrupted repo,或一些停机问题)

但如果错误发生在克隆之后,刷新页面时,完全是“are.git”repo中的webapp的问题,我们不知道的。
例如见this issue:

我没有注意到某个函数的 PHP 错误,它在目标服务器上不起作用。

【讨论】:

  • 在 git clone 之后,我使用 sftp 上传了一个测试文件,只回显“test”;同样的错误。我还用另一个测试文件 echo "test2" 做了一个 git pull;同样的错误。
  • @LJBoy 同样,这取决于您何时看到此错误。如果这是在刷新 web 应用的页面时,这与 git 或 bitbucket 无关。
  • 在我运行 git clone 之前真的很奇怪,我可以访问 url.com/test.php。我删除它,运行 git clone。 test.php 在里面有 并遇到 500 错误。没有进行其他更改。
  • @LJBoy apache 或 nginx 服务器的日志中有什么线索吗?
  • 我发现 apache mod_rewrite 不能。所以它现在固定了。
猜你喜欢
  • 2019-02-11
  • 2018-12-10
  • 2015-09-09
  • 2021-11-30
  • 2015-03-15
  • 2015-08-28
  • 1970-01-01
  • 2013-01-30
相关资源
最近更新 更多