Fails to log in every time

I’ve just installed ThinLinc 4.18 server on my Ubuntu 24.04 desktop, and ThinLinc client 4.18 on my M2 MacBook.

Every time I try to connect from MacBook to Linux, it starts the ‘Welcome to ThinLinc’ dialog. I click Forward and it gives me a choice of Ubuntu desktop or GNOME Classic. I select Ubuntu. I then see the Starting session window and I see it get to 10 of 12 and then ‘Oh no! Something has gone wrong. A problem has occurred and the system can’t recover. Please log out and try again.’ and presents me with a ‘Log out’ button which does just that. At that point, the window closes on the client. I’ve also tried it with the GNOME Classic desktop with the same result.

Here is the contents of xinit.log:

xauth:  file /var/opt/thinlinc/sessions/simon/10/Xauthority does not exist
tl-xinit: Waiting for Xserver to accept connections...

Xvnc ThinLinc release 4.18.0 build 3877 - built Dec 19 2024 08:45:33
Copyright (C) 1999-2024 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101014

(II) Initializing extension VNC-EXTENSION

Tue Jan 28 21:30:01 2025
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5910
 vncext:      created VNC server for screen 0
(II) Initializing extension Generic Event Extension
(II) Initializing extension SHAPE
(II) Initializing extension MIT-SHM
(II) Initializing extension XInputExtension
(II) Initializing extension XTEST
(II) Initializing extension BIG-REQUESTS
(II) Initializing extension SYNC
(II) Initializing extension XKEYBOARD
(II) Initializing extension XC-MISC
(II) Initializing extension XFIXES
(II) Initializing extension RENDER
(II) Initializing extension RANDR
(II) Initializing extension COMPOSITE
(II) Initializing extension DAMAGE
(II) Initializing extension MIT-SCREEN-SAVER
(II) Initializing extension DOUBLE-BUFFER
(II) Initializing extension RECORD
(II) Initializing extension DPMS
(II) Initializing extension Present
(II) Initializing extension DRI3
(II) Initializing extension X-Resource
(II) Initializing extension XVideo
(II) Initializing extension XVideo-MotionCompensation
(II) Initializing extension GLX
(II) IGLX: Loaded and initialized swrast
(II) GLX: Initialized DRISWRAST GL provider for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
[mi] mieq: warning: overriding existing handler (nil) with 0x593570 for event 2
[mi] mieq: warning: overriding existing handler (nil) with 0x593570 for event 3
 Connections: accepted: 127.0.0.1::44180
 VNCSConnST:  closing 127.0.0.1::44180: Clean disconnection
 EncodeManager: Framebuffer updates: 0
 EncodeManager:   Total: 0 rects, 0 pixels
 EncodeManager:          0 B (1:-nan ratio)
 Connections: closed: 127.0.0.1::44180
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
tl-xinit: Xserver ready for clients.
--- System information ---
ThinLinc 4.18.0
Linux pn50 6.8.0-52-generic #53-Ubuntu SMP PREEMPT_DYNAMIC Sat Jan 11 00:06:25 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 24.04.1 LTS \n \l

--- End system information ---
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"

Tue Jan 28 21:30:02 2025
 Connections: accepted: 127.0.0.1::54186
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)
 VNCSConnST:  Replacing existing connection
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
Running /opt/thinlinc/etc/xstartup.d/01-tl-kinit.sh (Obtaining Kerberos ticket)
Running /opt/thinlinc/etc/xstartup.d/02-tl-dbus-launch.sh (Starting session D-Bus server)
Existing session D-Bus server found.
Setting initial D-Bus and systemd environment...
Running /opt/thinlinc/etc/xstartup.d/03-tl-x11-allow-localuser
localuser:simon being added to access control list
Running /opt/thinlinc/etc/xstartup.d/11-tl-set-title (Setting client window title)
Running /opt/thinlinc/etc/xstartup.d/12-tl-default-keyboard (Configuring default keyboard layout)
Setting default keyboard layout to "us"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
Running /opt/thinlinc/etc/xstartup.d/15-tl-shadow-notify (Enabling notifications when the session is shadowed)
Running /opt/thinlinc/etc/xstartup.d/20-tl-select-profile.sh (Choosing a profile)
Running /opt/thinlinc/etc/xstartup.d/30-tl-xdg-user-dirs (Translating standard folders)
Running /opt/thinlinc/etc/xstartup.d/40-tl-mount-localdrives (Mounting local drives)
Running /opt/thinlinc/etc/xstartup.d/41-tl-lp-redir-launch (Setting up printer port redirection)
Running /opt/thinlinc/etc/xstartup.d/43-tl-pulseaudio-launch.sh (Starting session PulseAudio server)
W: [pulseaudio] main.c: Couldn't canonicalize binary path, cannot self execute.
Session PulseAudio server started. Redirecting applications...
Running /opt/thinlinc/etc/xstartup.d/50-tl-wait-smartcard (Waiting for smart card connection)
Client has no smartcard capability
Stopping initial window manager...
Done.
Executing profile: ubuntu
Using XDG session: ubuntu
Updating D-Bus and systemd environment...
Executing XDG session command: env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu
Profile command exited with exit code 143
Running /opt/thinlinc/etc/xlogout.d/tl-kdestroy.sh
Running /opt/thinlinc/etc/xlogout.d/tl-umount-localdrives
tl-xinit: client terminated and returned 0
tl-xinit: Terminating X server...
X I/O error
tl-while-x11: lost Xserver connection, terminating child 17414 ...
tl-while-x11: lost Xserver connection, terminating child 17424 ...

Tue Jan 28 21:31:56 2025
 VNCSConnST:  closing 127.0.0.1::54186: Server shutdown
 EncodeManager: Framebuffer updates: 13
 EncodeManager:   Tight:
 EncodeManager:     Solid: 19 rects, 636.164 kpixels
 EncodeManager:            304 B (1:8371.33 ratio)
 EncodeManager:     Indexed RLE: 8 rects, 6.927 kpixels
 EncodeManager:                  2.25879 KiB (1:12.0208 ratio)
 EncodeManager:   Tight (JPEG):
 EncodeManager:     Full Colour: 40 rects, 292.334 kpixels
 EncodeManager:                  221.828 KiB (1:5.14993 ratio)
 EncodeManager:   Total: 67 rects, 935.425 kpixels
 EncodeManager:          224.384 KiB (1:16.2881 ratio)
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
tl-xinit: Xserver terminated and returned 0
tl-xinit: deleting ../10.1738094626.ended
tl-xinit: Session terminated. Exiting.

Hi @simgar,

You could be hitting this issue here:

Does the information in that article help resolve your issue?

1 Like

Yes, that appears to have been it, thanks. Did I miss that somewhere?

The reason I didn’t try logging out of the Ubuntu box before trying remote access was that ‘Welcome to ThinLinc’ dialog! I misinterpreted it as something that needed to be completed one time, after installation, before remote access would be allowed for anyone. Now that I’ve set up an additional user and logged in remotely with that account and then with the original account, I see that that dialog appears for each user.

Anyway, thanks for your help.

No problem, glad you got everything sorted. If you need anything else, please let us know.