Can't seem to get Virtual Desktop to Work

Jobs Composer works–good news.
When you schedule the the virtual desktop, it says “Session was successfully created.”
But you never get the launch virtual machine option.

Output.log
/var/lib/slurm-llnl/slurmd/job00064/slurm_script: line 3: module: command not found
Setting VNC password…
Starting VNC server…

WARNING: reactor.arc.kent.edu:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server reactor.arc.kent.edu:1

WARNING: reactor.arc.kent.edu:2 is taken because of /tmp/.X2-lock
Remove this file if there is no X server reactor.arc.kent.edu:2

WARNING: reactor.arc.kent.edu:3 is taken because of /tmp/.X3-lock
Remove this file if there is no X server reactor.arc.kent.edu:3

WARNING: reactor.arc.kent.edu:4 is taken because of /tmp/.X4-lock
Remove this file if there is no X server reactor.arc.kent.edu:4

Desktop ‘TurboVNC: reactor.arc.kent.edu:5 (plthomas)’ started on display reactor.arc.kent.edu:5

Log file is vnc.log
Successfully started VNC server on reactor:5905…
Script starting…
Starting websocket server…
/data2/plthomas/ondemand/data/sys/dashboard/batch_connect/sys/bc_desktop/arc/output/6faf31a8-4651-4cf5-abee-c36f69022c26/script.sh: line 7: module: command not found
Launching desktop ‘mate’…
mate-session[121071]: WARNING: Unable to find provider ‘’ of required component ‘dock’

** (mate-settings-daemon:121166): WARNING **: 19:12:31.304: 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
Window manager warning: Log level 128: Name com.canonical.AppMenu.Registrar does not exist on the session bus

Unable to open desktop file /var/lib/snapd/desktop/applications/firefox_firefox.desktop for panel launcher: No such file or directory

(process:121310): ayatana-indicator-sound-WARNING **: 19:12:31.559: volume-control-pulse.vala:755: Unable to connect to dbus server at ‘unix:path=/run/user/1088271/pulse/dbus-socket’: Could not connect: No such file or directory
caja-dropbox is not installed, doing nothing.
** Message: 19:12:31.568: couldn’t access control socket: /run/user/1088271/keyring/control: No such file or directory

(process:121351): accountsservice-CRITICAL **: 19:12:31.572: _act_user_update_from_object_path: assertion ‘ACT_IS_USER (user)’ failed

(process:121351): GLib-GObject-WARNING **: 19:12:31.577: invalid uninstantiatable type ‘(null)’ in cast to ‘GObject’
tee: /tmp/dock-replace.logSSH_AUTH_SOCK=/run/user/1088271/keyring/ssh

(process:121351): GLib-GObject-CRITICAL **: 19:12:31.585: g_object_set_data: assertion ‘G_IS_OBJECT (object)’ failed
Failure: Module initialization failed

(caja:121256): Gtk-WARNING **: 19:12:31.594: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client

(polkit-mate-authentication-agent-1:121309): polkit-mate-1-WARNING **: 19:12:31.598: Unable to determine the session we are in: No session for pid 121309
: Permission denied
07/24/25 19:12:31: Getting dock from dconf.

(mate-power-manager:121345): PowerManager-ERROR **: 19:12:31.620: Error in dbus - GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied
tee: /tmp/dock-replace.log: Permission denied
07/24/25 19:12:31: Dock is not set in dconf, doing nothing.
Initializing caja-sendto extension
Initializing caja-wallpaper extension
mate-optimus-applet: launched.

  • nvidia-settings and prime-select not detected.
    mate-optimus-applet: NVIDIA Optimus is not supported.
    blueman-applet 19.12.31 WARNING PluginManager:147 __load_plugin: Not loading PPPSupport because its conflict has higher priority
    blueman-applet 19.12.31 WARNING PluginManager:147 __load_plugin: Not loading DhcpClient because its conflict has higher priority
    Initializing caja-open-terminal extension
    RuntimeError: object at 0x7fb0fe14b940 of type FolderColorMenu is not initialized
    INFO:root:The HUD is disabled via org.mate.hud in gsettings.
    mate-session[121071]: WARNING: Detected that screensaver has left the bus

(caja:121256): GVFS-RemoteVolumeMonitor-WARNING **: 19:12:39.722: Owner of volume monitor org.gtk.vfs.UDisks2VolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(caja:121256): GVFS-RemoteVolumeMonitor-WARNING **: 19:12:39.722: Owner of volume monitor org.gtk.vfs.MTPVolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(caja:121256): GVFS-RemoteVolumeMonitor-WARNING **: 19:12:39.722: Owner of volume monitor org.gtk.vfs.AfcVolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(caja:121256): GVFS-RemoteVolumeMonitor-WARNING **: 19:12:39.722: Owner of volume monitor org.gtk.vfs.GoaVolumeMonitor disconnected from the bus; removing drives/volumes/mounts

(process:121310): ayatana-indicator-sound-WARNING **: 19:12:39.724: Name lost or unable to acquire bus: org.ayatana.indicator.sound

(process:121351): GLib-GObject-WARNING **: 19:12:39.725: invalid uninstantiatable type ‘(null)’ in cast to ‘ActUser’
ayatana-indicator-datetime-Message: 19:12:39.725: ayatana-indicator-datetime exiting; failed/lost bus ownership

(process:121351): GLib-GObject-WARNING **: 19:12:39.752: instance of invalid non-instantiatable type ‘(null)’
Window manager warning:
(process:121351): GLib-GObject-CRITICAL **: 19:12:39.752: g_signal_handlers_disconnect_matched: assertion ‘G_TYPE_CHECK_INSTANCE (instance)’ failed

(process:121467): ayatana-indicator-application-service-WARNING **: 19:12:39.726: Name Lost

(process:121351): GLib-GObject-CRITICAL **: 19:12:39.752: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
Log level 8: g_main_loop_is_running: assertion ‘loop != NULL’ failed

(process:121310): GLib-GObject-CRITICAL **: 19:12:39.756: g_object_ref: assertion ‘!object_already_finalized’ failed

(process:121310): GLib-GIO-CRITICAL **: 19:12:39.758: Error while sending AddMatch() message: The connection is closed

(process:121310): GLib-GIO-CRITICAL **: 19:12:39.758: Error while sending GetNameOwner() message: The connection is closed

(process:121310): GLib-GIO-CRITICAL **: 19:12:39.758: Error while sending AddMatch() message: The connection is closed

(process:121310): GLib-GIO-CRITICAL **: 19:12:39.758: Error while sending AddMatch() message: The connection is closed

(process:121310): GLib-GIO-CRITICAL **: 19:12:39.758: Error while sending GetNameOwner() message: The connection is closed

(process:121310): GLib-GIO-CRITICAL **: 19:12:39.758: Error while sending AddMatch() message: The connection is closed
Desktop ‘mate’ ended with 0 status…
[websockify]: pid: 121660 (proxying 9153 ==> localhost:5905)
[websockify]: log file: ./websockify.log
[websockify]: waiting …
[websockify]: started successfully (proxying 9153 ==> localhost:5905)
Scanning VNC log file for user authentications…
Generating connection YAML file…
Cleaning up…
Killing Xvnc process ID 121021

vnc.log
TurboVNC Server (Xvnc) 64-bit v3.2 (build 20250506)
Copyright (C) 1999-2025 The VirtualGL Project and many others (see README.md)
Visit http://www.TurboVNC.org for more information on TurboVNC

24/07/2025 19:12:29 Using security configuration file /etc/turbovncserver-security.conf
24/07/2025 19:12:29 Enabled security type ‘tlsvnc’
24/07/2025 19:12:29 Enabled security type ‘tlsotp’
24/07/2025 19:12:29 Enabled security type ‘tlsplain’
24/07/2025 19:12:29 Enabled security type ‘x509vnc’
24/07/2025 19:12:29 Enabled security type ‘x509otp’
24/07/2025 19:12:29 Enabled security type ‘x509plain’
24/07/2025 19:12:29 Enabled security type ‘vnc’
24/07/2025 19:12:29 Enabled security type ‘otp’
24/07/2025 19:12:29 Enabled security type ‘unixlogin’
24/07/2025 19:12:29 Enabled security type ‘plain’
24/07/2025 19:12:29 Desktop name ‘TurboVNC: reactor.arc.kent.edu:5 (plthomas)’ (reactor.arc.kent.edu:5)
24/07/2025 19:12:29 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
24/07/2025 19:12:29 Listening for VNC connections on TCP port 5905
24/07/2025 19:12:29 Interface 0.0.0.0
24/07/2025 19:12:29 Framebuffer: BGRX 8/8/8/8
24/07/2025 19:12:29 New desktop size: 800 x 600
24/07/2025 19:12:29 New screen layout:
24/07/2025 19:12:29 0x00000040 (output 0x00000040): 800x600+0+0
24/07/2025 19:12:29 Maximum clipboard transfer size: 1048576 bytes
24/07/2025 19:12:29 VNC extension running!

Wedsockify.log
WebSocket server settings:

  • Listen on :9153
  • No SSL/TLS support (no cert file)
  • proxying from :9153 to localhost:5905

clusters.d desktop config.

/etc/ood/config/clusters.d/arc.yml


v2:
metadata:
title: “arc”
url: “https://ondemand-1.arc.kent.edu
hidden: false
#login:
#host: “reactor.arc.kent.edu”
job:
adapter: “slurm”
cluster: “arc”
bin: “/usr/bin”
conf: “/etc/slurm/slurm.conf”

ssh_hosts: “reactor.arc.kent.edu”

submit_host: "reactor.arc.kent.edu"
strict_host_checking: false
  #bin_overrides:
  #sbatch: "/usr/local/bin/sbatch_wrapper"
  #squeue: "/usr/local/bin/squeue_wrapper"
  # scontrol: ""
  # scancel: ""
copy_environment: false

batch_connect:
basic:
script_wrapper: |
module purge
%s
header: “#!/bin/bash”
vnc:
script_wrapper: |
module purge
export PATH=“/opt/TurboVNC/bin:$PATH”
export WEBSOCKIFY_CMD=“/usr/local/bin/websockify”
%s
websockify_cmd: “/usr/local/bin/websockify”
header: “#!/bin/bash”
set_host: “host=$(hostname -A | awk -F. ‘{print $1}’)”

First I think you need to remove this package. It’s the buttons that can turn off the machine. Since your users can’t do that anyway, it’s not useful and is failing.

Does /run/user/1088271 exist and have things in it? We (OSC) set XDG_RUNTIME_DIR to a temporary directory as we’ve had similar issues with /var/run.

First, Thank you, and I have updated bc_desktop///// still does not work.
title: “arc Desktop”
cluster: “arc”
submit: “submit/submit.yml.erb”
attributes:
desktop:
widget: select
label: “Desktop environment”
options:
- [“Xfce”, “xfce”]
- [“Mate”, “mate”]
- [“Gnome”, “gnome”]
cores:
widget: number_field
value: 48
min: 1
max: 48
step: 1
gpus:
widget: number_field
min: 0
max: 4
bc_vnc_idle: 0
bc_vnc_resolution:
required: true
node_type: null
bc_queue: null
bc_account: null
form:

  • bc_vnc_idle
  • cores
  • gpus
  • desktop
  • bc_num_hours
  • bc_num_slots
  • node_type
  • bc_account
  • bc_queue
  • bc_vnc_resolution
  • bc_email_on_started
    ~

Second, how would I remove mate-power-manager. From cluster work node?

Third.
Does /run/user/1088271 exist and have things in it? We (OSC) set XDG_RUNTIME_DIR to a temporary directory as we’ve had similar issues with

Yes, its on the on demand server, and has these things in it.
bus pipewire-0 pipewire-0-manager pulse systemd

Yes all of your issues are on compute nodes. This relates to /var/run as well. The issue you’re having is on the compute node itself, during the job, so all your issues are on the compute nodes.

You should be able to use dnf to remove mate-power-manager.

Well removing the power off. now allows the the ability to Launch the desktop, but it does no connect,

output.log

/var/lib/slurm-llnl/slurmd/job00072/slurm_script: line 3: module: command not found
Setting VNC password…
Starting VNC server…

WARNING: reactor.arc.kent.edu:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server reactor.arc.kent.edu:1

WARNING: reactor.arc.kent.edu:2 is taken because of /tmp/.X2-lock
Remove this file if there is no X server reactor.arc.kent.edu:2

WARNING: reactor.arc.kent.edu:3 is taken because of /tmp/.X3-lock
Remove this file if there is no X server reactor.arc.kent.edu:3

WARNING: reactor.arc.kent.edu:4 is taken because of /tmp/.X4-lock
Remove this file if there is no X server reactor.arc.kent.edu:4

Desktop ‘TurboVNC: reactor.arc.kent.edu:5 (plthomas)’ started on display reactor.arc.kent.edu:5

Log file is vnc.log
Successfully started VNC server on reactor:5905…
Script starting…
Starting websocket server…
/data2/plthomas/ondemand/data/sys/dashboard/batch_connect/sys/bc_desktop/arc/output/6be1dc07-1034-4b6e-ba2f-430c34eaa6d1/script.sh: line 7: module: command not found
Launching desktop ‘mate’…
mate-session[133030]: WARNING: Unable to find provider ‘’ of required component ‘dock’

** (mate-settings-daemon:133125): WARNING **: 13:47:47.790: 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
Window manager warning: Log level 128: Name com.canonical.AppMenu.Registrar does not exist on the session bus

Unable to open desktop file /var/lib/snapd/desktop/applications/firefox_firefox.desktop for panel launcher: No such file or directory

(process:133263): ayatana-indicator-sound-WARNING **: 13:47:48.040: volume-control-pulse.vala:755: Unable to connect to dbus server at ‘unix:path=/run/user/1088271/pulse/dbus-socket’: Could not connect: No such file or directory
caja-dropbox is not installed, doing nothing.
mate-session[133030]: WARNING: Could not launch application ‘mate-power-manager.desktop’: Unable to start application: Failed to execute child process “mate-power-manager” (No such file or directory)
** Message: 13:47:48.061: couldn’t access control socket: /run/user/1088271/keyring/control: No such file or directory

(process:133337): accountsservice-CRITICAL **: 13:47:48.063: _act_user_update_from_object_path: assertion ‘ACT_IS_USER (user)’ failed

(process:133337): GLib-GObject-WARNING **: 13:47:48.066: invalid uninstantiatable type ‘(null)’ in cast to ‘GObject’

(process:133337): GLib-GObject-CRITICAL **: 13:47:48.071: g_object_set_data: assertion ‘G_IS_OBJECT (object)’ failed
tee:
(polkit-mate-authentication-agent-1:133262): polkit-mate-1-WARNING **: 13:47:48.078: Unable to determine the session we are in: No session for pid 133262
/tmp/dock-replace.log: Permission denied

(caja:133202): Gtk-WARNING **: 13:47:48.085: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client
07/25/25 13:47:48: Getting dock from dconf.
Failure: Module initialization failed
SSH_AUTH_SOCK=/run/user/1088271/keyring/ssh
tee: /tmp/dock-replace.log: Permission denied
07/25/25 13:47:48: Dock is not set in dconf, doing nothing.
Initializing caja-sendto extension
Initializing caja-wallpaper extension
blueman-applet 13.47.48 WARNING PluginManager:147 __load_plugin: Not loading PPPSupport because its conflict has higher priority
mate-optimus-applet: launched.

  • nvidia-settings and prime-select not detected.
    mate-optimus-applet: NVIDIA Optimus is not supported.
    blueman-applet 13.47.48 WARNING PluginManager:147 __load_plugin: Not loading DhcpClient because its conflict has higher priority
    Initializing caja-open-terminal extension
    RuntimeError: object at 0x7f3c026cbb00 of type FolderColorMenu is not initialized
    INFO:root:The HUD is disabled via org.mate.hud in gsettings.
    blueman-applet 13.48.13 WARNING DiscvManager:119 update_menuitems: warning: Adapter is None
    [websockify]: pid: 133594 (proxying 60866 ==> localhost:5905)
    [websockify]: log file: ./websockify.log
    [websockify]: waiting …
    [websockify]: started successfully (proxying 60866 ==> localhost:5905)
    Scanning VNC log file for user authentications…
    Generating connection YAML file…

Well, virtual desktop stop working again.

reboot caused it to stop… fyi

OK so what’s the state now? I still see error messages about /run/user/1088271 - is this a real directory that you can use on the compute node? Does setting XDG_RUNTIME_DIR to a temporary directory work any better?

We got the vnc window working again.

Still not connecting.

how do you do

XDG_RUNTIME_DIR to a temporary directory work any better?

latest output log.
Setting VNC password…
Starting VNC server…

Desktop ‘TurboVNC: reactor.arc.kent.edu:2 (plthomas)’ started on display reactor.arc.kent.edu:2

Log file is vnc.log
Successfully started VNC server on reactor:5902…
Script starting…
Starting websocket server…
ERROR: Collection default cannot be found
Launching desktop ‘mate’…
mate-session[11969]: WARNING: Unable to find provider ‘’ of required component ‘dock’

** (mate-settings-daemon:12051): WARNING **: 15:10:20.733: 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
Window manager warning: Log level 128: Name com.canonical.AppMenu.Registrar does not exist on the session bus

Unable to open desktop file /var/lib/snapd/desktop/applications/firefox_firefox.desktop for panel launcher: No such file or directory

(process:12158): ayatana-indicator-sound-WARNING **: 15:10:20.983: volume-control-pulse.vala:755: Unable to connect to dbus server at ‘unix:path=/run/user/1088271/pulse/dbus-socket’: Could not connect: No such file or directory
caja-dropbox is not installed, doing nothing.
mate-session[11969]: WARNING: Could not launch application ‘mate-power-manager.desktop’: Unable to start application: Failed to execute child process “mate-power-manager” (No such file or directory)
** Message: 15:10:21.010: couldn’t access control socket: /run/user/1088271/keyring/control: No such file or directory

(process:12223): accountsservice-CRITICAL **: 15:10:21.014: _act_user_update_from_object_path: assertion ‘ACT_IS_USER (user)’ failed

(process:12223): GLib-GObject-WARNING **: 15:10:21.014: invalid uninstantiatable type ‘(null)’ in cast to ‘GObject’

(process:12223): GLib-GObject-CRITICAL **: 15:10:21.014: g_object_set_data: assertion ‘G_IS_OBJECT (object)’ failed

(polkit-mate-authentication-agent-1:12157): polkit-mate-1-WARNING **: 15:10:21.019: Unable to determine the session we are in: No session for pid 12157
07/25/25 15:10:21: Getting dock from dconf.
Failure: Module initialization failed

(caja:12120): Gtk-WARNING **: 15:10:21.037: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client
SSH_AUTH_SOCK=/run/user/1088271/keyring/ssh
07/25/25 15:10:21: Dock is not set in dconf, doing nothing.
Initializing caja-sendto extension
Initializing caja-wallpaper extension
mate-optimus-applet: launched.

  • nvidia-settings and prime-select not detected.
    mate-optimus-applet: NVIDIA Optimus is not supported.
    blueman-applet 15.10.21 WARNING PluginManager:147 __load_plugin: Not loading PPPSupport because its conflict has higher priority
    Initializing caja-open-terminal extension
    RuntimeError: object at 0x7f4b12fcf9c0 of type FolderColorMenu is not initialized
    blueman-applet 15.10.21 WARNING PluginManager:147 __load_plugin: Not loading DhcpClient because its conflict has higher priority
    INFO:root:The HUD is disabled via org.mate.hud in gsettings.
    [websockify]: pid: 12422 (proxying 55058 ==> localhost:5902)
    [websockify]: log file: ./websockify.log
    [websockify]: waiting …
    [websockify]: started successfully (proxying 55058 ==> localhost:5902)
    Scanning VNC log file for user authentications…
    Generating connection YAML file…
    blueman-applet 15.10.46 WARNING DiscvManager:119 update_menuitems: warning: Adapter is None

I’ve linked our submit.yml.erb. You can use it as a guide on how to do the same.

We completed your changes, still does not work.

I opened developer window on the web page with the no vnc failed connect webpage.

I saw this error.
wss://ondemand-1.arc.kent.edu/rnode/reactor/57988/websockify failed

In our ood_portal.yml,

We have our set host_regex: ‘(reactor)\d+’

our one compute node is called reactor.arc.kent.edu.

So should it be host_regex: ‘[\w.-]+.reactor.arc.kent.edu’

If you only have one compute node then I think it can be a literal string reactor.arc.kent.edu. The + there is one or more times, which I don’t think would match.