x2goclient Invalid MIT-MAGIC-COOKIE-1

after a fresh ArchLinux installation I was getting following error in x2go:

Warning: X connection failed with error 'Invalid MIT-MAGIC-COOKIE-1 key'

Additional output running x2goclient --debug:

x2go-DEBUG-../src/onmainwindow.cpp:6278> Proxy wrote on stderr: "Loop: WARNING! Could not retrieve the X server authentication cookie.\nWarning: Failed to read data from the X auth command.\nWarning: Generated a fake cookie for X authentication.\nInfo: Using ADSL link parameters 1408/24/1/0.\nInfo: Using cache parameters 4/4096KB/8192KB/8192KB.\nInfo: Using pack method 'adaptive-9' with session 'unix-kde-depth_24'.\nInfo: Using ZLIB data compression 1/1/32.\nInfo: Using ZLIB stream compression 4/4.\nInfo: No suitable cache file found.\nInfo: Forwarding X11 connections to display ':0" x2go-DEBUG-../src/onmainwindow.cpp:6278> Proxy wrote on stderr: "'.\nInfo: Forwarding auxiliary X11 connections to display ':0'.\nSession: Session started at 'Wed Oct 9 13:00:33 2019'.\n" x2go-DEBUG-../src/onmainwindow.cpp:6278> Proxy wrote on stderr: "Warning: X connection failed with error 'Invalid MIT-MAGIC-COOKIE-1 key'.\n"

There are a ton of sugestions that something es wrong with $DISPLAY. But X is fine in my environment.

As it turnes out I Simpy forgot to install a package: pacman -S xorg-xauth


Last update: March 22, 2021