Thinlinc client won't connect to server

The thinlinc server is installed on arch linux and I am connecting to it with the thinlinc client from mac os. The client starts but fails to connect to the remote desktop.
The xinit.log is

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

Xvnc ThinLinc release 4.15.0 build 3358 - built Aug 21 2023 07:22:38
Copyright (C) 1999-2023 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12013000

(II) Initializing extension VNC-EXTENSION

Sat Feb 24 23:32:34 2024
 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
 Connections: accepted: 127.0.0.1::51828
 VNCSConnST:  closing 127.0.0.1::51828: Clean disconnection
 EncodeManager: Framebuffer updates: 0
 EncodeManager:   Total: 0 rects, 0 pixels
 EncodeManager:          0 B (1:-nan ratio)
 Connections: closed: 127.0.0.1::51828
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
tl-xinit: Xserver ready for clients.
--- System information ---
ThinLinc 4.15.0
Linux elrond 6.6.18-1-lts #1 SMP PREEMPT_DYNAMIC Fri, 23 Feb 2024 14:58:40 +0000 x86_64 GNU/Linux
EndeavourOS Linux \r (\l)

LSB Version:	n/a
--- End system information ---
/opt/thinlinc/libexec/tl-run-xstartup.d: line 27: xsetroot: command not found
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"

Sat Feb 24 23:32:35 2024
 Connections: accepted: 127.0.0.1::51842
 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...
ERROR:             ICD associated with VkPhysicalDevice does not support GetPhysicalDeviceCalibrateableTimeDomainsKHR
Running /opt/thinlinc/etc/xstartup.d/03-tl-x11-allow-localuser
localuser:anban 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)
ERROR:             ICD associated with VkPhysicalDevice does not support GetPhysicalDeviceCalibrateableTimeDomainsKHR
/opt/thinlinc/etc/xstartup.d/20-tl-select-profile.sh: line 12: 216149 Aborted                 (core dumped) ${TLPREFIX}/libexec/tl-run-xstartup-feedback ${feedback_file}
tl-xinit: client terminated and returned 0
tl-xinit: Terminating X server...
X connection to :10 broken (explicit kill or server shutdown).
X I/O error
tl-startup-bg: error: Caught exception (Display connection closed by server)

Sat Feb 24 23:32:36 2024
 VNCSConnST:  closing 127.0.0.1::51842: Server shutdown
 EncodeManager: Framebuffer updates: 20
 EncodeManager:   Tight:
 EncodeManager:     Solid: 20 rects, 637.22 kpixels
 EncodeManager:            320 B (1:7966 ratio)
 EncodeManager:     Indexed RLE: 9 rects, 26.693 kpixels
 EncodeManager:                  3.31934 KiB (1:31.4445 ratio)
 EncodeManager:   Tight (JPEG):
 EncodeManager:     Full Colour: 45 rects, 271.177 kpixels
 EncodeManager:                  216.646 KiB (1:4.89192 ratio)
 EncodeManager:   Total: 74 rects, 935.09 kpixels
 EncodeManager:          220.277 KiB (1:16.5862 ratio)
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
tl-xinit: Xserver terminated and returned 0
tl-xinit: deleting ../10.1708809987.ended
tl-xinit: Session terminated. Exiting.
2024-02-24 22:01:59 INFO vsmagent.session: Verified connectivity to newly started Xvnc for anban
2024-02-24 22:02:49 INFO vsmagent: Got SIGTERM, signaling process to quit
2024-02-24 22:02:49 INFO vsmagent: Terminating. Have a nice day!
2024-02-24 22:03:29 INFO vsmagent: VSM Agent version 4.15.0 build 3358 started
2024-02-24 22:03:29 WARNING vsmagent: agent_hostname does not contain a dot!
2024-02-24 22:03:29 WARNING vsmagent: Always use fully qualified hostnames for agent_hostname.
2024-02-24 22:03:29 INFO vsmagent: My public hostname is 
2024-02-24 22:12:24 INFO vsmagent: My public hostname has changed from 
2024-02-24 22:12:24 INFO vsmagent.session: Verified connectivity to newly started Xvnc for anban
2024-02-24 23:14:54 INFO vsmagent: Got SIGTERM, signaling process to quit
2024-02-24 23:14:54 INFO vsmagent: Terminating. Have a nice day!
2024-02-24 23:14:54 INFO vsmagent: VSM Agent version 4.15.0 build 3358 started
2024-02-24 23:14:54 INFO vsmagent: My public hostname is
2024-02-24 23:15:08 INFO vsmagent.session: Verified connectivity to newly started Xvnc for anban
2024-02-24 23:15:38 WARNING vsmagent.sessions: Broken session for user anban, tl-session process 213955 does not exist
2024-02-24 23:15:38 INFO vsmagent.session: Verified connectivity to newly started Xvnc for anban
2024-02-24 23:20:23 INFO vsmagent: Got SIGTERM, signaling process to quit
2024-02-24 23:20:23 INFO vsmagent: Terminating. Have a nice day!
2024-02-24 23:20:23 INFO vsmagent: VSM Agent version 4.15.0 build 3358 started
2024-02-24 23:20:23 INFO vsmagent: My public hostname is 146.230.94.39
2024-02-24 23:25:13 INFO vsmagent.session: Verified connectivity to newly started Xvnc for anban
2024-02-24 23:26:01 INFO vsmagent.session: Verified connectivity to newly started Xvnc for anban
2024-02-24 23:32:20 INFO vsmagent: Got SIGTERM, signaling process to quit
2024-02-24 23:32:20 INFO vsmagent: Terminating. Have a nice day!
2024-02-24 23:32:21 INFO vsmagent: VSM Agent version 4.15.0 build 3358 started
2024-02-24 23:32:21 INFO vsmagent: My public hostname is 146.230.94.39
2024-02-24 23:32:34 INFO vsmagent.session: Verified connectivity to newly started Xvnc for anban

Looks like something crashes when presenting the Profile chooser. Do you get any options at all to select from? What Desktop Environment are you trying to launch?

Are you able to log on locally in a graphical session on this machine?

Regards,
Martin

There are also some warnings in vsmagent.log about your agent_hostname. If this has been set, it has to be a hostname or ipaddress that your client can reach.

Regards,

Hi martin,
I’m experiencing similar symptoms to Anban. I’m running PopOS 22.04 with kernel version 6.6.10-76060610-generic. Whenever I try to log in, the process fails at 20-tl-select-profile.sh and I receive a segfault error. I’ve also checked the kernel message using dmesg, which indicated that Python3 triggered the segment fault. I remember it worked last week. It might have something to do with the new kernel.

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

Xvnc ThinLinc release 4.16.0 build 3491 - built Jan 24 2024 09:48:01
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 12013000

(II) Initializing extension VNC-EXTENSION

Thu Feb 29 23:50:55 2024
 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

Thu Feb 29 23:50:56 2024
 Connections: accepted: 127.0.0.1::42282
 VNCSConnST:  closing 127.0.0.1::42282: Clean disconnection
 EncodeManager: Framebuffer updates: 0
 EncodeManager:   Total: 0 rects, 0 pixels
 EncodeManager:          0 B (1:-nan ratio)
 Connections: closed: 127.0.0.1::42282
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
tl-xinit: Xserver ready for clients.
--- System information ---
ThinLinc 4.16.0
Linux pop.q-optics.phy.ncu.edu.tw 6.6.10-76060610-generic #202401051437~1704728131~22.04~24d69e2 SMP PREEMPT_DYNAMIC Mon J x86_64 x86_64 x86_64 GNU/Linux
Pop!_OS 22.04 LTS \n \l

No LSB modules are available.
--- End system information ---
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:system76 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
Obt-Message: Failed to open an Input Method
Obt-Message: Failed to open an Input Method
Obt-Message: Failed to open an Input Method
Running /opt/thinlinc/etc/xstartup.d/15-tl-shadow-notify (Enabling notifications when the session is shadowed)
XOpenIM() failed
Running /opt/thinlinc/etc/xstartup.d/20-tl-select-profile.sh (Choosing a profile)

Thu Feb 29 23:50:58 2024
 Connections: accepted: 127.0.0.1::42284
 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
/opt/thinlinc/etc/xstartup.d/20-tl-select-profile.sh: line 12: 13925 Segmentation fault      (core dumped) ${TLPREFIX}/libexec/tl-run-xstartup-feedback ${feedback_file}
tl-xinit: client terminated and returned 0
tl-xinit: Terminating X server...
X connection to :10 broken (explicit kill or server shutdown).
X I/O error
tl-startup-bg: error: Caught exception (Display connection closed by server)

Thu Feb 29 23:51:02 2024
 VNCSConnST:  closing 127.0.0.1::42284: Server shutdown
 EncodeManager: Framebuffer updates: 12
 EncodeManager:   Tight:
 EncodeManager:     Solid: 19 rects, 636.249 kpixels
 EncodeManager:            304 B (1:8372.45 ratio)
 EncodeManager:     Indexed RLE: 6 rects, 9.631 kpixels
 EncodeManager:                  2.17285 KiB (1:17.3465 ratio)
 EncodeManager:   Tight (JPEG):
 EncodeManager:     Full Colour: 40 rects, 289.475 kpixels
 EncodeManager:                  220.462 KiB (1:5.13118 ratio)
 EncodeManager:   Total: 65 rects, 935.355 kpixels
 EncodeManager:          222.932 KiB (1:16.3929 ratio)
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
tl-xinit: Xserver terminated and returned 0
tl-xinit: deleting ../10.1707176339.ended
tl-xinit: Session terminated. Exiting.

I also suspect it was due to a kernel update - as it worked before. I checked the suggestion on hostnames - and set it to the IP address but no luck. I am trying to launch the xfce4. It is a remote machine, I am not able to check if it launches a graphical session. And no options are shown -

Hi again @anban

I’ve not been able to replicate the issue by upgrading to a 6.6.18 kernel. Are there any other changes made, except for a kernel update?

Do you get any clues to what is crashing if you tail the system journal while launching a session?

No worries. I’m thinking it may be a python issue. I will investigate when I get some time and report back.

I am happy to report that it works now. Unfortunately I cannot say exactly what fixed it - but I had uninstalled all desktops gui stuff etc when thinlinc stopped working. After a few updates I reinstalled thinklinc server and all is well now. Apologies that I cannot be of more help.

Absolutely love this software - nothing else worked as well and as seamlessly. Thank you.

1 Like

Glad to hear that you got it resolved, and thanks for the kind words, much appreciated!

Regards,
Martin