问题描述
2022-06-20T21:36:52.357+0800 [ERROR] agent: Failed to check for updates: error="Get "https://checkpoint-api.hashicorp.com/v1/check/consul?arch=amd64&os=linux&signature=7a67b8a6-888a-eeb6-21ce-c6acfe5c59ce&version=1.12.0": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"

解决方案
vi /etc/consul.d/consul.json
#新增参数
"disable_update_check": true,


本文档介绍了在遇到Consul错误'contextdeadlineexceeded'时,如何通过编辑配置文件禁用自动更新检查,以解决超时问题。具体步骤是在/etc/consul.d/consul.json中添加'disable_update_check': true。
272

被折叠的 条评论
为什么被折叠?



