【问题标题】:Why does git push fails with "Operation timed out"?为什么 git push 失败并显示“操作超时”?
【发布时间】:2011-03-09 14:47:34
【问题描述】:
MacMini $ git push origin master
Counting objects: 1916, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (1751/1751), done.
Read from remote host codebasehq.com: Operation timed out
fatal: The remote end hung up unexpectedly
error: pack-objects died of signal 13
error: pack-objects died with strange error
error: failed to push some refs to 'git@codebasehq.com:xx/xx/xx.git'

【问题讨论】:

标签: git git-push


【解决方案1】:

如果现代 UTM 防火墙错误地识别流中的恶意软件痕迹、打包数据或不安全命令的痕迹,它们可能会混淆传出数据……而且这些错误警报经常发生。您的网络或目标端的此类安全设备可以解释为什么有些项目可以正常运行,而其他项目则断开连接。

如果是这种情况,如果您为此连接使用不同的协议,例如,您可以避免触发。 ssh:// 或 https:// 而不是 git://。

【讨论】:

【解决方案2】:

您的网络连接似乎不好。您可以访问 codebasehq.com,尤其是您使用的网络协议。你有正确的代理服务器配置吗?可以拉其他项目吗?

【讨论】:

  • 是的。我可以将其他项目推送到 codebasehq.com……这只是导致问题的少数……
  • 看起来像是超时或一些奇怪的数据模式。这总是在同一位置还是同时?你可以尝试用wireshark或tcpdump查看数据流,看看有没有可疑之处。
  • 是的。它总是发生在一个特定的点......是否有详细的 git 命令可以识别被拒绝的文件?
猜你喜欢
  • 2012-05-21
  • 2012-10-29
  • 1970-01-01
  • 2014-07-20
  • 2014-01-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-15
相关资源
最近更新 更多