ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
267 stars 34 forks source link

Loosing connection via docker proxy #85

Closed boehser-enkel closed 1 month ago

boehser-enkel commented 2 years ago

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

ualex73 commented 2 years ago

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

boehser-enkel commented 2 years ago

i'll try it out

boehser-enkel commented 2 years ago

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 commented 2 years ago

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

ualex73 commented 2 years ago

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).

boehser-enkel commented 2 years ago

I configured log level via HA config. That works good

ualex73 commented 1 month ago

I will close this one, if it persist, please raise a new ticket.