Closed gboudreau closed 3 weeks ago
There is most likely a problem in your network setup. Maybe there you will find some leads.
As discussed above unfortunately this feels like a networking issue and seems to be pretty specific. Posting more information may or may not help unfortunately (ip addr
ip rule
ip neigh
and all iptables chains). Have you ran any other server application on docker before?
For further debugging this may be helpful:
I installed tcpdump
to look further into what was happening, I stopped a cloudflared
(tunnel) container to stop spam in tcpdump
output, and changed net.core.wmem_max
and net.core.rmem_max
to 7500000
(a recommendation I found in the cloudflared
logs), and after all that, this problem was gone... ¯\_(ツ)_/¯
Have you read the documentation?
You are setting up gotify in
Describe your problem
I'm running Gotify using Docker on a Debian host. It listens on port 8003 (port 80 in container is mapped to port 8003 on host).
Sometimes, say 9 times out of 10, when I try to connect to Gotify from the server, I get a "No route to host" error. This happens if I use my LAN IP, or Docker's network IP:
But sometimes, for no apparent reason, it just works...
If I use
localhost
or127.0.0.1
to connect, it also works only 1/10 times, but the error isConnection reset by peer
:This problem doesn't happen with other Docker containers I'm running. I have about 60 in total, most of them listening on some port, and they all seem to work fine.
When I try to connect to Gotify from a remote host, using the LAN IP (or the VPN IP), it works 9 times out of 10 (i.e. much more often). And when it fails, the error is "Couldn't connect to server" after what seems like a random time between 2 and 20 seconds:
And sometimes, when it works, instead of returning in less than 500ms, there will be a much longer delay to receive a response:
When an error occurs, trying to connect from the server or workstation, the Gotify logs show nothing. And when it takes 20s to return a response, the log don't show that; it always shows a 50-70µs response time:
The only error I can see in Gotify logs is when a remote host can connect (eg. the mobile app on Android), it will end up disconnecting the websocket with an
i/o timeout
error after a while:I have no firewall setup, ping always works, and route all looks fine:
Any ideas on how I could debug this further?