Error while setting up platform hadockermon
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 149, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/hadockermon/switch.py”, line 53, in setup_platform
from pydockermon import Dockermon
ModuleNotFoundError: No module named ‘pydockermon’
Yup, that’s why I posted the link to the newer repo.
I agree. That’s what I actually use.
I was just trying to add more information to the OP for completeness.
And it looks like the second component linked to above might provide additional information in an easier way than having to set up REST sensors/switches for everything. I don’t use it so i really don’t know if it works well or not.
I’m using the dockermon to control all other dockers on my server for a while now, all worked well.
I’m running a 0.112.4 supervised docker on an Ubuntu 20.04.
Since the new fast startup feature in HA couple versions ago (which is great by the way),
most of the time after restart of the HA it fails to load the dockermon switches.
From the logs it seems like it tries to connect to the dockermon docker and fails because there’s no route?
ERROR (MainThread) [homeassistant.components.rest.switch] No route to resource/endpoint: http://XXX.XXX.XX.3:8126/container/<name>
ERROR (MainThread) [homeassistant.components.rest.switch] No route to resource/endpoint: http://XXX.XXX.XX.3:8126/container/<name>
Most of the time if I restart the HA again it will solve the issue, at least until next restart…