Getting VNC working

Hi, I’ve gone through the setup and I can’t seem to get the desktop working. It complains about the module command missing, but that seems not to be relevant (just purging the environment before launching the job). I can’t figure out which of the below errors are relevant.

Here is the full log file from the submitted job (the cluster name is vh):

/var/spool/slurmd/job00029/slurm_script: line 3: module: command not found
Setting VNC password...
Starting VNC server...
Killing Xvnc process ID 4135
Xvnc process ID 4135 already killed
Xvnc did not appear to shut down cleanly. Removing /tmp/.X11-unix/X1
Xvnc did not appear to shut down cleanly. Removing /tmp/.X1-lock

Desktop 'TurboVNC: gpu03:1 (sebastian)' started on display gpu03:1

Log file is vnc.log
Successfully started VNC server on gpu03:5901...
Script starting...
Starting websocket server...
/h/sebastian/ondemand/data/sys/dashboard/batch_connect/sys/bc_desktop/vh/output/e86f0e6e-5ba2-409a-861b-d4c4b21763e8/script.sh: line 7: module: command not found
Launching desktop 'mate'...
[websockify]: pid: 5304 (proxying 58857 ==> localhost:5901)
[websockify]: log file: ./websockify.log
[websockify]: waiting ...
grep: ./websockify.log: No such file or directory
/h/sebastian/ondemand/data/sys/dashboard/batch_connect/sys/bc_desktop/vh/output/e86f0e6e-5ba2-409a-861b-d4c4b21763e8/desktops/mate.sh: line 29: dconf: command not found
mate-session[5315]: WARNING: Unable to find provider '' of required component 'dock'

** (mate-settings-daemon:5344): WARNING **: 15:43:16.925: Could not open RFKILL control device, please verify your installation
Window manager warning: Log level 128: unsetenv() is not thread-safe and should not be used after threads are created
[websockify]: started successfully (proxying 58857 ==> localhost:5901)
Scanning VNC log file for user authentications...
Generating connection YAML file...
Unable to open desktop file /var/lib/snapd/desktop/applications/firefox_firefox.desktop for panel launcher: No such file or directory
mate-session[5315]: WARNING: Could not launch application 'nm-applet.desktop': Unable to start application: Failed to execute child process “nm-applet” (No such file or directory)
Failure: Module initialization failed
** Message: 15:43:17.653: couldn't access control socket: /run/user/11581/keyring/control: No such file or directory
** Message: 15:43:17.653: couldn't access control socket: /run/user/11581/keyring/control: No such file or directory
caja-dropbox is not installed, doing nothing.
11/11/24 15:43:17: Getting dock from dconf.
/usr/lib/ubuntu-mate/dock-replace: line 12: dconf: command not found

(caja:5420): Gtk-WARNING **: 15:43:17.795: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client
SSH_AUTH_SOCK=/run/user/11581/keyring/ssh
11/11/24 15:43:17: Dock is not set in dconf, doing nothing.

(polkit-mate-authentication-agent-1:5534): polkit-mate-1-WARNING **: 15:43:17.853: Unable to determine the session we are in: No session for pid 5534

(mate-power-manager:5483): PowerManager-ERROR **: 15:43:17.889: Error in dbus - GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied
mate-session[5315]: WARNING: Detected that screensaver has left the bus
Window manager warning: CurrentTime used to choose focus window; focus window may not be correct.
Window manager warning: Got a request to focus 0x800026 (Error) with a timestamp of 0.  This shouldn't happen!

(caja:5420): GVFS-RemoteVolumeMonitor-WARNING **: 15:43:24.988: Owner of volume monitor org.gtk.vfs.UDisks2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(caja:5420): GVFS-RemoteVolumeMonitor-WARNING **: 15:43:24.988: Owner of volume monitor org.gtk.vfs.GoaVolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(caja:5420): GVFS-RemoteVolumeMonitor-WARNING **: 15:43:24.988: Owner of volume monitor org.gtk.vfs.AfcVolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(caja:5420): GVFS-RemoteVolumeMonitor-WARNING **: 15:43:24.988: Owner of volume monitor org.gtk.vfs.GPhoto2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(caja:5420): GVFS-RemoteVolumeMonitor-WARNING **: 15:43:24.989: Owner of volume monitor org.gtk.vfs.MTPVolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(mate-settings-daemon:5344): GLib-GObject-CRITICAL **: 15:43:25.012: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(mate-settings-daemon:5344): GLib-GObject-CRITICAL **: 15:43:25.012: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Window manager warning: Log level 8: g_main_loop_is_running: assertion 'loop != NULL' failed
[1731357797,000,xklavier.c:xkl_engine_start_listen/] 	The backend does not require manual layout management - but it is provided by the application
Desktop 'mate' ended with 0 status...
Cleaning up...
Killing Xvnc process ID 5265

I’d start looking here. It would appear that websockify never started up.

Hi Jeff, thanks for the reply. I did see that error before and investigated and found that the OOD script looks for /urs/local/websockify/run while the package is actually installed as /usr/local/bin/websockify, so I linked it and that made it work. I think it just checks too soon but then it does work? In an earlier log file it says:

[websockify]: pid: 3782 (proxying 48650 ==> localhost:5901)
[websockify]: log file: ./websockify.log
[websockify]: waiting ...
grep: ./websockify.log: No such file or directory
[websockify]: failed to launch!
Cleaning up...

This time I don’t see the failed to launch message, so I figured it worked. I see a bunch of warnings, and a few errors. I couldn’t find much for these online.

Unable to open desktop file /var/lib/snapd/desktop/applications/firefox_firefox.desktop for panel launcher: No such file or directory
mate-session[5315]: WARNING: Could not launch application ‘nm-applet.desktop’: Unable to start application: Failed to execute child process “nm-applet” (No such file or directory)
Failure: Module initialization failed
** Message: 15:43:17.653: couldn’t access control socket: /run/user/11581/keyring/control: No such file or directory
** Message: 15:43:17.653: couldn’t access control socket: /run/user/11581/keyring/control: No such file or directory
caja-dropbox is not installed, doing nothing.
11/11/24 15:43:17: Getting dock from dconf.
/usr/lib/ubuntu-mate/dock-replace: line 12: dconf: command not found

(caja:5420): Gtk-WARNING **: 15:43:17.795: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client
SSH_AUTH_SOCK=/run/user/11581/keyring/ssh
11/11/24 15:43:17: Dock is not set in dconf, doing nothing.

(polkit-mate-authentication-agent-1:5534): polkit-mate-1-WARNING **: 15:43:17.853: Unable to determine the session we are in: No session for pid 5534

(mate-power-manager:5483): PowerManager-ERROR **: 15:43:17.889: Error in dbus - GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied
mate-session[5315]: WARNING: Detected that screensaver has left the bus
Window manager warning: CurrentTime used to choose focus window; focus window may not be correct.
Window manager warning: Got a request to focus 0x800026 (Error) with a timestamp of 0. This shouldn’t happen!

You need to get rid of this package. Regular users can’t power on/off these machines anyhow, so there’s no reason to have it.

I believe there are several ways to configure this. The link works fine, but what about next time you deploy or the next cluster? It’d likely be better to use the configuration so when you get the next cluter you’ll already have the right config for it.

Thanks - removed that package!

Yes I think there should be a better way to do this but I didn’t want to muck about with customizing the OOD/desktop scripts, and a link is easy to deploy via ansible.

I got this working! I installed these packages (maybe they should be added to the list of required software for the Mate environment):

mate-desktop-environment-extras
dconf-cli

Now the output log file looks like this, and google tells me those Gtk-CRITICAL errors can be ignored, so I think I’m good to go.

(polkit-mate-authentication-agent-1:10948): polkit-mate-1-WARNING **: 12:30:32.495: Unable to determine the session we are in: No session for pid 10948
Initializing caja-sendto extension

** (mate-screensaver:10900): WARNING **: 12:30:32.623: screensaver already running in this session
blueman-applet 12.30.32 WARNING  PluginManager:147 __load_plugin: Not loading DhcpClient because its conflict has higher priority
Initializing caja-image-converter extension
blueman-applet 12.30.33 WARNING  PluginManager:147 __load_plugin: Not loading PPPSupport because its conflict has higher priority
Initializing caja-open-terminal extension
Initializing caja-wallpaper extension





(caja:10857): Gtk-CRITICAL **: 12:30:55.667: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

(caja:10857): Gtk-CRITICAL **: 12:30:55.667: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

(caja:10857): Gtk-CRITICAL **: 12:30:55.667: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

(caja:10857): Gtk-CRITICAL **: 12:30:55.668: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

(caja:10857): Gtk-CRITICAL **: 12:30:55.668: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

(caja:10857): Gtk-CRITICAL **: 12:30:55.668: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed
blueman-applet 12.30.58 WARNING  DiscvManager:119 update_menuitems: warning: Adapter is None



Window manager warning: Log level 8: g_main_loop_is_running: assertion 'loop != NULL' failed
mate-session[10780]: WARNING: Unable to stop system: Interactive authentication required.

(mate-settings-daemon:10788): GLib-GObject-CRITICAL **: 12:32:32.772: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(mate-settings-daemon:10788): GLib-GObject-CRITICAL **: 12:32:32.772: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[1731519031,000,xklavier.c:xkl_engine_start_listen/] 	The backend does not require manual layout management - but it is provided by the application
Desktop 'mate' ended with 0 status...
Cleaning up...
Killing Xvnc process ID 10725

Great news! Yea those errors can be ignored if it works.

1 Like

Mate was giving me a lot of issues, too, so I switched to xfce and it worked much better.