Getting tons of: "Docker event stream error (aborted); reconnect attempt #1 in 1000ms" #190
-
|
Not sure why this is happening. AI says it has something to do with the proxy timing out (it appears to timeout every 10 minutes). I have a timeout added, but it's still an issue. How can I fix this? log: Here's my drydock controller stack: One of my agent stacks: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
The only workaround that seems to work is to create a tiny heartbeat container to keep the connection from timing out without having to create some sort of custom config for the proxies.. Open to any other suggestion please. |
Beta Was this translation helpful? Give feedback.
-
|
This is expected behavior with third-party socket proxies — the proxy's We've made two changes: 1. Downgraded the log from Since the first reconnect is expected behavior and resolves automatically, it no longer shows as a warning. Subsequent reconnect failures (indicating a real problem) still log as 2. Our own proxy is on the roadmap The root cause is that we can't control timeout behavior on third-party proxies like linuxserver/socket-proxy. When we ship our own purpose-built proxy, event stream connections will be exempt from idle timeouts entirely, eliminating this reconnect cycle. In the meantime, your heartbeat container approach works, or you can bump |
Beta Was this translation helpful? Give feedback.
-
|
I would recommend updating the doc to include this timeout as expected behavior and suggested workarounds until the home grown proxy is available |
Beta Was this translation helpful? Give feedback.
-
|
Docs have been updated — the FAQ now covers the reconnect behavior, proxy timeout workarounds, and what to expect with single vs repeated reconnects: https://getdrydock.com/docs/faq#docker-event-stream-aborted-reconnects-every-few-minutes Also in rc.2+, the first reconnect logs at |
Beta Was this translation helpful? Give feedback.
This is expected behavior with third-party socket proxies — the proxy's
TIMEOUTsetting kills idle HTTP connections, and Docker's event stream is a long-lived connection that can go idle between events. Drydock detects the disconnect and reconnects automatically (the "Listening to docker events" line confirms it succeeded). No events are lost because Drydock requests eventssincethe last received timestamp on reconnect.We've made two changes:
1. Downgraded the log from
warntoinfo(a28cd7ed)Since the first reconnect is expected behavior and resolves automatically, it no longer shows as a warning. Subsequent reconnect failures (indicating a real problem) still log as
warn.2. Our own p…