monitor_docker icon indicating copy to clipboard operation
monitor_docker copied to clipboard

Loosing connection via docker proxy

Open boehser-enkel opened this issue 4 years ago • 6 comments

Hey there,

from time to time the addon looses connection ERROR (Thread-3) [custom_components.monitor_docker.helpers] [Docker] hassio_observer: Container not available anymore (3) (DockerError(900, 'Cannot connect to Docker Engine via tcp://192.168.88.201:2375 [Server disconnected]'))

docker -H tcp://192.168.88.201:2375 ps gives me data back so there is a connection

How can i solve this?

greetz

boehser-enkel avatar Dec 21 '21 11:12 boehser-enkel

This should hopefully be fixed in '1.14-beta3', can you try that version?

ualex73 avatar Dec 21 '21 11:12 ualex73

i'll try it out

boehser-enkel avatar Dec 21 '21 12:12 boehser-enkel

Up until now the connection persists. There is a log error at night saying there is no connection (which bothers me a bit ^^) but the data is there. Can you configure the log to just be written when the connection is dropped for longer time? When do you plan to release this version?

boehser-enkel avatar Dec 22 '21 06:12 boehser-enkel

Works great but also spams the logs as error. Any plans to remove them?

boehser-enkel avatar Dec 30 '21 18:12 boehser-enkel

Technically it is not a monitor_docker problem, because the proxy closes the connection and we do a re-establish. I will check if we can introduce an ignore option (something like if you enable it, it does not log anything in any situation).

ualex73 avatar Jan 03 '22 18:01 ualex73

I configured log level via HA config. That works good

boehser-enkel avatar Jan 03 '22 18:01 boehser-enkel