-
Notifications
You must be signed in to change notification settings - Fork 336
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
Dozzle in swarm not connecting to agent #3512
Comments
It all looks right here. There is a testing subcommand you can use:
Run that to see what the error is. If it succeeds, then something is wrong with the swarm network. If it doesn't work, then the agent is not set up correctly or is behind a firewall. |
Command was run on the same host as dozzle, but not within the docker network that dozzle is in:
Here is my attempt to run the command on the docker swarm network I have
Here is more information about said network if it is helpful at all:
|
Seems like without network it works.
This is actually a docker error. You can't attach to networks unless attachable is enabled. I imagine if the above command worked then this worked too. How are you creating the network? Did you enable --internal? I can try to bring up my test swarm network this week and see if it makes a difference. But I am pretty sure it has something to do with your network. π |
I fixed the issue! At first I updated the docker network to set the "attachable" flag to true, and ran the testing command again to find that it was able to connect:
I then decided to take a closer look at the docker-compose file I had setup and I began removing unnecessary config lines to simplify the troubleshooting. The first lines I removed was
I realized I didn't actual need to expose the web-gui port since traefik acts as my reverse proxy hence why I removed these lines. But when I brought up the container it appears to have fixed the connection to the agent. It is unclear why exposing the web-gui port prevented the server from connecting to the agent though. |
I doubt that made a difference. Maybe something else happened. But good to hear things are good now. |
π Check for existing issues
How is Dozzle deployed?
Swarm Mode
π¦ Dozzle version
8.10.0
β Command used to run Dozzle
Swarm config:
Agent Config:
π Describe the bug / provide steps to reproduce it
Sorry if this is too similar to Issue #3344. There was no resolution for that issue and I am running in swarm mode which may be part of the problem potentially.
All my container in my docker swarm are configured and working properly. I am trying to connect a host not on the docker swarm via the agent. It says the host is offline.
I have from a container in the same network/swarm as the dozzle server run this:
So it doesn't appear to be a firewall issue, which has me stumped.
π» Environment
Dozzle Server's Environment
Dozzle agent's Environment
πΈ If applicable, add screenshots to help explain your bug
π If applicable, attach your Dozzle logs. You many need to enable debug mode. See https://dozzle.dev/guide/debugging.
{
"level": "warn",
"error": "rpc error: code = DeadlineExceeded desc = received context error while waiting for new LB policy update: context deadline exceeded",
"endpoint": "10.0.0.220:7007",
"time": "2025-01-07T00:01:10Z",
"message": "error fetching host info for agent"
}
The text was updated successfully, but these errors were encountered: