安装Discourse 提示gnutls_handshake() failed: Error in the pull function.的解决办法
- 作者:
- KOK
- 最后修订:
- 2021-03-01 11:44:58
- 建站教程
摘要:安装Discourse时,提示gnutls_handshake() failed: Error in the pull function.错误,开始排查了很多问题比如国内访问GITHUB的问题,GIT设置问题,SSL问题等等,最后才发现是MTU的问题。
安装Discourse时,提示gnutls_handshake() failed: Error in the pull function.错误,开始排查了很多问题比如国内访问GITHUB的问题,GIT设置问题,SSL问题等等,最后才发现是MTU的问题。
错误提示如下:
Ensuring launcher is up to date
Fetching origin
fatal: unable to access ‘https://github.com/discourse/discourse_docker.git/’: Failed to connect to github.com port 443: Connection timed out
error: Could not fetch origin
Launcher is up-to-date
Stopping old container
- /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access ‘https://github.com/discourse/pups.git/’: gnutls_handshake() failed: Error in the pull function.
方法1:
修改 /lib/systemd/system/docker.service
将
ExecStart=/usr/bin/dockerd -H fd://
修改为
ExecStart=/usr/bin/dockerd --mtu=1400 -H fd://
方法2:: 修改/etc/docker/daemon.json
加入以下代码
{
"mtu": 1400
}
两个方法都要注意重启一下Docker
sudo systemctl restart docker.service