-
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
Camera service masked #130
Comments
ive got the same issue with my Logitech c170 USB Webcam. did u solve the problem already? |
Nope, i have Logitech camera too but C270 |
It is not clear why this is happening, but it happened to someone else on the Discord. It doesn't have anything to do with the type of camera, but with writing the service file. You can try what they did, which fixed it: |
I've tried this many times and it doesn't help. Moreover, the service itself is empty for some reason (and therefore the unmask command deletes it). Is it possible to find out the approximate content of this service so that I can substitute it with my own adjustments? I also want to note that when I start searching for USB ports, the script does not show anything. Well, in addition, I want to note that I’m running all this on an Orange Pi Zero 2 |
I suspect it is masked because there is invalid information being supplied to the script so the service file fails. Try installing the camera with all default values (don't change resolution or frame rate). If it searches for cameras and doesn't show anything that means your camera is not detected as a v4l camera and won't work directly. you can verify this: |
The first time I installed Octoprint on this device with this script, the camera was detected correctly and worked perfectly (camera works in octoprint). But I had to redo everything a little due to the fact that Orange Pi Zero has only 1 usb port. The first time, the camera and printer were connected through the hub, but the printer kept disconnecting. Therefore, I connected the printer via gpio usb, and the camera via a regular one. It was after this that the camera stopped working. |
I did some snooping and found that
However, and I've not looked into it to any degree, the As a note, I'm using the latest 1.0.5 changes that fix |
I have to say, this doesn't really make much sense. Not that anything is wrong, just that octoprint_deploy doesn't use mjpg_streamer at all anymore. Make changes in the mjpg-streamer section there should have absolutely no impact on it writing out the service file. I am curious what OS this is on, because I haven't seen this with any of the versions of sed that I have used. |
i get the following output from
|
does this solve the problem for you? Unfortunately, I still get the same error after applying these changes.... |
Can you join the octoprint_deploy Discord (invite link is the README)? It is easier to help diagnose issues there. |
I ended up filling the service manually as it was done in the substitution file. Now everything works |
I have the same problem, the camera not working and still don't know what to do? |
A camera can not work for lots of reasons. If you have an issue with a masked service file, provide the contents of octoprint_deploy/cam_instancename.attempt |
OK thank you. Here it is [Unit] [Service] [Install] |
There is nothing wrong with that. |
Ok here it is. For info I have two cameras for two differend printers. none of cam works. Before I add second printer, camera works ok. Both cameras are the same. octoprint_deploy diagnostic information. Please provide ALL output for support help /etc/octoprint_deploy octoexec: /home/damjan/oprint/bin/octoprint /etc/octoprint_instances instance:octoprint port:5000 udev:false /etc/octoprint_cameras camera:cam_octoprint port:8001 udev:true /etc/udev/rules.d/99-octoprint.rules SUBSYSTEM=="tty", ATTRS{serial}=="20873155574B", SYMLINK+="octo_ENDER3" ● octoprint.service - The snappy web interface for your 3D printer Dec 14 17:01:57 pi octoprint[389]: 2023-12-14 17:01:57,620 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity changed from offline to online ● ENDER3.service - The snappy web interface for your 3D printer Dec 14 16:51:41 pi octoprint[1455]: 2023-12-14 16:51:41,407 - octoprint.plugins.octoeverywhere - INFO - Attempting to talk to OctoEverywhere, server con wss://lon.octoeverywhere.com/octoclientws[5] wsId:1852201976 ● cam_octoprint.service - the OctoPi(buntu) ustreamer daemon with the user specified config Dec 14 12:29:51 pi systemd[1]: Started the OctoPi(buntu) ustreamer daemon with the user specified config. ● cam_ENDER3.service - the OctoPi(buntu) ustreamer daemon with the user specified config Dec 14 12:47:54 pi systemd[1]: Started the OctoPi(buntu) ustreamer daemon with the user specified config. ● haproxy.service - HAProxy Load Balancer Dec 14 17:13:46 pi haproxy[1471]: ::ffff:192.168.0.130:43256 [14/Dec/2023:17:13:46.536] public octoprint/octoprint1 0/0/1/50/51 200 931 - - ---- 2/2/1/1/0 0/0 "GET /plugin/discovery/discovery.xml HTTP/1.1" |
Your issue is that ustreamer has not been installed. Choose 'Change Streamer' in Utilities menu. Remove all cameras, and reinstall them. |
No still not working, it is the same. I removed both cameras and add it again and nothing. After I install ustreamer |
I did this second time and now it works, both cameras are on. |
When I installed the camera everything went well up to a point. After that, the service did not work for me and the camera did not start. Can I manually create this service?
The text was updated successfully, but these errors were encountered: