Traefik Error use of closed network connection
Asked Answered
J

3

8

I have problem with TCP, UDP EntryPoints

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

my Traefik.yaml:

enter image description here

Jenifferjenilee answered 6/8, 2022 at 4:13 Comment(1)
Please edit your question to include your YAML as text rather than as a screenshot. On stack overflow images should not be used for textual content, see Discourage screenshots of code and/or errors and Why not upload images of code on SO when asking a question for why. For instructions on formatting see How do I format my code blocks?. A minimal reproducible example showing code that reproduces the problem would maximize your chances of getting help. See How to Ask.Gotham
D
1

This did not solve it for me: https://community.traefik.io/t/2-3-errors-on-container-start-is-this-someting-to-worry-about/8438/8

I assumed this was a startup error (because it says Error while starting server) but then I noticed it only occurred when I stopped the docker container. So I currently ignore it because everything works fine. Unfortunately I was not able to create a minimal reproducible example, otherwise I would have filed a bug report.

Dave answered 8/9, 2022 at 17:9 Comment(0)
P
1

I just encountered this issue and the root cause was the readiness and liveness probes checking /ping on the traefik port. Basically what the error message means is, that those listening sockets have been externally closed, in my case due to the pod being terminated because it did not become ready.

The actual root cause was related to this: https://doc.traefik.io/traefik/getting-started/configuration-overview/#the-static-configuration

where the most important point is, that mixing cli and yaml configuration will not work, as yaml will always supersede the command line flags

Hope this helps.

Programmer answered 1/3, 2023 at 11:24 Comment(0)
S
0

I also saw some of those errors, and it turned out that Traefik couldn't find its configuration file. I had mounted a different directory to /etc/traefik, and it didn't contain traefik.yml.

After I copyied traefik.yml from the old location to the new one and restarted Traefik, it fixed the error and got Traefik working.

Severn answered 8/4, 2024 at 18:57 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.