monitor_docker icon indicating copy to clipboard operation
monitor_docker copied to clipboard

Recreating a docker container causes errors looking for old one until reboot

Open bartowski1182 opened this issue 1 year ago • 2 comments

When I bring a docker container down and back up, I see my logs spammed with:

2023-04-21 16:16:03.098 ERROR (Thread-2 (RunDocker)) [custom_components.monitor_docker.helpers] [Docker] teslamate_teslamate_1: Container not available anymore (3) (DockerError(404, 'No such container: bc556f452791ea270bf943e754ba42a4c55426700f7997113be784fc7b4a8772'))

The annoying part is that the sensors are updated fine and are able to bind to the new docker container, despite the errors in the logs. Can we either get a fix for this or a way restart the monitor_docker integration?

bartowski1182 avatar Apr 21 '23 20:04 bartowski1182

same here, thanks for pointing it out

AlexKusnezov avatar May 17 '23 13:05 AlexKusnezov

Duplicate of #104

I've raised a new request (#124) asking to add a reload capability which would at least avoid the need to restart HA.

derekoharrow avatar May 19 '23 10:05 derekoharrow

Can you test the latest version, I believe it is fixed in this one. If confirmed, I will make a new version.

ualex73 avatar May 17 '24 20:05 ualex73

Looking good so far. I have only been running it for about 30 minutes, but have killed and re-created some containers and it seems to be ok.

derekoharrow avatar May 18 '24 09:05 derekoharrow

Sounds like a good test 👍

ualex73 avatar May 18 '24 17:05 ualex73

No negative response, so I will close this ticket :-) if it happens again, please raise a new ticket with info.

ualex73 avatar May 25 '24 15:05 ualex73