Currently, I’m unable to restart my Home Assistant (hass.io) successfully. When trying it from the ssh shell with “hassio ha restart”, it processes for a long time, then says “Unknown Error, check logs” or something like that. When I look in the log, the last thing I see on there is:
2019-10-26 00:21:37 INFO (MainThread) [homeassistant.setup] Setting up logger
Exception in thread stream_worker:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/src/homeassistant/homeassistant/components/stream/worker.py", line 50, in stream_worker
container = av.open(stream.source, options=stream.options)
File "av/container/core.pyx", line 275, in av.container.core.open
File "av/container/core.pyx", line 227, in av.container.core.Container.__cinit__
File "av/container/core.pyx", line 129, in av.container.core.ContainerProxy.__init__
File "av/container/core.pyx", line 195, in av.container.core.ContainerProxy.err_check
File "av/utils.pyx", line 105, in av.utils.err_check
av.AVError: [Errno 875574520] Server returned 404 Not Found: 'rtsp://xxx:[email protected]:554/videoMain' (16: rtsp)
The weird thing is that URL is pointing to the RTSP port of my NVR but I can’t find anywhere that URL is set. I don’t think I set it and the /videoMain
portion is wrong and the username/password is a combo I use for individual cameras but not the NVR. I’ve searched all the configuration files and dumped the db of all the entities with attributes and did a text search and can’t find that URL or even any occurrence of just “rtsp” I have 3 of my cameras setup in HA, but not through the NVR and I’m not using RTSP for those.
Any idea how I can find where it’s getting that URL so I can get rid of it? It’s quite annoying. In order to get HA to start, I have to remove power and then turn it on again.