I have machine with only a Ubuntu 21.04 setup on it. It was at 20.04 before and I used tigerVNC to get VNC to run. All was working when I did an upgrade command and it moved me to 21.04 which I did not expect. Now everything else works but my vncserver command cannot start a vnc session. Instead I get the error:
New Xtigervnc server 'EmilieServer:3 (michel)' on port 5903 for display :3.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/michel/.vnc/passwd EmilieServer:3 to connect to the VNC server.
=================== tail /home/michel/.vnc/EmilieServer:5903.log ===================
====================================================================================
Session startup via '/home/michel/.vnc/xstartup' cleanly exited too early (< 3 seconds)!
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
The X session cleanly exited!
Killing Xtigervnc process ID 23027... success!
Looking at the log for this vnc session I get this information.
Xnvc TigerVNC 1.11.0 - built 2021-09-20 18:41
Copyright (C) 1999-2020 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12011000, The X.Org Foundation
Thu Oct 28 22:03:30 2021
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5903
vncext: created VNC server for screen 0
3NI3X0 New Xtigervnc server 'EmilieServer:3 (michel)' on port 5903 for display :3.
3NI3X0 Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/michel/.vnc/passwd EmilieServer:3 to connect to the VNC server.
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
/usr/bin/startxfce4: X server already running on display :3
xrdb: Connection refused
xrdb: Can't open display ':3'
dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1
exited with status 1
Unable to init server: Could not connect: Connection refused
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.
My start file is simple and it worked in 20.04.
#!/bin/sh
set -xv
xrdb $HOME/.Xresources
xsetroot -solid grey
#exec /etc/X11/xinit/xinitrc
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
#export XKL_XMODMAP_DISABLE=1
dbus-launch /usr/bin/startxfce4
Does anyone have any idea why I encountered this problem after the upgrade? I have spend two days on this can can't find anything that will help. This server was setup so my daughter could do a university research projects and she needs it to continue her work. Any help would be really appreciated.