octoprint_deploy: Second cam on second instance failing to start
Hi Paul Im having trouble with two instances and two cameras, I have both instances up and running and a camera working on first instance but can not get a camera to work on second instance both cams are C270 webcams. I have included both status cam instances below and it look like one has failed, Im new to all this and am not sure what is going on
● cam_CR10s.service - the OctoPi(buntu) webcam daemon with the user specified config Loaded: loaded (/etc/systemd/system/cam_CR10s.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2022-04-03 10:20:14 BST; 1h 44min ago Main PID: 395 (mjpg_streamer) Tasks: 4 (limit: 3596) CGroup: /system.slice/cam_CR10s.service └─395 /home/pi/mjpg-streamer/mjpg_streamer -i input_uvc.so -d /dev/cam_CR10s -r 640x480 -f 5 -o output_http.so -p 8001
Apr 03 10:20:14 octopi mjpg_streamer[395]: o: HTTP Listen Address…: (null) Apr 03 10:20:14 octopi mjpg_streamer[395]: o: username:password…: disabled Apr 03 10:20:14 octopi mjpg_streamer[395]: o: commands…: enabled Apr 03 10:20:14 octopi mjpg_streamer[395]: MJPG-streamer [395]: www-folder-path…: disabled Apr 03 10:20:14 octopi mjpg_streamer[395]: MJPG-streamer [395]: HTTP TCP port…: 8001 Apr 03 10:20:14 octopi mjpg_streamer[395]: MJPG-streamer [395]: HTTP Listen Address…: (null) Apr 03 10:20:14 octopi mjpg_streamer[395]: MJPG-streamer [395]: username:password…: disabled Apr 03 10:20:14 octopi mjpg_streamer[395]: MJPG-streamer [395]: commands…: enabled Apr 03 10:20:14 octopi mjpg_streamer[395]: MJPG-streamer [395]: starting input plugin input_uvc.so Apr 03 10:20:14 octopi mjpg_streamer[395]: MJPG-streamer [395]: starting output plugin: output_http.so (ID: 00)
● cam_Ender3.service - the OctoPi(buntu) webcam daemon with the user specified config Loaded: loaded (/etc/systemd/system/cam_Ender3.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2022-04-03 10:20:14 BST; 1h 34min ago Process: 400 ExecStart=/home/pi/mjpg-streamer/mjpg_streamer -i input_uvc.so -d /dev/cam_Ender3 -r 640x480 -f 5 -o output_http.so -p 8002 (code=exited, status=1/FAILURE) Main PID: 400 (code=exited, status=1/FAILURE)
Apr 03 10:20:14 octopi mjpg_streamer[400]: MJPG-streamer [400]: Frames Per Second.: 5 Apr 03 10:20:14 octopi mjpg_streamer[400]: MJPG-streamer [400]: Format…: JPEG Apr 03 10:20:14 octopi mjpg_streamer[400]: MJPG-streamer [400]: TV-Norm…: DEFAULT Apr 03 10:20:14 octopi mjpg_streamer[400]: MJPG-streamer [400]: init_VideoIn failed Apr 03 10:20:14 octopi mjpg_streamer[400]: libv4l2: error setting pixformat: Device or resource busy Apr 03 10:20:14 octopi mjpg_streamer[400]: Unable to set format: 1196444237 res: 640x480 Apr 03 10:20:14 octopi mjpg_streamer[400]: Init v4L2 failed !! exit fatal Apr 03 10:20:14 octopi mjpg_streamer[400]: i: init_VideoIn failed Apr 03 10:20:14 octopi systemd[1]: cam_Ender3.service: Main process exited, code=exited, status=1/FAILURE Apr 03 10:20:14 octopi systemd[1]: cam_Ender3.service: Failed with result ‘exit-code’.
thank you for all the help
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 25 (12 by maintainers)
just did and both cameras now showing on respective instances…Thank you so much I will have to buy you a coffee