Open tippfehlr opened 8 months ago
It actually keeps on attempting to connect to deleted agents.
I'm looking at the code now and might find a fix
Replication
Add a new agent, Bring the agent offline Delete the agent
Agent is removed from the db however it is kept as a connection state in socket.io
Solution. Call socket.disconnect before deleting the agent.
A temporary solution. Restart the dockge docker container by hand. It will no longer have the connection in memory
β οΈ Please verify that this bug has NOT been reported before.
π‘οΈ Security Policy
Description
I removed an agent, now every ~3 seconds this error is logged:
the agent management is great, I removed it for other reasons
π Reproduction steps
π Expected behavior
The dockge host does not try to connect to the agent anymore.
π Actual Behavior
The dockge host (probably) tries to connect to the agent, fails (because it is no longer online) and throws/reports an error.
Dockge Version
1.4.1
π» Operating System and Arch
Debian/Armbian
π Browser
Firefox 121.0.1
π Docker Version
Docker version 24.0.7, build afdd53b
π© NodeJS Version
No response
π Relevant log output