Question

Unable to start VNC server on Ubuntu 20.04 (w/ Docker droplet)

I followed the VNC tutorial and am not able to get my VNC server to run correctly. dmesg:

[77874.518094] xiccd[66634]: segfault at e4 ip 0000555677e9b4f6 sp 00007ffcd9acab10 error 4 in xiccd[555677e97000+5000]
[77874.518103] Code: 00 eb 91 90 48 89 ef e8 e8 f8 ff ff eb c5 e8 01 cc ff ff 90 f3 0f 1e fa 55 53 48 89 fb 48 83 ec 08 e8 ce f8 ff ff 48 8b 7b 08 <8b> 97 e4 00 00 00 85 d2 7e 34 31 ed 66 0f 1f 44 00 00 48 89 e8 ba
[77875.096547] traps: light-locker[66653] trap int3 ip:7f630c02e0d5 sp:7fff171b8fa0 error:0 in libglib-2.0.so.0.6400.3[7f630bff2000+84000]

journalctl:

Jan 16 04:16:55 do at-spi-bus-launcher[66249]: X connection to :1 broken (explicit kill or server shutdown).
Jan 16 04:16:55 do xfce4-notifyd[66294]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
Jan 16 04:16:55 do systemd[56102]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Jan 16 04:16:55 do systemd[56102]: xfce4-notifyd.service: Failed with result 'exit-code'.
Jan 16 04:17:10 do dbus-daemon[66552]: [session uid=1000 pid=66550] AppArmor D-Bus mediation is enabled
Jan 16 04:17:10 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.a11y.Bus' requested by ':1.0' (uid=1000 pid=66548 comm="xfce4-session " label="unconfined")
Jan 16 04:17:10 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.a11y.Bus'
Jan 16 04:17:10 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.xfce.Xfconf' requested by ':1.2' (uid=1000 pid=66548 comm="xfce4-session " label="unconfined")
Jan 16 04:17:10 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.xfce.Xfconf'
Jan 16 04:17:10 do org.a11y.Bus[66559]: dbus-daemon[66559]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=66548 comm="xfce4-session " label="unconfined")
Jan 16 04:17:10 do org.a11y.Bus[66559]: dbus-daemon[66559]: Successfully activated service 'org.a11y.atspi.Registry'
Jan 16 04:17:10 do org.a11y.Bus[66569]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jan 16 04:17:11 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.freedesktop.systemd1' requested by ':1.5' (uid=1000 pid=66576 comm="dbus-update-activation-environment --systemd SSH_A" label="unconfined")
Jan 16 04:17:11 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Jan 16 04:17:11 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gtk.vfs.Daemon' requested by ':1.6' (uid=1000 pid=66581 comm="xfwm4 " label="unconfined")
Jan 16 04:17:11 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gtk.vfs.Daemon'
Jan 16 04:17:12 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.freedesktop.Notifications' requested by ':1.15' (uid=1000 pid=66606 comm="/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 " label="unconfined")
Jan 16 04:17:12 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.freedesktop.Notifications'
Jan 16 04:17:12 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.freedesktop.thumbnails.Thumbnailer1' requested by ':1.11' (uid=1000 pid=66604 comm="xfdesktop " label="unconfined")
Jan 16 04:17:12 do pulseaudio[57899]: XOpenDisplay() failed
Jan 16 04:17:12 do pulseaudio[57899]: Failed to load module "module-x11-publish" (argument: "display=:1.0 xauthority="): initialization failed.
Jan 16 04:17:13 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='ca.desrt.dconf' requested by ':1.20' (uid=1000 pid=66653 comm="light-locker " label="unconfined")
Jan 16 04:17:13 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'ca.desrt.dconf'
Jan 16 04:17:14 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gnome.evolution.dataserver.Sources5' requested by ':1.26' (uid=1000 pid=66643 comm="/usr/libexec/evolution-data-server/evolution-alarm" label="unconfined")
Jan 16 04:17:14 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gnome.OnlineAccounts' requested by ':1.28' (uid=1000 pid=66686 comm="/usr/libexec/evolution-source-registry " label="unconfined")
Jan 16 04:17:14 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gnome.evolution.dataserver.Sources5'
Jan 16 04:17:14 do goa-daemon[66704]: goa-daemon version 3.36.0 starting
Jan 16 04:17:14 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gnome.Identity' requested by ':1.30' (uid=1000 pid=66704 comm="/usr/libexec/goa-daemon " label="unconfined")
Jan 16 04:17:14 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gnome.OnlineAccounts'
Jan 16 04:17:14 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gnome.Identity'
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gnome.evolution.dataserver.Calendar8' requested by ':1.26' (uid=1000 pid=66643 comm="/usr/libexec/evolution-data-server/evolution-alarm" label="unconfined")
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gnome.evolution.dataserver.Calendar8'
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gnome.evolution.dataserver.AddressBook10' requested by ':1.32' (uid=1000 pid=66719 comm="/usr/libexec/evolution-calendar-factory " label="unconfined")
Jan 16 04:17:15 do org.freedesktop.thumbnails.Thumbnailer1[66635]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Jan 16 04:17:15 do org.freedesktop.thumbnails.Thumbnailer1[66635]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gnome.evolution.dataserver.AddressBook10'
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.29' (uid=1000 pid=66635 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor'
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gtk.vfs.GoaVolumeMonitor' requested by ':1.29' (uid=1000 pid=66635 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gtk.vfs.GoaVolumeMonitor'
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gtk.vfs.AfcVolumeMonitor' requested by ':1.29' (uid=1000 pid=66635 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gtk.vfs.AfcVolumeMonitor'
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gtk.vfs.GPhoto2VolumeMonitor' requested by ':1.29' (uid=1000 pid=66635 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gtk.vfs.GPhoto2VolumeMonitor'
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gtk.vfs.MTPVolumeMonitor' requested by ':1.29' (uid=1000 pid=66635 comm="/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd " label="unconfined")
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gtk.vfs.MTPVolumeMonitor'
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.freedesktop.thumbnails.Thumbnailer1'
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Activating service name='org.gtk.vfs.Metadata' requested by ':1.11' (uid=1000 pid=66604 comm="xfdesktop " label="unconfined")
Jan 16 04:17:15 do dbus-daemon[66552]: [session uid=1000 pid=66550] Successfully activated service 'org.gtk.vfs.Metadata'

My xstartup script looks like this currently:

#!/bin/bash
#/etc/X11/Xsession
#xrdb $HOME/.Xresources
#startxfce4 &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
dbus-launch xfce4-session

Please let me know if you have any ideas.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey @alexdo

Thanks for the reply. I’ve completed the prerequisites already and am using RealVNC at the moment. I haven’t been able to connect with VNC yet because the vncserver is failing to initialize properly. Firewall on both client and server is temporarily disabled to rule it out as the issue. I don’t seem to have openvpn installed on my system… is this needed for a VNC session with DigitalOcean to work correctly?

Thanks, Parth

Hello, @parthkagarwal

Could you please confirm that you’ve completed all the steps listed in the Prerequisites section of the article as well? Also would you mind confirming the exact VNC client that you’re using to connect?

I will recommend you to also try with another client.

  • On Windows, you can use [TightVNC](https://www.tightvnc.com/), [RealVNC](https://www.realvnc.com/), or [UltraVNC](https://www.uvnc.com/).
    
  • On macOS, you can use the built-in [Screen Sharing](https://support.apple.com/guide/mac-help/screen-sharing-overview-mh14066/mac) program, or can use a cross-platform app like [RealVNC](https://www.realvnc.com/).
    
  • On Linux, you can choose from many options, including vinagre, krdc, [RealVNC](https://www.realvnc.com/), or [TightVNC](https://www.tightvnc.com/).
    

Have you tried to increase the LimitNPROC in the following files:

/lib/systemd/system/openvpn@.service
/etc/systemd/system/openvpn@server.service
/etc/systemd/system/openvpn@server-udp.service

Regards, Alex