-
Notifications
You must be signed in to change notification settings - Fork 41
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
Weird issues with obico and camera #148
Comments
The WARNING! tells you what has happened. ustreamer has not been installed properly. |
Here is the output. pi@Octopi:~ $ sudo octoprint_deploy/octoprint_deploy.sh f deb_packages The following packages have unmet dependencies: |
I would do a |
Ok i did that and here is the full results. pi@Octopi:~ $ sudo apt remove libjpeg-dev libjpeg62-turbo-dev The following packages have unmet dependencies: |
not sure what packages are installed and where the conflict exists. You can try: |
Ahh.... |
Its seems to think its not installed. pi@Octopi:~ $ sudo apt remove libjpeg8-dev |
I don't know exactly what is going. I've seen similar things like this but there isn't a clear resolution to me. try: and see if the Streamer install will then work in the utilities menu. |
Well its a different error LOL. BTW i really appreciate your assistance here. Cloning into 'ustreamer'... |
Got streamer to install by installing this.... sudo apt-get install libjpeg8-dev Now streamer installed right. |
The cameras still say the same thing. Do i need to reinstall them now or was that not the issue with the cameras? |
** Update. I got rid of all the errors in octoprint_deploy. However im getting some strange things still happening. Printer 1 says no signal and then the instance of printer 2 shows the correct camera first then after about 5 seconds it goes to the other camera feed in a low resolution. Does this sound like the issue with the duplicate serial number? Is there a work around for that issue so i can use these two cameras? They are literally the exact same cam(I was trying to keep consistent) Thanks! |
Here is the camera status's. pi@Octopi:~ $ sudo systemctl status cam_Ender3V2Neo Jan 27 15:52:50 Octopi ustreamer[7672]: -- INFO [10826.562 stream] -- Requested 5 device buffers, got 5 Jan 27 16:01:28 Octopi ustreamer[14291]: -- INFO [11344.111 stream] -- Using V4L2 device: /dev/cam_Ender3Max |
best to run octoprint_deploy and provide output from Utilities -> Diagnostic output. |
Yea i did try to delete and re-add the cameras but the issue just moved to the other cam. Here is the output from diags. octoprint_deploy diagnostic information. Please provide ALL output for support help /etc/octoprint_deploy octoexec: /home/pi/oprint/bin/octoprint /etc/octoprint_instances instance:octoprint port:5000 udev:false /etc/octoprint_cameras camera:cam_Ender3Max port:8001 udev:true /etc/udev/rules.d/99-octoprint.rules KERNELS=="1-1.1:1.0",SUBSYSTEM=="tty",SYMLINK+="octo_Ender3Max" ● octoprint.service - The snappy web interface for your 3D printer Jan 27 19:05:21 Octopi octoprint[448]: 2024-01-27 19:05:21,947 - backoff - INFO - Backing off wait_for_auth_token(...) for 241.8s (None) ● Ender3Max.service - The snappy web interface for your 3D printer Jan 27 19:36:57 Octopi octoprint[13413]: File "/home/pi/oprint/lib/python3.7/site-packages/requests/api.py", line 59, in request ● Ender3V2Neo.service - The snappy web interface for your 3D printer Jan 27 18:13:20 Octopi octoprint[14131]: File "/usr/lib/python3.7/asyncio/selector_events.py", line 987, in sendto ● cam_Ender3Max.service - the OctoPi(buntu) ustreamer daemon with the user specified config Jan 27 16:50:56 Octopi ustreamer[13429]: -- INFO [1345.872 http] -- HTTP: NEW client (now=1): [::ffff:192.168.1.224]:48828, id=52c96680256c2e69 ● cam_Ender3V2Neo.service - the OctoPi(buntu) ustreamer daemon with the user specified config Jan 27 19:54:56 Octopi ustreamer[14150]: -- ERROR [12385.880 stream] -- Can't set input channel ● haproxy.service - HAProxy Load Balancer Jan 27 19:54:51 Octopi haproxy[14147]: ::ffff:192.168.1.175:36022 [27/Jan/2024:19:54:51.195] public octoprint/octoprint1 0/0/0/44/44 200 962 - - ---- 7/7/1/1/0 0/0 "GET /plugin/discovery/discovery.xml HTTP/1.1" |
Yes, your camera issue is from duplicate serial numbers. |
Excellent. I will try that after my print finishes. Thanks for your help paul. Do you have a venmo or something i can donate to? I dont have much but i would like to show my appreciation. Thanks! |
You are quite welcome. I need to investigate what the issue is with OctoPi and the packages it is using. There only ever seems to be an issue with OctoPi. There is a buymeacoffee link in the README. Venmo is @Paul-Paukstelis |
Ok, bought you a few coffess lol. That seems to have fixed the octoprint issues. Any idea why obico keeps flashing and mixing up the cameras? I know that might be out of your wheelhouse. |
Have you done a reboot since you fixed the issue in octoprint_deploy? You may need to just restart the instances for obico to be happy. thanks for the coffee! |
I did reboot. I just started another print. I have several things i need to get done before the end of the weekend but, i think i will start over with obico when this one gets done and see if that helps. obico is pretty much useless like this. It just keeps going from online to offline literally once a second. |
Ok im finally back, life got in the way and i just stopped printing for a while. So in order to try to fix the issue i have completely started over. Put a new fresh image of Raspberry Pi on my machine and redone all the octoprint stuff. now i am getting a strange "activating" next to each camera status. Any idea why the camera would be stuck in activating status? |
This is where i seem to get errors starting if i use the diag output. Jun 17 07:55:48 RaspberryPi octoprint[378]: 2024-06-17 07:55:48,372 - backoff - ERROR - Giving up capture_jpeg(...) after 3 tries (requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8001): Max retries exceeded with url: /?action=snapshot (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x9c8b85f8>: Failed to establish a new connection: [Errno 111] Connection refused'))) |
It looks like you need to modify the snapshot address in the camera settings. You can try 127.0.0.1:8001/?action=snapshot |
Well i came to a very similar conclusion, I noticed that localhost was returning an invalid ip v6 address, so i just disabled ip v6 and now im getting a different error about ffmpeg. However i am pretty sure its installed ok. see below. Jun 17 10:38:00 RaspberryPi octoprint[420]: STDERR: |
Did you put in the path to ffmpeg? |
It was along night last night but i believe i verified that. This is what i get /usr/bin/ffmpeg But i forget where to put it... |
Ok i am completely lost now. It looks like im not even getting errors but camera status's are still activating and i got no stream. Help Please. Here is the Diag output. octoprint_deploy diagnostic information. Please provide ALL output for support help /etc/octoprint_deploy octoexec: /home/Fanatic/oprint/bin/octoprint /etc/octoprint_instances instance:Ender-3-Max port:5000 udev:true /etc/octoprint_cameras camera:cam_Ender-3-Max port:8001 udev:true /etc/udev/rules.d/99-octoprint.rules KERNELS=="1-1.1.4:1.0",SUBSYSTEM=="tty",SYMLINK+="octo_Ender-3-Max" ● Ender-3-Max.service - The snappy web interface for your 3D printer Jun 18 14:28:27 RaspberryPi octoprint[398]: 2024-06-18 14:28:27,661 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance "Ender-3-Max"._octoprint._tcp.local.' for _octoprint._tcp.local. ● Ender-3-V2-Neo.service - The snappy web interface for your 3D printer Jun 18 14:28:27 RaspberryPi octoprint[399]: 2024-06-18 14:28:27,830 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance "Ender-3-V2-Neo"._octoprint._tcp.local.' for _octoprint._tcp.local. ● cam_Ender-3-Max.service - camera-streamer web camera for USB camera on Generic platform ● cam_Ender-3-V2-Neo.service - camera-streamer web camera for USB camera on Generic platform ● haproxy.service - HAProxy Load Balancer Jun 18 14:30:17 RaspberryPi haproxy[1125]: ::ffff:192.168.1.224:14314 [18/Jun/2024:14:30:17.387] public octoprint/octoprint1 0/0/0/19/19 403 300 - - ---- 6/6/1/1/0 0/0 "GET /api/printer HTTP/1.1" |
Can anyone help with this im out of ideas. Thanks! |
Remove cameras from the menu and change the streamer (in utility menu) to ustreamer. Re-add the cameras and see if that works for you. |
Well i got it but i think it was another FFMPEG issue. When i removed the cameras and tried to change streamers i got another FFMPEG error. So i completely removed FFMPEG and reinstalled it, added the cameras back and it worked! I think maybe the image of the OctoPi i got has a corrupt FFMPEG install. OR... maybe it was re adding them i dunno for sure. But its working. Thank you! |
Im trying to setup two profiles with two cameras. I have both profiles setup and they work fine. However I have several issues with the cameras and i know they are not supported but hoping i can get some help. BTW i am pretty much a newb to this stuff. Dont know many unix commands. Please help :-)
First off and this may be the entire issue but i cannot install Ustreamer correctly. It keeps failing. If i try to go to utilities and then change streamer and then choose ustreamer i get this.... I think i just need to uninstall and reinstall it or something like that but i dunno how to do that.
Cloning into 'ustreamer'...
remote: Enumerating objects: 179, done.
remote: Counting objects: 100% (179/179), done.
remote: Compressing objects: 100% (130/130), done.
remote: Total 179 (delta 61), reused 108 (delta 37), pack-reused 0
Receiving objects: 100% (179/179), 179.06 KiB | 6.17 MiB/s, done.
Resolving deltas: 100% (61/61), done.
In file included from ustreamer/http/bev.c:23:
ustreamer/http/bev.h:28:10: fatal error: event2/util.h: No such file or directory
#include <event2/util.h>
^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:100: build/ustreamer/http/bev.o] Error 1
make[1]: *** [Makefile:38: apps] Error 2
make: *** [Makefile:28: all] Error 2
WARNING! WARNING! WARNING!
Streamer has not been installed correctly.
Also when i look at status on the cameras it says they are failed and shows error codes, here is the output.... both cameras show the same output.
cam_Ender3Max.service - the OctoPi(buntu) ustreamer daemon with the user specified config
Loaded: loaded (/etc/systemd/system/cam_Ender3Max.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2024-01-27 12:52:15 CST; 1h 26min ago
Process: 447 ExecStart=/home/pi/ustreamer/ustreamer -d /dev/${DEVICE} -s 0.0.0.0 -m MJPEG -r ${RES} -f ${FRAMERATE} -p ${PORT} --device-timeout 8 --device
Main PID: 447 (code=exited, status=203/EXEC)
Jan 27 12:52:15 Octopi systemd[1]: Started the OctoPi(buntu) ustreamer daemon with the user specified config.
Jan 27 12:52:15 Octopi systemd[447]: cam_Ender3Max.service: Failed to execute command: No such file or directory
Jan 27 12:52:15 Octopi systemd[447]: cam_Ender3Max.service: Failed at step EXEC spawning /home/pi/ustreamer/ustreamer: No such file or directory
Jan 27 12:52:15 Octopi systemd[1]: cam_Ender3Max.service: Main process exited, code=exited, status=203/EXEC
Jan 27 12:52:15 Octopi systemd[1]: cam_Ender3Max.service: Failed with result 'exit-code'.
Also the cameras are the same make and model camera, when adding the second one it tells me the serial numbers are the same and it may cause issues. Not sure if that is related.
Obico is only showing one camera and its working but its showing the same cam for both instances. Something weird is going on.
Thanks!
The text was updated successfully, but these errors were encountered: