hassio-addons / addon-motioneye

motionEye - Home Assistant Community Add-ons
https://addons.community
MIT License
267 stars 43 forks source link

Camera stream no longer works after upgrade to 0.19.0 #417

Closed nicolazilio closed 1 year ago

nicolazilio commented 1 year ago

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'
nicolazilio commented 1 year ago

The problem persists even after re-installing the add-on

nicolazilio commented 1 year ago

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

fdapport commented 1 year ago

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

nicolazilio commented 1 year ago

0.19.1 works for me

joebar38 commented 1 year ago

same for me, 0,19.1 works

fdapport commented 1 year ago

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).

fdapport commented 1 year ago

the error on the grey screen say "unable to open video device"

McGeaverBeaver commented 1 year ago

same issue here, reverting back to 0.18

frenck commented 1 year ago

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: https://github.com/hassio-addons/addon-motioneye/issues/417#issuecomment-1517946182

0.19.1 works for me

The issue has been resolved for the reporter, going to close it for that reason.

../Frenck

fdapport commented 1 year ago

Also add as a new camera doesn't work...Inviato dal mio Galaxy -------- Messaggio originale --------Da: Franck Nijhof @.> Data: 22/04/23 12:22 (GMT+01:00) A: hassio-addons/addon-motioneye @.> Cc: fdapport @.>, Comment @.> Oggetto: Re: [hassio-addons/addon-motioneye] Camera stream no longer works after upgrade to 0.19.0 (Issue #417)

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?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

frenck commented 1 year ago

@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).

McGeaverBeaver commented 1 year ago

Feel free to direct but please, be kind. Why the hostility in the reply? If you're not a fan of how the formatting looks, complain to Github, the site you're utilizing for your package. or use a nother provider?

Telling people to not use the response feature, is a bit ridiculous.. Formating as well is just fine, ( I LOOKED myself ) you just seem to have the inability to read before a line??

SENT from email!

McGeaverBeaver commented 1 year ago

@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).