Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Monitor HA, can cause an error during startup #17

Open
ualex73 opened this issue Aug 19, 2019 · 1 comment
Open

Monitor HA, can cause an error during startup #17

ualex73 opened this issue Aug 19, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@ualex73
Copy link
Collaborator

ualex73 commented Aug 19, 2019

I monitor my Home Assistant instance too, and sometimes I get the error below (in the docker logs). I think it is related to my 34 containers, and my HA container is one of the newest/last one ;-)

Exception in thread DockerContainerStats:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/config/custom_components/docker_monitor/helpers.py", line 276, in run
    for name, container in self._api._containers.items():
RuntimeError: dictionary changed size during iteration
@ualex73 ualex73 added the bug Something isn't working label Aug 19, 2019
@Sanderhuisman
Copy link
Owner

Sorry that it took so long, due to sickness I'm not able to work much on this sensor. I (hopefully) fixed it in pull request #22, maybe you can have a look

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants