failed RealVNC

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
negubill
Posts: 31
Joined: Wed Jun 24, 2020 5:51 pm

failed RealVNC

Post by negubill »

Good night,

I have this failure without vnc

Can someone help me

- Device model : RPi 4 Model B (armv7l)
- MOTD : DietPi v7.7 has been released, time to update:



Code: Select all

  Active: failed (Result: exit-code) since Tue 2021-10-26 01:07:29 BST;
│ 21h ago
│    Main PID: 2056 (code=exited, status=127)
│         CPU: 18ms
│
│ Oct 26 01:07:29 DietPi systemd[1]: Started VNC Server (DietPi).
│ Oct 26 01:07:29 DietPi systemd[2056]: pam_unix(login:session): session opened for user root(uid=0) by (uid=0)
│ Oct 26 01:07:29 DietPi vncserver[2056]: [  OK  ] RealVNC detected
│ Oct 26 01:07:29 DietPi vncserver[2056]: [ INFO ] Starting virtual desktop at display :1 in 1280x720x16
│ Oct 26 01:07:29 DietPi vncserver[2056]: /usr/bin/vncserver-virtual: error while loading shared libraries: libbcm_host.so: cannot open hared object
│ file: No such file or directory
│ Oct 26 01:07:29 DietPi systemd[1]: vncserver.service: Main process exited,
│ code=exited, status=127/n/a
│ Oct 26 01:07:29 DietPi systemd[1]: vncserver.service: Failed with result
│ 'exit-code'.
User avatar
Joulinar
Posts: 6528
Joined: Sat Nov 16, 2019 12:49 am

Re: failed VNC

Post by Joulinar »

just have a look to following GitHub post https://github.com/MichaIng/DietPi/issues/4749
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
negubill
Posts: 31
Joined: Wed Jun 24, 2020 5:51 pm

Re: failed VNC

Post by negubill »

Hello, I did this sequence but it didn't work, is there any other help

# apt reinstall realvnc-vnc-server
# systemctl start vncserver-x11-serviced.service
# systemctl enable vncserver-x11-serviced.service
> Created symlink /etc/systemd/system/multi-user.target.wants/vncserver-x11-serviced.service → /lib/systemd/system/vncserver-x11-serviced.service.
# systemctl start vncserver-virtuald.service
# systemctl enable vncserver-virtuald.service
> Created symlink /etc/systemd/system/multi-user.target.wants/vncserver-virtuald.service → /lib/systemd/system/vncserver-virtuald.service.
# ss -tulpn | grep LISTEN
>> tcp LISTEN 0 5 0.0.0.0:5900 0.0.0.0:* users:(("vncserver-x11-c",pid=2485,fd=11))
>> tcp LISTEN 0 5 0.0.0.0:5999 0.0.0.0:* users:(("vncserver-virtu",pid=2522,fd=8))
>> tcp LISTEN 0 5 [::]:5900 [::]:* users:(("vncserver-x11-c",pid=2485,fd=10))
>> tcp LISTEN 0 5 [::]:5999 [::]:* users:(("vncserver-virtu",pid=2522,fd=7))
User avatar
Joulinar
Posts: 6528
Joined: Sat Nov 16, 2019 12:49 am

Re: failed VNC

Post by Joulinar »

VNC seems to be running as it is LISTEN to port 5900
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
negubill
Posts: 31
Joined: Wed Jun 24, 2020 5:51 pm

Re: failed VNC

Post by negubill »

the above is a copy of the help from the post you gave me
User avatar
Joulinar
Posts: 6528
Joined: Sat Nov 16, 2019 12:49 am

Re: failed VNC

Post by Joulinar »

what is the status of the service

Code: Select all

systemctl status vncserver.service
journalctl -u vncserver.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mehtaji
Posts: 1
Joined: Wed Sep 29, 2021 6:20 pm

Re: failed VNC

Post by Mehtaji »

- MOTD : DietPi v7.7 has been released, time to update:
User avatar
Joulinar
Posts: 6528
Joined: Sat Nov 16, 2019 12:49 am

Re: failed VNC

Post by Joulinar »

But this is not the output of the 2 command I gave you.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3534
Joined: Sat Nov 18, 2017 6:21 pm

Re: failed RealVNC

Post by MichaIng »

Test this workaround:

Code: Select all

cd /usr/lib/arm-linux-gnueabihf
dpkg -L libraspberrypi0 | grep '/usr/lib/arm-linux-gnueabihf/.*\.so.0' | while read -r line
do
line=${line#/usr/lib/arm-linux-gnueabihf/}
ln -s "$line" "${line%.0}"
done
systemctl restart vncserver
Post Reply