VNC Server does not start

Creating a bug report/issue

I have searched the existing open and closed issues

DietPi version | G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=24
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
Distro version | bookworm 1
Kernel version | Linux HyperPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Architecture | armhf
SBC model | RPi 4 Model B (aarch64)

#############

Hi,
the VNC server suddenly does not start anymore.
I already did a software reinstall (120)

Log:

Dez 07 16:46:45 HyperPi systemd[1]: Started vncserver.service - VNC Server (DietPi).
Dez 07 16:46:46 HyperPi (ncserver)[1231]: pam_unix(login:session): session opened for user root(uid=0) by (uid=0)
Dez 07 16:46:46 HyperPi vncserver[1231]: [  OK  ] RealVNC detected
Dez 07 16:46:46 HyperPi vncserver[1231]: [ INFO ] Starting virtual desktop at display :1 in 1280x720x16
Dez 07 16:46:46 HyperPi vncserver[1231]: /usr/bin/vncserver-virtual: error while loading shared libraries: libmmal.so: cannot open shared object file: No such file or directory
Dez 07 16:46:46 HyperPi systemd[1]: vncserver.service: Main process exited, code=exited, status=127/n/a
Dez 07 16:46:46 HyperPi systemd[1]: vncserver.service: Failed with result 'exit-code'.
root@HyperPi:~# #!/bin/bash

What’s wrong here?

Thanks
Hyper

Did you upgrade Debian version from Bullseye to Bookworm? Or any other package update?

You are hit by a bug of RealVNC software not being able to run on 32bit RPi Bookworm anymore RealVNC on 32-bit RasPiOS issue · Issue #41 · raspberrypi/bookworm-feedback · GitHub

There is a hint for a solution within the related PiOS GitHub issue RealVNC on 32-bit RasPiOS issue · Issue #41 · raspberrypi/bookworm-feedback · GitHub

Out of this, I build a small script

#!/bin/bash

echo Download and install dependencies
files=( libmmal.so libmmal_core.so libmmal_components.so libmmal_util.so libmmal_vc_client.so libvcsm.so libcontainers.so )
for i in "${files[@]}"
do
        wget -nv https://github.com/raspberrypi/firmware/raw/master/opt/vc/lib/$i -O /usr/lib/arm-linux-gnueabihf/$i
done

reboot your system afterwards

Yes I did upgrade to bookworm.

Thank you so much!! Working now :slight_smile:

I should have also searched on Github.

You wouldn’t have found it on DietPi GitHub because it’s a RPiOS GitHub issue :wink:

1 Like