Traefik 使用封闭网络连接时出错

问题描述 投票:0回答:3

我的 TCP、UDP 入口点有问题

time="2022-08-03T10:12:16Z" level=error msg="accept tcp [::]:3478: use of closed network connection" entryPointName=tcp3478
time="2022-08-03T10:12:16Z" level=error msg="Error while starting server: accept tcp [::]:3478: use of closed network connection" entryPointName=tcp3478
time="2022-08-03T10:12:16Z" level=error msg="accept tcp [::]:80: use of closed network connection" entryPointName=http
time="2022-08-03T10:12:16Z" level=error msg="Error while starting server: accept tcp [::]:80: use of closed network connection" entryPointName=http
time="2022-08-03T10:12:16Z" level=error msg="accept tcp [::]:443: use of closed network connection" entryPointName=https
time="2022-08-03T10:12:16Z" level=error msg="Error while starting server: accept tcp [::]:443: use of closed network connection" entryPointName=https
time="2022-08-03T10:12:16Z" level=error msg="accept tcp [::]:57772: use of closed network connection" entryPointName=tcp57772
time="2022-08-03T10:12:16Z" level=error msg="Error while starting server: accept tcp [::]:57772: use of closed network connection" entryPointName=tcp57772

我的 Traefik.yaml:

enter image description here

sockets tcp udp traefik
3个回答
1
投票

这并没有为我解决问题:https://community.traefik.io/t/2-3-errors-on-container-start-is-this-someting-to-worry-about/8438/8

我认为这是一个启动错误(因为它说

Error while starting server
),但后来我注意到它只在我停止 docker 容器时发生。所以我目前忽略它,因为一切正常。不幸的是,我无法创建一个最小的可重现示例,否则我会提交错误报告。


1
投票

我刚刚遇到这个问题,根本原因是就绪性和活性探针在 traefik 端口上检查 /ping。基本上,错误消息的含义是,那些侦听套接字已从外部关闭,在我的情况下,是由于 pod 因未准备就绪而被终止。

实际的根本原因与此相关:https://doc.traefik.io/traefik/getting-started/configuration-overview/#the-static-configuration

最重要的一点是,混合 cli 和 yaml 配置将不起作用,因为 yaml 将始终取代命令行标志

希望这有帮助。


0
投票

我也看到了其中一些错误,结果发现 Traefik 找不到它的配置文件。我已将不同的目录安装到

/etc/traefik
,并且它不包含
traefik.yml

当我将

traefik.yml
从旧位置复制到新位置并重新启动 Traefik 后,它修复了错误并使 Traefik 正常工作。

© www.soinside.com 2019 - 2024. All rights reserved.