16

ERROR: An HTTP request took too long to complete. Retry with –verbose to obtain...

 3 years ago
source link: http://i.lckiss.com/?p=7223
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

ERROR: An HTTP request took too long to complete. Retry with –verbose to obtain debug information

2021-07-19

这两天升级 Docker 中的 mysql 容器时报的错,其实这个解决方案不够完美,但我也不清楚具体原因,所以暂且这样处理。

具体描述:

在重新执行 docker-compose 命令时,容器的 recreate 时间过长,超过了默认的 60s 超时时间,导致 docker-compose 强制断开了和容器之间的通信,脚本执行中断。后来不信邪重试了好几次,依旧失败,以前也没遇到过。

暂定解决办法,直接终端输入:

export COMPOSE_HTTP_TIMEOUT=500
export DOCKER_CLIENT_TIMEOUT=500

这样只会对当前这个终端生效,相对安全。然而当我再次尝试 recreate MySQL 容器时发现速度其实一点都不慢,至于为什么之前一直创建不成功,很可能是容器本身出现了一些错误,导致了阻塞,又或者是我的树莓派那时候有什么任务在做很卡也不一定,当然这也只是猜想。


  • 2021051300031389.jpg

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK