-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watchtower 服务 bug:反复重试访问 *.docker.io 可能导致服务崩溃 #308
Comments
Title: Watchtower service bug: Repeatedly retrying to access *.docker.io may cause the service to crash
I used the But today when I was troubleshooting other issues, I accidentally discovered that the watchtower would keep retrying if it failed. I recalled that this might be the reason why the service hung up before. The evidence is shown in the picture: Surge network request (note that this is an active tab, which is always changing dynamically. After a request to index.docker.io fails, it will be removed from this list, and then another request to index.docker.io appears, and other *.docker.io request similar) Chatnio log in docker: (Pay attention to the lower right corner, the very long log, it took less than 1 minute to start!) |
另外还有一个小问题我就不单独提 issue 了,就是后台管理里面的服务日志,点击删除了 chatnio.log 日志后,就再也获取不到新日志了(提示找不到文件),刷新也没用,除非重启 docker 服务才行。 |
There is also a small issue that I won’t mention separately, which is the service log in the background management. After clicking to delete the chatnio.log log, I can no longer get new logs (it prompts that the file cannot be found), and the refresh fails. It's useless unless you restart the docker service. |
这个我记得好久之前修复过,禁止删除latest log chunk,不知道开源版下没下放。后续 #285 会修复。 |
I remember that this was fixed a long time ago, prohibiting the deletion of the latest log chunk. I don’t know if it has been decentralized in the open source version. #285 will be fixed in the future. |
已从 30s 设置到 3600s。 git pull 一下重新启动。 未复现,大概率的原因是未携带 docker credentials 因此导致速率限制。 |
Set from 30s to 3600s. git pull and restart. It has not been reproduced. The most likely reason is that docker credentials are not carried, which results in rate limitation. |
使用的是
docker-compose -f docker-compose.watch.yaml up -d
命令,带 watch 的,部署完挺好的,隔夜发现服务挂了,重启正常,然后一直到现在都正常就没管了(可能因为我中途重启过几次,无意间掩盖了请求过多导致的问题)。但是今天排查其他问题,无意间发现 watchtower 失败会一直重试,回想起这可能是之前导致这个服务挂掉的原因。
证据如图:
Surge 网络请求(注意这个是活动 tab,是是一直动态变化,一个请求 index.docker.io 失败后就从这个列表移除,然后又出现一个 index.docker.io 的请求,其他 *.docker.io 请求类似)
docker 内的 chatnio 日志:(注意看右下角,很长的日志,这才启动不到1分钟!)
The text was updated successfully, but these errors were encountered: