Log error that I can't find the source of

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.

Just bumping this back to the top since no replies yet. Just had the same problem upgrading to 101.3.

Did you configure the NVR or individual cameras through the GUI? This way you won’t see anything in your configuration files.

The individual cameras were configured via the .yaml files. Nothing camera or NVR wise was configured via the UI. I figured anything configured in the UI would be stored in the db. That’s why I dumped the tables of all entities with attributes and then searched the output.

camera:
  - platform: generic
    name: 'Driveway Cam'
    still_image_url: 'http://192.000.000.000/get-single-cam.php?cam=2&res=hi'
    stream_source: 'http://192.000.000.000:20082/cgi-bin/hi3510/snap.cgi?&-getstream&-chn=1'
    framerate: 1

  - platform: generic
    name: 'Garage Cam'
    still_image_url: 'http://192.000.000.000/get-single-cam.php?cam=3&res=hi'
    stream_source: 'http://192.000.000.000:20083/cgi-bin/hi3510/snap.cgi?&-getstream&-chn=1'
    framerate: 1

  - platform: foscam
    name: 'Front Porch Cam'
    ip: '192.000.000.000'
    port: 20081
    username: 'xxxxxxxxx'
    password: !secret xxxxxxxxxxxxxxx

Bruce

It’s not. Anything done in the GUI is stored in json files inside .storage

Wow, never saw that directory. I did a grep on all the json files there but no hits on “rtsp”.

Bruce