Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No more camera config after 0.19 install : "error unknown Refreshing is recommanded" SOLVED #412

Closed
Electronlibre2012 opened this issue Apr 19, 2023 · 19 comments · Fixed by #416

Comments

@Electronlibre2012
Copy link

Problem/Motivation

No more camera config in the motioneye webbrowser interface after install 0.19

Expected behavior

to not have to add my 4 camera again

Actual behavior

when i readd my camera it doesnt fixed the "error unknown its recommanded to refresh", i see briefly that the last id was 7 but before i have only id 1, 2, 3 and 4.

Steps to reproduce

update, then open MotionEye webbrowser interface

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

@frenck
Copy link
Member

frenck commented Apr 19, 2023

Could you explain how to reproduce this issue?

../Frenck

@Electronlibre2012
Copy link
Author

Electronlibre2012 commented Apr 19, 2023

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?

@bieskholodov
Copy link

Screenshot_2023-04-20-14-01-12-823_io homeassistant companion android
Screenshot_2023-04-20-14-01-01-853_io homeassistant companion android

@frenck
Copy link
Member

frenck commented Apr 20, 2023

v4l/direct USB is the issue. Ok, that is something I can try to work with.

@h-daf
Copy link

h-daf commented Apr 20, 2023

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

image

@Barterbly
Copy link

Barterbly commented Apr 20, 2023

Copying informations from Discord:

Version 0.19.0 and now I cannot bring the camera picture back - it shows only this stretched picture:
image
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
image
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:
image

Camera is not turning on, because blue LEDs are not showing

@Electronlibre2012
Copy link
Author

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

@alexboss
Copy link

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.

@robert-sz-76
Copy link

Same issue. Net cam works, only usb camera doesn't.

@frenck
Copy link
Member

frenck commented Apr 20, 2023

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 👍

@ArmenVanlasso

This comment was marked as off-topic.

@h-daf
Copy link

h-daf commented Apr 21, 2023

Hello,
I could successfully make the local USB running by adding linux-headers dependency in the dockerfile.

@frenck
Copy link
Member

frenck commented Apr 21, 2023

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)

@frenck
Copy link
Member

frenck commented Apr 21, 2023

image

Yup that makes a difference when motion is compiled from source, thanks for that @hdaf83 ❤️

@frenck
Copy link
Member

frenck commented Apr 21, 2023

Shipped v0.19.1

@Electronlibre2012
Copy link
Author

Electronlibre2012 commented Apr 21, 2023

nothing change for me : i lost my configuration for all my 4 cameras, which are RPI0w and RPI02w with motion eye OS :

image

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 :
image

seems something is wrong in the backup process or config to be restor with the new version for my cameras...

@alexboss
Copy link

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.

@Electronlibre2012
Copy link
Author

Electronlibre2012 commented Apr 21, 2023

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?

@Electronlibre2012 Electronlibre2012 changed the title No more camera config after 0.19 install : "error unknown its recommanded to refresh" No more camera config after 0.19 install : "error unknown Refreshing is recommanded" Apr 21, 2023
@Electronlibre2012
Copy link
Author

Electronlibre2012 commented Apr 24, 2023

i unsinstall MotionEye AddON, restart HA, install AddOn and set 4 cameras, all is ok now.

@Electronlibre2012 Electronlibre2012 changed the title No more camera config after 0.19 install : "error unknown Refreshing is recommanded" No more camera config after 0.19 install : "error unknown Refreshing is recommanded" SOLVED Apr 24, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants