paukstelis / octoprint_deploy

Bash script for rapid deployment of multiple octoprint instance on a single machine
MIT License
389 stars 39 forks source link

Webcam doesn't work #164

Open Blisk opened 2 months ago

Blisk commented 2 months ago

After installing octoprint_deploy web camera stops working. I have made a fresh install of raspberry pi and when I did that I get camera picture. After installing deploy, camera doesn't work anymore. And I did add new instance camera I user raspberry pi 4 and it is fully updated. slika

paukstelis commented 2 months ago

You have to provide more information. Please re-run octoprint_deploy and use Utilties->Diagnostic Output.

Blisk commented 2 months ago

You have to provide more information. Please re-run octoprint_deploy and use Utilties->Diagnostic Output.

I did this on raspberry pi 3 and it worked now on raspberry 4 doesn't work I started all over 3 times and it doesn't work. I will on Monday do again and will post here from start to end.

Blisk commented 1 month ago

I have start this all over again and again second camera doesn't work. Here is diagnostic octoprint_deploy diagnostic information. Please provide ALL output for support help


/etc/octoprint_deploy


octoexec: /home/damjan/oprint/bin/octoprint octopip: /home/damjan/oprint/bin/pip haproxy: true octopi: true streamer: camera-streamer


/etc/octoprint_instances


instance:octoprint port:5000 udev:true instance:MAX10 port:5001 udev:true instance:ENDER3 port:5002 udev:true


/etc/octoprint_cameras


camera:cam_MAX10 port:8001 udev:true camera:cam_ENDER3 port:8002 udev:true


/etc/udev/rules.d/99-octoprint.rules


SUBSYSTEM=="tty", ATTRS{serial}=="AM00OVSF", SYMLINK+="octo_MAX10" SUBSYSTEM=="video4linux", ATTRS{serial}=="5516DFCF", ATTR{index}=="0", SYMLINK+="cam_MAX10" SUBSYSTEM=="tty", ATTRS{serial}=="20873155574B", SYMLINK+="octo_ENDER3" SUBSYSTEM=="video4linux", ATTRS{serial}=="0D1A8FCF", ATTR{index}=="0", SYMLINK+="cam_ENDER3" lrwxrwxrwx 1 root root 7 May 7 13:50 /dev/octo_ENDER3 -> ttyACM0 lrwxrwxrwx 1 root root 7 May 7 13:50 /dev/octo_MAX10 -> ttyUSB0 lrwxrwxrwx 1 root root 6 May 7 13:50 /dev/cam_ENDER3 -> video2 lrwxrwxrwx 1 root root 6 May 7 13:50 /dev/cam_MAX10 -> video0


● octoprint.service - The snappy web interface for your 3D printer Loaded: loaded (/etc/systemd/system/octoprint.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2024-05-07 13:50:35 CEST; 5min ago Main PID: 427 (octoprint) Tasks: 16 (limit: 4915) CPU: 19.800s CGroup: /system.slice/octoprint.service └─427 /home/damjan/oprint/bin/python /home/damjan/oprint/bin/octoprint serve --host=127.0.0.1 --port=5000

May 07 13:55:02 pi4 octoprint[427]: 2024-05-07 13:55:02,440 - octoprint.server.util.sockjs - INFO - User damjan logged in on the socket from client ::ffff:192.168.0.138 May 07 13:55:02 pi4 octoprint[427]: 2024-05-07 13:55:02,492 - octoprint.server.util.flask - INFO - Passively logging in user damjan from ::ffff:192.168.0.138 May 07 13:55:02 pi4 octoprint[427]: 2024-05-07 13:55:02,492 - octoprint.access.users - INFO - Logged in user: damjan May 07 13:55:02 pi4 octoprint[427]: 2024-05-07 13:55:02,544 - octoprint.plugins.pluginmanager - INFO - Looks like we are offline, can't fetch notices from network May 07 13:55:14 pi4 octoprint[427]: 2024-05-07 13:55:14,864 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.0.138 May 07 13:55:16 pi4 octoprint[427]: 2024-05-07 13:55:16,034 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.138 May 07 13:55:16 pi4 octoprint[427]: 2024-05-07 13:55:16,148 - octoprint.server.util.flask - INFO - Passively logging in user damjan from ::ffff:192.168.0.138 May 07 13:55:16 pi4 octoprint[427]: 2024-05-07 13:55:16,148 - octoprint.access.users - INFO - Logged in user: damjan May 07 13:55:29 pi4 octoprint[427]: 2024-05-07 13:55:29,543 - octoprint.plugins.announcements - INFO - Looks like we are offline, can't fetch announcements for channel _important from network May 07 13:55:41 pi4 octoprint[427]: 2024-05-07 13:55:41,713 - octoprint.plugins.announcements - INFO - Looks like we are offline, can't fetch announcements for channel _releases from network None None {'bitrate': '10000k', 'cleanTmpAfterDays': 7, 'defaultWebcam': 'classic', 'ffmpeg': None, 'ffmpegCommandline': '{ffmpeg} -framerate {fps} -i "{input}" -vcodec ' '{videocodec} -threads {threads} -b:v {bitrate} -f ' '{containerformat} -y {filters} "{output}"', 'ffmpegThreads': 1, 'ffmpegThumbnailCommandline': '{ffmpeg} -sseof -1 -i "{input}" -update 1 -q:v ' '0.7 "{output}"', 'ffmpegVideoCodec': 'libx264', 'snapshotWebcam': 'classic', 'timelapse': {'fps': 25, 'options': {'capturePostRoll': None, 'interval': None, 'retractionZHop': None}, 'postRoll': 0, 'type': 'off'}, 'timelapseEnabled': True, 'watermark': True, 'webcamEnabled': True}


● MAX10.service - The snappy web interface for your 3D printer Loaded: loaded (/etc/systemd/system/MAX10.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2024-05-07 13:50:34 CEST; 5min ago Main PID: 408 (octoprint) Tasks: 20 (limit: 4915) CPU: 20.161s CGroup: /system.slice/MAX10.service └─408 /home/damjan/oprint/bin/python /home/damjan/oprint/bin/octoprint serve --config=/home/damjan/.MAX10/config.yaml --basedir=/home/damjan/.MAX10 --port=5001

May 07 13:53:01 pi4 octoprint[408]: 2024-05-07 13:53:01,503 - octoprint.access.users - INFO - Logged in user: damjan May 07 13:53:02 pi4 octoprint[408]: 2024-05-07 13:53:02,314 - octoprint.server.util.sockjs - INFO - User damjan logged in on the socket from client 192.168.0.138 May 07 13:53:19 pi4 octoprint[408]: 2024-05-07 13:53:19,461 - octoprint.server.preemptive_cache - INFO - ... done in 18.01s May 07 13:53:52 pi4 octoprint[408]: 2024-05-07 13:53:52,115 - octoprint.server.util.flask - INFO - Passively logging in user damjan from 192.168.0.138 May 07 13:53:52 pi4 octoprint[408]: 2024-05-07 13:53:52,115 - octoprint.access.users - INFO - Logged in user: damjan May 07 13:53:52 pi4 octoprint[408]: 2024-05-07 13:53:52,216 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.0.138 May 07 13:53:53 pi4 octoprint[408]: 2024-05-07 13:53:53,528 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.0.138 May 07 13:53:53 pi4 octoprint[408]: 2024-05-07 13:53:53,634 - octoprint.server.util.flask - INFO - Passively logging in user damjan from 192.168.0.138 May 07 13:53:53 pi4 octoprint[408]: 2024-05-07 13:53:53,634 - octoprint.access.users - INFO - Logged in user: damjan May 07 13:53:54 pi4 octoprint[408]: 2024-05-07 13:53:54,549 - octoprint.server.util.sockjs - INFO - User damjan logged in on the socket from client 192.168.0.138 None None {'bitrate': '10000k', 'cleanTmpAfterDays': 7, 'defaultWebcam': 'classic', 'ffmpeg': None, 'ffmpegCommandline': '{ffmpeg} -framerate {fps} -i "{input}" -vcodec ' '{videocodec} -threads {threads} -b:v {bitrate} -f ' '{containerformat} -y {filters} "{output}"', 'ffmpegThreads': 1, 'ffmpegThumbnailCommandline': '{ffmpeg} -sseof -1 -i "{input}" -update 1 -q:v ' '0.7 "{output}"', 'ffmpegVideoCodec': 'libx264', 'snapshotWebcam': 'classic', 'timelapse': {'fps': 25, 'options': {'capturePostRoll': None, 'interval': None, 'retractionZHop': None}, 'postRoll': 0, 'type': 'off'}, 'timelapseEnabled': True, 'watermark': True, 'webcamEnabled': True}


● ENDER3.service - The snappy web interface for your 3D printer Loaded: loaded (/etc/systemd/system/ENDER3.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2024-05-07 13:50:34 CEST; 5min ago Main PID: 401 (octoprint) Tasks: 19 (limit: 4915) CPU: 17.653s CGroup: /system.slice/ENDER3.service └─401 /home/damjan/oprint/bin/python /home/damjan/oprint/bin/octoprint serve --config=/home/damjan/.ENDER3/config.yaml --basedir=/home/damjan/.ENDER3 --port=5002

May 07 13:52:47 pi4 octoprint[401]: 2024-05-07 13:52:47,637 - octoprint.plugins.pluginmanager - INFO - Looks like we are offline, can't fetch repository from network May 07 13:52:47 pi4 octoprint[401]: 2024-05-07 13:52:47,649 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid May 07 13:52:47 pi4 octoprint[401]: 2024-05-07 13:52:47,992 - octoprint.util.comm - INFO - Externally triggered heatup detected May 07 13:52:48 pi4 octoprint[401]: 2024-05-07 13:52:48,678 - octoprint.util.pip - INFO - Using "/home/damjan/oprint/bin/python -m pip" as command to invoke pip May 07 13:52:48 pi4 octoprint[401]: 2024-05-07 13:52:48,680 - octoprint.util.pip - INFO - pip installs to /home/damjan/oprint/lib/python3.9/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes May 07 13:52:48 pi4 octoprint[401]: 2024-05-07 13:52:48,681 - octoprint.util.pip - INFO - ==> pip ok -> yes May 07 13:52:48 pi4 octoprint[401]: 2024-05-07 13:52:48,687 - octoprint.plugins.softwareupdate - INFO - Minimum free storage across all update relevant locations is 25.4GB. That is considered sufficient for updating. May 07 13:52:48 pi4 octoprint[401]: 2024-05-07 13:52:48,688 - octoprint.plugins.softwareupdate - INFO - Not fetching check overlays, we are offline May 07 13:53:00 pi4 octoprint[401]: 2024-05-07 13:53:00,938 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.68/', 'path': '/', 'query_string': 'l10n=en'} May 07 13:53:06 pi4 octoprint[401]: 2024-05-07 13:53:06,230 - octoprint.server.preemptive_cache - INFO - ... done in 5.29s None None {'bitrate': '10000k', 'cleanTmpAfterDays': 7, 'defaultWebcam': 'classic', 'ffmpeg': None, 'ffmpegCommandline': '{ffmpeg} -framerate {fps} -i "{input}" -vcodec ' '{videocodec} -threads {threads} -b:v {bitrate} -f ' '{containerformat} -y {filters} "{output}"', 'ffmpegThreads': 1, 'ffmpegThumbnailCommandline': '{ffmpeg} -sseof -1 -i "{input}" -update 1 -q:v ' '0.7 "{output}"', 'ffmpegVideoCodec': 'libx264', 'snapshotWebcam': 'classic', 'timelapse': {'fps': 25, 'options': {'capturePostRoll': None, 'interval': None, 'retractionZHop': None}, 'postRoll': 0, 'type': 'off'}, 'timelapseEnabled': True, 'watermark': True, 'webcamEnabled': True}


● cam_MAX10.service - camera-streamer web camera for USB camera on Generic platform Loaded: loaded (/etc/systemd/system/cam_MAX10.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Tue 2024-05-07 13:55:54 CEST; 1s ago Process: 1464 ExecStart=/home/damjan/camera-streamer/camera-streamer --camera-path=${DEVICE} --camera-format=JPEG --camera-width=${WIDTH} -camera-height=${HEIGHT} --camera-fps=${FRAMERATE} --camera-nbufs=3 --http-listen=0.0.0.0 --http-port=${PORT} --camera-video.disabled (code=exited, status=203/EXEC) Main PID: 1464 (code=exited, status=203/EXEC) CPU: 5ms


● cam_ENDER3.service - camera-streamer web camera for USB camera on Generic platform Loaded: loaded (/etc/systemd/system/cam_ENDER3.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Tue 2024-05-07 13:55:54 CEST; 2s ago Process: 1463 ExecStart=/home/damjan/camera-streamer/camera-streamer --camera-path=${DEVICE} --camera-format=JPEG --camera-width=${WIDTH} -camera-height=${HEIGHT} --camera-fps=${FRAMERATE} --camera-nbufs=3 --http-listen=0.0.0.0 --http-port=${PORT} --camera-video.disabled (code=exited, status=203/EXEC) Main PID: 1463 (code=exited, status=203/EXEC) CPU: 2ms


● haproxy.service - HAProxy Load Balancer Loaded: loaded (/lib/systemd/system/haproxy.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2024-05-07 13:52:45 CEST; 3min 10s ago Docs: man:haproxy(1) file:/usr/share/doc/haproxy/configuration.txt.gz Process: 1115 ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS (code=exited, status=0/SUCCESS) Main PID: 1123 (haproxy) Tasks: 5 (limit: 4915) CPU: 231ms CGroup: /system.slice/haproxy.service ├─1123 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock └─1131 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock

May 07 13:55:16 pi4 haproxy[1131]: ::ffff:192.168.0.138:64835 [07/May/2024:13:55:16.295] public octoprint/octoprint1 3/0/0/446/449 200 20222 - - ---- 5/5/1/1/0 0/0 "GET /api/settings HTTP/1.1" May 07 13:55:16 pi4 haproxy[1131]: ::ffff:192.168.0.138:64835 [07/May/2024:13:55:16.824] public octoprint/octoprint1 0/0/1/6/7 304 357 - - ---- 5/5/1/1/0 0/0 "GET /static/img/mask-theme.svg HTTP/1.1" May 07 13:55:17 pi4 haproxy[1131]: ::ffff:192.168.0.138:64835 [07/May/2024:13:55:17.062] public octoprint/octoprint1 3/0/0/13/16 200 809 - - ---- 5/5/1/1/0 0/0 "GET /api/plugin/appkeys HTTP/1.1" May 07 13:55:17 pi4 haproxy[1131]: ::ffff:192.168.0.138:64847 [07/May/2024:13:55:17.169] public octoprint/octoprint1 3/0/0/13/16 200 6178 - - ---- 5/5/1/1/0 0/0 "GET /api/access/groups HTTP/1.1" May 07 13:55:17 pi4 haproxy[1131]: ::ffff:192.168.0.138:64835 [07/May/2024:13:55:17.186] public octoprint/octoprint1 3/0/0/98/101 200 3020 - - ---- 7/7/4/4/0 0/0 "GET /api/printerprofiles HTTP/1.1" May 07 13:55:17 pi4 haproxy[1131]: ::ffff:192.168.0.138:65098 [07/May/2024:13:55:17.207] public octoprint/octoprint1 0/0/0/101/101 200 2642 - - ---- 7/7/4/4/0 0/0 "GET /api/system/commands HTTP/1.1" May 07 13:55:17 pi4 haproxy[1131]: ::ffff:192.168.0.138:64847 [07/May/2024:13:55:17.224] public octoprint/octoprint1 0/0/0/95/95 200 809 - - ---- 8/8/4/4/0 0/0 "GET /api/plugin/appkeys?all=true HTTP/1.1" May 07 13:55:17 pi4 haproxy[1131]: ::ffff:192.168.0.138:65124 [07/May/2024:13:55:17.276] public octoprint/octoprint1 2/0/1/55/58 200 6158 - - ---- 8/8/4/4/0 0/0 "GET /plugin/logging/ HTTP/1.1" May 07 13:55:17 pi4 haproxy[1131]: ::ffff:192.168.0.138:65125 [07/May/2024:13:55:17.291] public octoprint/octoprint1 2/0/0/60/62 200 957 - - ---- 8/8/3/3/0 0/0 "GET /api/timelapse?unrendered=true HTTP/1.1" May 07 13:55:17 pi4 haproxy[1131]: ::ffff:192.168.0.138:64835 [07/May/2024:13:55:17.318] public octoprint/octoprint1 0/0/0/45/45 200 801 - - ---- 8/8/4/4/0 0/0 "GET /api/plugin/action_command_notification HTTP/1.1"

paukstelis commented 1 month ago

I would recommend NOT using OctoPi if you want to use octoprint_deploy to setup cameras. As the README states, OctoPi has its own way of doing cameras. Just install RPiOS and use octoprint_deploy that way.

Blisk commented 1 month ago

I would recommend NOT using OctoPi if you want to use octoprint_deploy to setup cameras. As the README states, OctoPi has its own way of doing cameras. Just install RPiOS and use octoprint_deploy that way.

thank you. I will install pure RPiOS I assume the one with pure debian and no desktop.

Blisk commented 1 month ago

I did as you said and install pure RPOS and deployment and now none of camera works. here is diagnostic output.

Select an option: 8 octoprint_deploy diagnostic information. Please provide ALL output for support help


/etc/octoprint_deploy


haproxy: true streamer: ustreamer octoexec: /home/damjan/OctoPrint/bin/octoprint octopip: /home/damjan/OctoPrint/bin/pip


/etc/octoprint_instances


instance:MAX10 port:5000 udev:true instance:ENDER port:5001 udev:true


/etc/octoprint_cameras


camera:cam_MAX10 port:8001 udev:true camera:cam_ENDER port:8002 udev:true


/etc/udev/rules.d/99-octoprint.rules


SUBSYSTEM=="tty", ATTRS{serial}=="AM00OVSF", SYMLINK+="octo_MAX10" SUBSYSTEM=="video4linux", ATTRS{serial}=="5516DFCF", ATTR{index}=="0", SYMLINK+="cam_MAX10" SUBSYSTEM=="tty", ATTRS{serial}=="20873155574B", SYMLINK+="octo_ENDER" SUBSYSTEM=="video4linux", ATTRS{serial}=="0D1A8FCF", ATTR{index}=="0", SYMLINK+="cam_ENDER" lrwxrwxrwx 1 root root 7 May 8 09:05 /dev/octo_ENDER -> ttyACM0 lrwxrwxrwx 1 root root 7 May 8 09:05 /dev/octo_MAX10 -> ttyUSB0 lrwxrwxrwx 1 root root 6 May 8 09:05 /dev/cam_ENDER -> video2 lrwxrwxrwx 1 root root 6 May 8 09:05 /dev/cam_MAX10 -> video0


● MAX10.service - The snappy web interface for your 3D printer Loaded: loaded (/etc/systemd/system/MAX10.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-05-08 09:05:42 CEST; 2min 22s ago Main PID: 368 (octoprint) Tasks: 28 (limit: 3933) CPU: 25.590s CGroup: /system.slice/MAX10.service └─368 /home/damjan/OctoPrint/bin/python3 /home/damjan/OctoPrint/bin/octoprint serve --config=/home/damjan/.MAX10/config.yaml --basedir=/home/damjan/.MAX10 --port=5000

May 08 09:06:57 pi4 octoprint[368]: 2024-05-08 09:06:57,509 - octoprint.plugins.file_check - INFO - ... got 0 matches May 08 09:06:57 pi4 octoprint[368]: 2024-05-08 09:06:57,510 - octoprint.plugins.file_check - INFO - Running check leaked_api_key May 08 09:06:57 pi4 octoprint[368]: 2024-05-08 09:06:57,535 - octoprint.plugins.file_check - INFO - ... got 0 matches May 08 09:07:25 pi4 octoprint[368]: 2024-05-08 09:07:25,321 - octoprint.server.util.flask - INFO - Passively logging in user damjan from ::ffff:192.168.0.138 May 08 09:07:25 pi4 octoprint[368]: 2024-05-08 09:07:25,322 - octoprint.access.users - INFO - Logged in user: damjan May 08 09:07:25 pi4 octoprint[368]: 2024-05-08 09:07:25,859 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.0.138 May 08 09:07:26 pi4 octoprint[368]: 2024-05-08 09:07:26,364 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.138 May 08 09:07:26 pi4 octoprint[368]: 2024-05-08 09:07:26,404 - octoprint.server.util.flask - INFO - Passively logging in user damjan from ::ffff:192.168.0.138 May 08 09:07:26 pi4 octoprint[368]: 2024-05-08 09:07:26,404 - octoprint.access.users - INFO - Logged in user: damjan May 08 09:07:26 pi4 octoprint[368]: 2024-05-08 09:07:26,645 - octoprint.server.util.sockjs - INFO - User damjan logged in on the socket from client ::ffff:192.168.0.138 None None {'bitrate': '10000k', 'cleanTmpAfterDays': 7, 'defaultWebcam': 'classic', 'ffmpeg': None, 'ffmpegCommandline': '{ffmpeg} -framerate {fps} -i "{input}" -vcodec ' '{videocodec} -threads {threads} -b:v {bitrate} -f ' '{containerformat} -y {filters} "{output}"', 'ffmpegThreads': 1, 'ffmpegThumbnailCommandline': '{ffmpeg} -sseof -1 -i "{input}" -update 1 -q:v ' '0.7 "{output}"', 'ffmpegVideoCodec': 'libx264', 'snapshotWebcam': 'classic', 'timelapse': {'fps': 25, 'options': {'capturePostRoll': None, 'interval': None, 'retractionZHop': None}, 'postRoll': 0, 'type': 'off'}, 'timelapseEnabled': True, 'watermark': True, 'webcamEnabled': True}


● ENDER.service - The snappy web interface for your 3D printer Loaded: loaded (/etc/systemd/system/ENDER.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-05-08 09:05:42 CEST; 2min 30s ago Main PID: 367 (octoprint) Tasks: 28 (limit: 3933) CPU: 27.703s CGroup: /system.slice/ENDER.service └─367 /home/damjan/OctoPrint/bin/python3 /home/damjan/OctoPrint/bin/octoprint serve --config=/home/damjan/.ENDER/config.yaml --basedir=/home/damjan/.ENDER --port=5001

May 08 09:06:37 pi4 octoprint[367]: 2024-05-08 09:06:37,855 - octoprint.plugins.file_check - INFO - ... got 0 matches May 08 09:06:37 pi4 octoprint[367]: 2024-05-08 09:06:37,856 - octoprint.plugins.file_check - INFO - Running check leaked_api_key May 08 09:06:37 pi4 octoprint[367]: 2024-05-08 09:06:37,871 - octoprint.plugins.file_check - INFO - ... got 0 matches May 08 09:07:18 pi4 octoprint[367]: 2024-05-08 09:07:18,152 - octoprint.server.util.flask - INFO - Passively logging in user damjan from 192.168.0.138 May 08 09:07:18 pi4 octoprint[367]: 2024-05-08 09:07:18,152 - octoprint.access.users - INFO - Logged in user: damjan May 08 09:07:18 pi4 octoprint[367]: 2024-05-08 09:07:18,699 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.0.138 May 08 09:07:19 pi4 octoprint[367]: 2024-05-08 09:07:19,179 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.0.138 May 08 09:07:19 pi4 octoprint[367]: 2024-05-08 09:07:19,218 - octoprint.server.util.flask - INFO - Passively logging in user damjan from 192.168.0.138 May 08 09:07:19 pi4 octoprint[367]: 2024-05-08 09:07:19,218 - octoprint.access.users - INFO - Logged in user: damjan May 08 09:07:19 pi4 octoprint[367]: 2024-05-08 09:07:19,574 - octoprint.server.util.sockjs - INFO - User damjan logged in on the socket from client 192.168.0.138 None None {'bitrate': '10000k', 'cleanTmpAfterDays': 7, 'defaultWebcam': 'classic', 'ffmpeg': None, 'ffmpegCommandline': '{ffmpeg} -framerate {fps} -i "{input}" -vcodec ' '{videocodec} -threads {threads} -b:v {bitrate} -f ' '{containerformat} -y {filters} "{output}"', 'ffmpegThreads': 1, 'ffmpegThumbnailCommandline': '{ffmpeg} -sseof -1 -i "{input}" -update 1 -q:v ' '0.7 "{output}"', 'ffmpegVideoCodec': 'libx264', 'snapshotWebcam': 'classic', 'timelapse': {'fps': 25, 'options': {'capturePostRoll': None, 'interval': None, 'retractionZHop': None}, 'postRoll': 0, 'type': 'off'}, 'timelapseEnabled': True, 'watermark': True, 'webcamEnabled': True}


● cam_MAX10.service - the OctoPi(buntu) ustreamer daemon with the user specified config Loaded: loaded (/etc/systemd/system/cam_MAX10.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-05-08 09:05:42 CEST; 2min 39s ago Main PID: 371 (main) Tasks: 3 (limit: 3933) CPU: 886ms CGroup: /system.slice/cam_MAX10.service └─371 /home/damjan/ustreamer/ustreamer -d /dev/cam_MAX10 -s 0.0.0.0 -m MJPEG -r 640x480 -f 5 -p 8001 --device-timeout 8 --device-error-delay 8

May 08 09:05:51 pi4 ustreamer[371]: -- INFO [15.970 ] -- Using JPEG quality: encoder default May 08 09:05:51 pi4 ustreamer[371]: -- INFO [15.970 ] -- Creating pool JPEG with 1 workers ... May 08 09:05:51 pi4 ustreamer[371]: -- INFO [15.971 ] -- Capturing ... May 08 09:08:17 pi4 ustreamer[371]: -- ERROR [149.911 ] -- CAP: Can't consume V4L2 event: No such device May 08 09:08:17 pi4 ustreamer[371]: -- INFO [149.977 ] -- Destroying workers pool JPEG ... May 08 09:08:17 pi4 ustreamer[371]: -- ERROR [149.978 ] -- CAP: Can't stop capturing: No such device May 08 09:08:17 pi4 ustreamer[371]: -- INFO [149.979 ] -- CAP: Capturing stopped May 08 09:08:17 pi4 ustreamer[371]: ================================================================================ May 08 09:08:17 pi4 ustreamer[371]: -- ERROR [149.979 ] -- No access to capture device: No such file or directory May 08 09:08:17 pi4 ustreamer[371]: -- INFO [149.979 ] -- Waiting for the capture device ...


● cam_ENDER.service - the OctoPi(buntu) ustreamer daemon with the user specified config Loaded: loaded (/etc/systemd/system/cam_ENDER.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-05-08 09:05:42 CEST; 2min 39s ago Main PID: 370 (main) Tasks: 3 (limit: 3933) CPU: 869ms CGroup: /system.slice/cam_ENDER.service └─370 /home/damjan/ustreamer/ustreamer -d /dev/cam_ENDER -s 0.0.0.0 -m MJPEG -r 640x480 -f 5 -p 8002 --device-timeout 8 --device-error-delay 8

May 08 09:05:51 pi4 ustreamer[370]: -- INFO [15.819 ] -- Using JPEG quality: encoder default May 08 09:05:51 pi4 ustreamer[370]: -- INFO [15.819 ] -- Creating pool JPEG with 1 workers ... May 08 09:05:51 pi4 ustreamer[370]: -- INFO [15.820 ] -- Capturing ... May 08 09:08:19 pi4 ustreamer[370]: -- ERROR [151.448 ] -- CAP: Can't consume V4L2 event: No such device May 08 09:08:19 pi4 ustreamer[370]: -- INFO [151.458 ] -- Destroying workers pool JPEG ... May 08 09:08:19 pi4 ustreamer[370]: -- ERROR [151.458 ] -- CAP: Can't stop capturing: No such device May 08 09:08:19 pi4 ustreamer[370]: -- INFO [151.460 ] -- CAP: Capturing stopped May 08 09:08:19 pi4 ustreamer[370]: ================================================================================ May 08 09:08:19 pi4 ustreamer[370]: -- ERROR [151.460 ] -- No access to capture device: No such file or directory May 08 09:08:19 pi4 ustreamer[370]: -- INFO [151.460 ] -- Waiting for the capture device ...


● haproxy.service - HAProxy Load Balancer Loaded: loaded (/lib/systemd/system/haproxy.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-05-08 09:05:44 CEST; 2min 37s ago Docs: man:haproxy(1) file:/usr/share/doc/haproxy/configuration.txt.gz Process: 564 ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS (code=exited, status=0/SUCCESS) Main PID: 583 (haproxy) Tasks: 5 (limit: 3933) CPU: 445ms CGroup: /system.slice/haproxy.service ├─583 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock └─594 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock

May 08 09:05:44 pi4 systemd[1]: Starting HAProxy Load Balancer... May 08 09:05:44 pi4 haproxy[583]: [WARNING] 128/090544 (583) : parsing [/etc/haproxy/haproxy.cfg:39] : a 'http-request' rule placed after a 'use_backend' rule will still be processed before. May 08 09:05:44 pi4 haproxy[583]: [NOTICE] 128/090544 (583) : New worker #1 (594) forked May 08 09:05:44 pi4 systemd[1]: Started HAProxy Load Balancer.

paukstelis commented 1 month ago

I don't know why it isn't working in this case. Clearly, the cameras are present and the udev symlinks are there. The correct device is listed in ustreamer.

You could try deleting the cameras, changing the streamer to camera-streamer, adding the cameras back, and seeing if that works.

Blisk commented 1 month ago

I found out there were no settings in stream URL I filled that up and now it works