Camera stream no longer works after upgrade to 0.19.0
nicolazilio opened this issue · comments
Problem/Motivation
Camera stream no longer works after upgrade to 0.19.0.
Expected behavior
Camera stream works after upgrade
Actual behavior
The log contains this traceback
ERROR: failed to list controls of device "/dev/media0"
INFO: removing camera config file /data/motioneye/camera-2.conf...
ERROR: could not open camera config file: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: could not open camera config file: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: could not open camera config file: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: could not open camera config file: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0xffff89d73a00>>, <Task finished name='Task-2609' coro=<PictureHandler.current() done, defined at /usr/lib/python3.10/site-packages/motioneye/handlers/picture.py:93> exception=FileNotFoundError(2, 'No such file or directory')>)
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 762, in _discard_future_result
future.result()
File "/usr/lib/python3.10/site-packages/motioneye/handlers/picture.py", line 108, in current
camera_config = config.get_camera(camera_id)
File "/usr/lib/python3.10/site-packages/motioneye/config.py", line 479, in get_camera
f = open(camera_config_path)
FileNotFoundError: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0xffff89d73a00>>, <Task finished name='Task-2611' coro=<PictureHandler.current() done, defined at /usr/lib/python3.10/site-packages/motioneye/handlers/picture.py:93> exception=FileNotFoundError(2, 'No such file or directory')>)
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 762, in _discard_future_result
future.result()
File "/usr/lib/python3.10/site-packages/motioneye/handlers/picture.py", line 108, in current
camera_config = config.get_camera(camera_id)
File "/usr/lib/python3.10/site-packages/motioneye/config.py", line 479, in get_camera
f = open(camera_config_path)
FileNotFoundError: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0xffff89d73a00>>, <Task finished name='Task-2614' coro=<PictureHandler.current() done, defined at /usr/lib/python3.10/site-packages/motioneye/handlers/picture.py:93> exception=FileNotFoundError(2, 'No such file or directory')>)
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 762, in _discard_future_result
future.result()
File "/usr/lib/python3.10/site-packages/motioneye/handlers/picture.py", line 108, in current
camera_config = config.get_camera(camera_id)
File "/usr/lib/python3.10/site-packages/motioneye/config.py", line 479, in get_camera
f = open(camera_config_path)
FileNotFoundError: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0xffff89d73a00>>, <Task finished name='Task-2616' coro=<PictureHandler.current() done, defined at /usr/lib/python3.10/site-packages/motioneye/handlers/picture.py:93> exception=FileNotFoundError(2, 'No such file or directory')>)
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 762, in _discard_future_result
future.result()
File "/usr/lib/python3.10/site-packages/motioneye/handlers/picture.py", line 108, in current
camera_config = config.get_camera(camera_id)
File "/usr/lib/python3.10/site-packages/motioneye/config.py", line 479, in get_camera
f = open(camera_config_path)
FileNotFoundError: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
INFO: adding new v4l2 camera with id 2...
INFO: removing camera config file /data/motioneye/camera-2.conf...
ERROR: could not open camera config file: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: could not open camera config file: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: could not open camera config file: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: could not open camera config file: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0xffff89d73a00>>, <Task finished name='Task-3987' coro=<PictureHandler.current() done, defined at /usr/lib/python3.10/site-packages/motioneye/handlers/picture.py:93> exception=FileNotFoundError(2, 'No such file or directory')>)
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 762, in _discard_future_result
future.result()
File "/usr/lib/python3.10/site-packages/motioneye/handlers/picture.py", line 108, in current
camera_config = config.get_camera(camera_id)
File "/usr/lib/python3.10/site-packages/motioneye/config.py", line 479, in get_camera
f = open(camera_config_path)
FileNotFoundError: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0xffff89d73a00>>, <Task finished name='Task-3989' coro=<PictureHandler.current() done, defined at /usr/lib/python3.10/site-packages/motioneye/handlers/picture.py:93> exception=FileNotFoundError(2, 'No such file or directory')>)
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 762, in _discard_future_result
future.result()
File "/usr/lib/python3.10/site-packages/motioneye/handlers/picture.py", line 108, in current
camera_config = config.get_camera(camera_id)
File "/usr/lib/python3.10/site-packages/motioneye/config.py", line 479, in get_camera
f = open(camera_config_path)
FileNotFoundError: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0xffff89d73a00>>, <Task finished name='Task-3991' coro=<PictureHandler.current() done, defined at /usr/lib/python3.10/site-packages/motioneye/handlers/picture.py:93> exception=FileNotFoundError(2, 'No such file or directory')>)
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 762, in _discard_future_result
future.result()
File "/usr/lib/python3.10/site-packages/motioneye/handlers/picture.py", line 108, in current
camera_config = config.get_camera(camera_id)
File "/usr/lib/python3.10/site-packages/motioneye/config.py", line 479, in get_camera
f = open(camera_config_path)
FileNotFoundError: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
ERROR: Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0xffff89d73a00>>, <Task finished name='Task-3994' coro=<PictureHandler.current() done, defined at /usr/lib/python3.10/site-packages/motioneye/handlers/picture.py:93> exception=FileNotFoundError(2, 'No such file or directory')>)
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
File "/usr/lib/python3.10/site-packages/tornado/ioloop.py", line 762, in _discard_future_result
future.result()
File "/usr/lib/python3.10/site-packages/motioneye/handlers/picture.py", line 108, in current
camera_config = config.get_camera(camera_id)
File "/usr/lib/python3.10/site-packages/motioneye/config.py", line 479, in get_camera
f = open(camera_config_path)
FileNotFoundError: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
The problem persists even after re-installing the add-on
Ok, I just saw that you've probably released a patch for this problem https://github.com/hassio-addons/addon-motioneye/releases/tag/v0.19.1
I have the same problem. I have update it to 0.19.1 received some minutes go but not working,, I have restored to the 0.18.0 and work as before the update
0.19.1 works for me
same for me, 0,19.1 works
just again update from 0.18.0 to 0.19.1 NOT works, just one http:// camera (video complete grey) but the other two works great (rtsp camera).
the error on the grey screen say "unable to open video device"
same issue here, reverting back to 0.18
FileNotFoundError: [Errno 2] No such file or directory: '/data/motioneye/camera-2.conf'
Sounds like a migration went south. Does it work if you re-add the camera manually as a new camera?
I feel like multiple different issue are reporting in this issue with "works for me" / "doesn't work for me". Without actual context or thinking about what issue one is experiencing even remotely.
As reported by the issue author @nicolazilio here: #417 (comment)
0.19.1 works for me
The issue has been resolved for the reporter, going to close it for that reason.
../Frenck
@fdapport this issue is closed. If you have an issue, please open an new issue with detailed information about your situation.
Please also, don't use email to respond to GitHub issues, instead go to the web interface. Responses per email looks absolutely horrible (feel free to take a look at your response yourself).
@frenck Yea formating is just fine from email replies, you actually don't know what you're even on about. (feel free to take a look at your response yourself).