Closed Electronlibre2012 closed 1 year ago
Could you explain how to reproduce this issue?
../Frenck
Hello @frenck , thanks for your time,
sorry, well...i dont know, i just do the update, then all my camera still working in HA, i mean in the picture entity cards.
I just backup and see that the backup is only 20K. Then i update the addOn from 0.18 to 0.19 and when i go to the webinterface, i got the "error unknown its recommanded to refresh". I refresh, same. i restart HassOs Core, same. after the error message desapeared, i see that i have no camera config yet, so i try to had. I found my camera but they are not load, i mean the stream is not loaded, i have only the config on the left panel.
i then use the backup i just made and same behavior.
So i use my partial backup of this morning at 2 am, and it works back on 0.18.
Tell me if and how i can help debug?
v4l/direct USB is the issue. Ok, that is something I can try to work with.
v4l/direct USB is the issue. Ok, that is something I can try to work with.
Hello, I'm actually debugging around a similar issue where motioneye doesn't display any video coming from local USB camera.
logs are showing this : [1:ml1:Camera1] [ERR] [ALL] init_camera_type: Unable to determine camera type (MMAL, Netcam, V4L2, BKTR)
By looking to motion source code it looks like it's wasnt built with V4L2 capability as it doesn't detect some headers like linux/videodev2.h or sys/videoio.h. I could have videodev2.h by installing linux-headers . Still digging ...
Copying informations from Discord:
Version 0.19.0 and now I cannot bring the camera picture back - it shows only this stretched picture:
I have USB camera connected to Raspberry pi4, it worked with previous version of addon (0.18.0)
Camera is a Logitech HD Pro Webcam C920, Home Assistant 2023.4.5, Supervisor 2023.04.0, OS: 10.0, UI: 20230411.1 - latest
After enabling DEBUG mode for motionEye and trying to access camera again, there is a lot of these messages in the log:
DEBUG: connection closed for mjpg client for camera 1 on port 9081 DEBUG: mjpg client for camera 1 on port 9081 removed DEBUG: creating mjpg client for camera 1 DEBUG: mjpg client for camera 1 connected on port 9081 DEBUG: no authentication _on_connect DEBUG: _on_connect: Stream is closed. Future cancelled. DEBUG: connection closed for mjpg client for camera 1 on port 9081 DEBUG: mjpg client for camera 1 on port 9081 removed DEBUG: creating mjpg client for camera 1 DEBUG: mjpg client for camera 1 connected on port 9081 DEBUG: no authentication _on_connect DEBUG: _on_connect: Stream is closed. Future cancelled.
Also in HA Logs:
Camera is not turning on, because blue LEDs are not showing
v4l/direct USB is the issue. Ok, that is something I can try to work with.
i have only Montion Eyes Os camera, so its not only v4l/direct USB i think...
Dear Hassio and Motion Eye users and enthusiasts, same problem as the one described here. Stopped working after the update to 19. Using the sony playstation USB camera. So definitely not isolated cases. Best regards.
Same issue. Net cam works, only usb camera doesn't.
Alright, let's not add comments like "I have the same issue" that is not productive, instead add an 👍 emoji reaction to the issue description.
That is still visible, without adding comments that add no triage value (and thus are just adding noise).
Thanks 👍
Same problem here. In the previous version working
Hello, I could successfully make the local USB running by adding linux-headers dependency in the dockerfile.
Interesting conclusion @hdaf83, as that dependency was removed in the 0.19.0 release:
v0.18.0...v0.19.0
#diff-9b220fff24 (Line 27 in the old Dockerfile)
Yup that makes a difference when motion
is compiled from source, thanks for that @hdaf83 ❤️
Shipped v0.19.1
nothing change for me : i lost my configuration for all my 4 cameras, which are RPI0w and RPI02w with motion eye OS :
Each time i open the webinterface it doesnt ask for login/passwd as usually just "error unknow, Refreshing is recommanded" then no configuration found for any camera.
Revert back to 0.18 and then it works as expected : ask for login/password then display the 4 streams :
seems something is wrong in the backup process or config to be restor with the new version for my cameras...
Patch 0.19.1 fixed the issue for me, the USB camera is now working perfectly well. Thanks to Frenck and hdaf83 for the fix 0.19.1, and hope a solution will be found for the users still impacted by a bug.
EDIT : i force refresh cookies and get this error in general logs :
Logger: frontend.js.latest.202304111
Source: components/system_log/__init__.py:257
First occurred: 18:14:48 (4 occurrences)
Last logged: 18:15:15
http://192.168.1.50:8123/a0d7b954_motioneye/dashboard:0:0 Uncaught
in motioneye Addon
ERROR: HTTP 599: Failed to connect to 192.168.1.164 port 8765 after 3055 ms: Couldn't connect to server
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/tornado/web.py", line 1769, in _execute
result = await result
File "/usr/lib/python3.10/site-packages/motioneye/handlers/config.py", line 60, in get
await self.list()
File "/usr/lib/python3.10/site-packages/motioneye/handlers/config.py", line 505, in list
resp = await remote.get_config(local_config)
File "/usr/lib/python3.10/site-packages/motioneye/remote.py", line 214, in get_config
response = await _send_request(request)
File "/usr/lib/python3.10/site-packages/motioneye/remote.py", line 79, in _send_request
response = await AsyncHTTPClient().fetch(request, raise_error=False)
tornado.curl_httpclient.CurlError: HTTP 599: Failed to connect to 192.168.1.164 port 8765 after 3055 ms: Couldn't connect to server
ERROR: 500 GET /config/list/?_=1682086479825&_username=admin&_signature=6a1e539957a371575d174116fc5b4635fb358673 (127.0.0.1) 3406.57ms
the last line only because 192.168.1.164 is a camera that not power-on at the moment...
ERROR: 500 GET /config/list/?_=1682086479825&_username=admin&_signature=6a1e539957a371575d174116fc5b4635fb358673 (127.0.0.1) 3406.57ms
i try to add a camera and i cant see the stream and have again "error unknow Refreshing is recommanded". and then my camera is not added to motion eye addon. my 4 cams are Remote motionEye Camera, not local, no v4l cam.
any idea please?
i unsinstall MotionEye AddON, restart HA, install AddOn and set 4 cameras, all is ok now.
Problem/Motivation
Expected behavior
Actual behavior
Steps to reproduce
Proposed changes