mainsail-crew / crowsnest

Webcam Service for multiple Cams
GNU General Public License v3.0
324 stars 77 forks source link

Crowsnest is broken after system packages upgrade. #143

Closed vladimir-poleh closed 1 year ago

vladimir-poleh commented 1 year ago

What happened

Board: Raspberry Pi 4 OS: Raspberry Pi OS (Debian GNU/Linux 11 (bullseye) arm64)

After updating system packages I have broken camera streaming with following error in the log:

[07/20/23 21:28:23] crowsnest: Starting camera-streamer with Device /base/soc/i2c0mux/i2c@1/ov5647@36 ...
[07/20/23 21:28:23] crowsnest: DEBUG: camera-streamer [cam 1]: Parameters: --http-port=8080 --camera-path=/base/soc/i2c0mux/i2c@1/ov5647@36 --camera-type=libcamera --camera-format=YUYV --camera-snapshot.height=1080 --camera-width=1296 --camera-height=972 --camera-fps=15 --camera-auto_reconnect=1 --camera-options=rotate=180
[07/20/23 21:28:23] crowsnest: DEBUG: camera-streamer [cam 1]: /home/pi/crowsnest/bin/camera-streamer/camera-streamer: error while loading shared libraries: libcamera.so.0.0.4: cannot open shared object file: No such file or directory
[07/20/23 21:28:23] crowsnest: ERROR: Start of camera-streamer [cam 1] failed!

Upgraded packages:

libgpac10:arm64 (1.0.1+dfsg1-4+deb11u2, 1.0.1+dfsg1-4+deb11u3)
libcamera-dev:arm64 (0~git20230302+923f5d70-1, 0~git20230707+2783c8d8-1)
python3-picamera2:arm64 (0.3.9-1, 0.3.12-1)
libcamera-apps-lite:arm64 (0~git20230301+54a781d-1, 1.2.1-1)
libssl-dev:arm64 (1.1.1n-0+deb11u5, 1.1.1n-0+deb11u5+rpt1)
libssl1.1:arm64 (1.1.1n-0+deb11u5, 1.1.1n-0+deb11u5+rpt1)
libcamera0:arm64 (0~git20230302+923f5d70-1, 0~git20230707+2783c8d8-1)
libgstreamer-plugins-base1.0-0:arm64 (1.18.4-2, 1.18.4-2+deb11u1)
python3-libcamera:arm64 (0~git20230302+923f5d70-1, 0~git20230707+2783c8d8-1)
openssl:arm64 (1.1.1n-0+deb11u5, 1.1.1n-0+deb11u5+rpt1)

File libcamera.so.0.0.4 is missing in file system, updated .so file exists in /usr/lib/aarch64-linux-gnu/libcamera.so.0.0.5

What did you expect to happen

Crowsnest is able to stream video from camera.

How to reproduce

Upgrade libcamera0 to version 0~git20230707+2783c8d8-1.

Additional information

No response

iCarl commented 1 year ago

I have this exact issue

KwadFan commented 1 year ago

Hey there, I heard that internally yesterday. Please recompile camera-streamer.

Run

cd ~/crowsnest
make buildclean
make build

That should solve the Issue for now.

Regards Kwad

rnaharro commented 1 year ago

Hey there, I heard that internally yesterday. Please recompile camera-streamer.

Run

cd ~/crowsnest
make buildclean
make build

That should solve the Issue for now.

Regards Kwad

This solve the issue for me! Thanks!

vladimir-poleh commented 1 year ago

Recompiling resolves this problem.

drizztguen77 commented 1 year ago

Recompiling fixed it for me as well

travmo commented 1 year ago

Can also confirm, KwadFan's steps resolved the issue for me as well

jinnn1989 commented 1 year ago

I have same issue, resinstalled Crowsnest but when i hit command for Afmode=2, nothing happens, I think this has broken autofocus. and even LenPosition is not working @KwadFan

testack18 commented 1 year ago

Hey there, I heard that internally yesterday. Please recompile camera-streamer.

Run

cd ~/crowsnest
make buildclean
make build

That should solve the Issue for now.

Regards Kwad

That did NOT helped for me. Issue is the same.

kipp6912 commented 1 year ago

I cant even get it to compile camera-streamer. Did a clean install did the build clean and I always get this error. make[2]: Leaving directory '/home/vmoczulski/crowsnest/bin/camera-streamer' make[1]: [Makefile:62: all] Error 2 make[1]: Leaving directory '/home/vmoczulski/crowsnest/bin/camera-streamer' make: [Makefile:23: build] Error 2

mryel00 commented 1 year ago

@testack18 @kipp6912 Please join the Discord if you need help. If your issue isn't resolved after doing this or gettings errors while building camera-streamer, the issues aren't related to this problem.