Unable to launch MATE interactive desktop

We have Rocky Linux 8 compute nodes that all have MATE installed on them and when I try and launch an interactive desktop using MATE it dumps the following into the output.log file for the session and almost immediately closes the noVNC connection:

Setting VNC password...
Starting VNC server...

Desktop 'TurboVNC: c4-n38:1 (lpowers)' started on display c4-n38:1

Log file is vnc.log
Successfully started VNC server on c4-n38:5901...
Script starting...
Starting websocket server...
The system default contains no modules
  (env var: LMOD_SYSTEM_DEFAULT_MODULES is empty)
  No changes in loaded modules

Launching desktop 'mate'...
[websockify]: pid: 72243 (proxying 62198 ==> localhost:5901)
[websockify]: log file: ./websockify.log
[websockify]: waiting ...
_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib control.c:1570:(snd_ctl_open_noupdate) Invalid CTL default
[websockify]: started successfully (proxying 62198 ==> localhost:5901)
Scanning VNC log file for user authentications...
Generating connection YAML file...
GNOME_KEYRING_CONTROL=/c4/home/lpowers/.cache/keyring-QGI7U2

(polkit-mate-authentication-agent-1:72355): polkit-mate-1-WARNING **: 03:03:04.692: Unable to determine the session we are in: No session for pid 72355
GNOME_KEYRING_CONTROL=/c4/home/lpowers/.cache/keyring-QGI7U2
SSH_AUTH_SOCK=/c4/home/lpowers/.cache/keyring-QGI7U2/ssh
GNOME_KEYRING_CONTROL=/c4/home/lpowers/.cache/keyring-QGI7U2
SSH_AUTH_SOCK=/c4/home/lpowers/.cache/keyring-QGI7U2/ssh

(mate-power-manager:72320): PowerManager-ERROR **: 03:03:04.755: Error in dbus - GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied
Initializing caja-image-converter extension
Initializing caja-open-terminal extension
Initializing caja-sendto extension
SELinux Troubleshooter: Applet requires SELinux be enabled to run
mate-session[72257]: WARNING: Detected that screensaver has left the bus
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.UDisks2VolumeMonitor: The connection is closed (g-io-error-quark, 18)
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.UDisks2VolumeMonitor: The connection is closed (g-io-error-quark, 18)
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.UDisks2VolumeMonitor: The connection is closed (g-io-error-quark, 18)

(mate-panel:72307): GLib-GIO-CRITICAL **: 03:03:11.144: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.MTPVolumeMonitor: The connection is closed (g-io-error-quark, 18)

(mate-panel:72307): GLib-GIO-CRITICAL **: 03:03:11.146: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.GPhoto2VolumeMonitor: The connection is closed (g-io-error-quark, 18)

(mate-panel:72307): GLib-GIO-CRITICAL **: 03:03:11.146: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcVolumeMonitor: The connection is closed (g-io-error-quark, 18)

(mate-panel:72307): GLib-GIO-CRITICAL **: 03:03:11.147: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.Daemon: The connection is closed (g-io-error-quark, 18)

(caja:72311): GLib-GIO-CRITICAL **: 03:03:11.147: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.MTPVolumeMonitor: The connection is closed (g-io-error-quark, 18)

(caja:72311): GLib-GIO-CRITICAL **: 03:03:11.148: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.GPhoto2VolumeMonitor: The connection is closed (g-io-error-quark, 18)

(caja:72311): GLib-GIO-CRITICAL **: 03:03:11.148: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcVolumeMonitor: The connection is closed (g-io-error-quark, 18)

(caja:72311): GLib-GIO-CRITICAL **: 03:03:11.148: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.Daemon: The connection is closed (g-io-error-quark, 18)
abrt-applet: Problem connecting to dbus

(mate-settings-daemon:72295): GLib-GIO-CRITICAL **: 03:03:11.150: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.MTPVolumeMonitor: The connection is closed (g-io-error-quark, 18)

(mate-settings-daemon:72295): GLib-GIO-CRITICAL **: 03:03:11.150: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.GPhoto2VolumeMonitor: The connection is closed (g-io-error-quark, 18)

(mate-settings-daemon:72295): GLib-GIO-CRITICAL **: 03:03:11.151: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcVolumeMonitor: The connection is closed (g-io-error-quark, 18)

(mate-settings-daemon:72295): GLib-GIO-CRITICAL **: 03:03:11.151: Error while sending AddMatch() message: The connection is closed
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.Daemon: The connection is closed (g-io-error-quark, 18)

(caja:72311): GVFS-WARNING **: 03:03:11.157: Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.Daemon: The connection is closed (g-io-error-quark, 18)


(mate-settings-daemon:72295): GLib-GIO-CRITICAL **: 03:03:11.166: Error while sending AddMatch() message: The connection is closed

(mate-settings-daemon:72295): GLib-GObject-CRITICAL **: 03:03:11.182: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(mate-settings-daemon:72295): GLib-GObject-CRITICAL **: 03:03:11.182: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[1728727384,000,xklavier.c:xkl_engine_start_listen/] 	The backend does not require manual layout management - but it is provided by the application

(mate-panel:72307): dconf-WARNING **: 03:03:11.189: failed to commit changes to dconf: The connection is closed
Setting VNC password...
Generating connection YAML file...
mate-session[72257]: WARNING: Client '/org/gnome/SessionManager/Client4' failed to reply before timeout

I tried to set export XDG_RUNTIME_DIR="/tmp/${UID}" in the /var/www/ood/apps/sys/bc_desktop/template/script.sh.erb, but it made no difference. I don’t understand the errors in the log and Googling it doesn’t help.

Well I got a little further with the problem and could see the MATE desktop for a second before the noVNC session disconnected because TurboVNC exited:

Setting VNC password...
Starting VNC server...

Desktop 'TurboVNC: c4-n38:1 (lpowers)' started on display c4-n38:1

Log file is vnc.log
Successfully started VNC server on c4-n38:5901...
Script starting...
Starting websocket server...
The system default contains no modules
  (env var: LMOD_SYSTEM_DEFAULT_MODULES is empty)
  No changes in loaded modules

Launching desktop 'mate'...
[websockify]: pid: 240412 (proxying 53959 ==> localhost:5901)
[websockify]: log file: ./websockify.log
[websockify]: waiting ...
_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib control.c:1570:(snd_ctl_open_noupdate) Invalid CTL default
** Message: 04:54:05.692: couldn't access control socket: /scratch/lpowers/155115/lpowers/keyring/control: No such file or directory
SSH_AUTH_SOCK=/scratch/lpowers/155115/lpowers/keyring/ssh
Initializing caja-image-converter extension
Initializing caja-open-terminal extension
Initializing caja-sendto extension

(polkit-mate-authentication-agent-1:240543): polkit-mate-1-WARNING **: 04:54:05.937: Unable to determine the session we are in: No session for pid 240543
[websockify]: started successfully (proxying 53959 ==> localhost:5901)
Scanning VNC log file for user authentications...
Generating connection YAML file...

(nm-applet:240464): Gtk-WARNING **: 04:54:06.096: gtk_widget_size_allocate(): attempt to allocate widget with width -1 and height 1
SELinux Troubleshooter: Applet requires SELinux be enabled to run
mate-session[240389]: WARNING: Detected that screensaver has left the bus
** Message: 04:54:12.637: Got disconnected from the session message bus; retrying to reconnect every 10 seconds
abrt-applet: Problem connecting to dbus

(caja:240455): GVFS-RemoteVolumeMonitor-WARNING **: 04:54:12.639: Owner of volume monitor org.gtk.vfs.UDisks2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(mate-settings-daemon:240439): GLib-GObject-CRITICAL **: 04:54:12.654: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(mate-settings-daemon:240439): GLib-GObject-CRITICAL **: 04:54:12.654: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[1728734045,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 240338

I had to remove the mate-power-manager.x86_64 package from all the compute nodes was the first issue then I had to set export XDG_RUNTIME_DIR="$TMPDIR/$USER"

Well I gave up on using MATE and switched to Xfce which is working fine.

Hi and welcome! Sorry we couldn’t get to this, but it looks like you figured it out, or at least figured XFCE out!