【发布时间】:2017-12-20 11:48:07
【问题描述】:
我在数字海洋中使用了一段时间的dokku,没有任何问题
我现在在使用以下命令部署到 dokku 时遇到问题:
git remote add dokku dokku@some-ip:myapp
git push dokku develop:master
我有以下问题:
Counting objects: 528, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (509/509), done.
packet_write_wait: Connection to some-ip port 22: Broken pipe
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'dokku@some-ip:myapp'
我试试
- 为 ssh 客户端设置
ServerAliveInterval -
git config http.postBuffer 209715200/git config ssh.postBuffer 209715200
但它不起作用。我认为是因为要推送的内容的大小有点高...
感谢您的帮助!
更新
将postBuffer 选项设置为值209715200 后,出现以下错误:
Counting objects: 528, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (353/353), done.
Timeout, server some-ip not responding.38.00 KiB/s
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'dokku@some-ip:myapp'
上传挂起前的最后一个进度提示是:
Writing objects: 87% (466/531), 33.85 MiB | 120.00 KiB/s
【问题讨论】:
-
sshd是否在some-ip运行?检查与some-ip和some-ip:22的连接。 -
@phd 非常感谢您的回答!是的,我可以使用 ssh 连接到一些 IP。在做 git push 的时候,一开始我看到了一些网络流量,但是过了一段时间就停止了……
-
什么是时间量 -- 秒、分钟或小时?
-
@Jakuje 非常感谢您的回答!大约 5 / 10 分钟。仅供参考,我增加了 postBuffer 值,现在出现超时错误...
-
我猜有一个配置条目要更改,但我不知道是哪个以及它是 ssh 还是 git / 客户端或服务器...