Page 1 of 1

VNC: Error Loading libvncclient shared library not found

Posted: Sun Mar 14, 2021 6:19 am
by burger
On debian 10 / devuan 3, in 1.35.20~20210309.53-buster I see the following error for libvncclient shared libraries:

Code: Select all

03/12/21 21:57:43.790746 zmc_m2[8088].ERR-zm_libvnc_camera.cpp/26 [Error loading libvncclient: libvncclient.so: cannot open shared object file: No such>
03/12/21 21:57:43.790953 zmc_m2[8088].INF-zmc.cpp/221 [Starting Capture version 1.35.20]
03/12/21 21:57:43.823899 zmc_m2[8088].ERR-zm_signal.cpp/49 [Got signal 11 (Segmentation fault), crashing]
03/12/21 21:57:43.824054 zmc_m2[8088].ERR-zm_signal.cpp/81 [Signal address is (nil), no instruction pointer]
03/12/21 21:57:43.824245 zmc_m2[8088].ERR-zm_signal.cpp/100 [Backtrace 0: /usr/bin/zmc(+0xc395a) [0x5630d59ef95a]]
03/12/21 21:57:43.824300 zmc_m2[8088].ERR-zm_signal.cpp/100 [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x12730) [0x7f65eddcc730]]
03/12/21 21:57:43.824349 zmc_m2[8088].INF-zm_signal.cpp/107 [Backtrace complete, please execute the following command for more information]
03/12/21 21:57:43.824488 zmc_m2[8088].INF-zm_signal.cpp/108 [addr2line -e /usr/bin/zmc 0x5630d59ef95a 0x7f65eddcc730]
So I checked. The dependency for libvncclient1 is already satisfied in the controls for the zm debian package.
so i needed a symlink from

Code: Select all

/usr/lib/x86_64-linux-gnu/libvncclient.so.1
to
/usr/lib/x86_64-linux-gnu/libvncclient.so
as the so file does not exist in buster.

I installed tightvnc on windows, with a view only user. In ZM, there is no requirement to set the
username. I did set a password. I set the FPS limit to about 3, as by default its 80FPS.
It was using up 80% of the core 2 cpu. So a limit is advised for VNC. At 3 fps, load is about 6%. FPS Limit seems to work, as in local mode. I tested jpeg, and h264 encoding. No issues there.

See attached for some graphical glitches in the pale moon browser, and an example configuration for reference. Overall, it looks solid.

Re: VNC: Error Loading libvncclient shared library not found

Posted: Mon Mar 15, 2021 4:57 am
by burger
Also, there is an issue with the DB creation on buster / devuan. It looks like whatever dpkg is doing in zoneminder.postinst is failing. What happens is that the numbers don't show in the web console for day,week,month, etc for a monitor. They do show totals. When I try to run the zm_create.sql I get the following error below. This is resolved with a drop database zm; and recreating the db from scratch as shown. To be clear, I have Mariadb.

Code: Select all

# mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
ERROR 1050 (42S01) at line 1042: Table 'Sessions' already exists

(in mysql)
drop database zm;
(then)
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"