我使用 capistrano 来部署我的 rails 应用程序。今天我注意到它失败了,然后回滚了。具体错误是:
** github.com[0:207.97.227.239]: errno=Connection timed out
** fatal: unable to connect a socket (Connection timed out)
** Git error: command `git clone 'git://github.com/username/pygments.rb.git'
如果我通过 SSH 连接到服务器并运行
git clone 'git://github.com/username/pygments.rb.git' test
它超时......如果我在本地运行它但是在我的计算机上它可以完美运行。
另外——如果我使用 http:// 链接,它会成功克隆。只有 git-read-only 链接是超时的。
我的代码中没有任何更改,并且已经使用此代码部署了 100 次。
我还将那个特定的 IP 添加到 CSF 中,但它也没有帮助(我还没有对防火墙等进行任何服务器更改)。
有什么办法可以调试这个,或者任何关于我应该列入白名单的输入(如果这甚至是正确的答案的话......)