Hello,
I'm trying to repair the packaging of x2go in Mageia.
It was functional in Mageia 7, but this is no more the case in Mageia 8 or cauldron (development version).
I have tried 2 clients: x2goclient 4.1.2.2 and pyhoca-gui 0.6.1.1 packaged for Mageia 8.
For the server, in a virtualbox VM, I tried to install the master version of x2goserver; through make && make install.
I had to change the rights to add write credential on /var/lib/x2go and /var/lib/x2go/x2go_session
I use also nxagent-3.5.99.25-1.mga8 and nxproxy-3.5.99.25-1.mga8 packaged for Mageia 8. Thus I have linked xgoagent to /usr/lib64/nx/bin/nxagent
Using pyhoca, I can establish the session with the VM, either with the main user or with a test user, using password. But when I try to launch the desktop or a single application like Terminal, this fails. In the journal of the server, i get:
sshd[96864]: Accepted password for test from 192.168.1.14 port 35740 ssh2 systemd-logind[683]: [🡕] New session c25 of user test. systemd[1]: Started Session c25 of user test. sshd[96864]: pam_unix(sshd:session): session opened for user test by (uid=0) /usr/local/bin/x2gostartagent[97691]: successfully started X2Go Agent session with ID test-93-1636213441_stDLXQt_dp24 sshd[96871]: error: connect_to 127.0.0.1 port 51346: failed. sshd[96871]: error: connect_to 127.0.0.1 port 51346: failed.
In the same time, I get: this log on the client side:
Info: Proxy running in server mode with pid '2878627'. Session: Starting session at 'Sat Nov 6 16:46:21 2021'. Info: Using errors file '/home/yves/.x2go/S-test-93-1636213441_stDLXQt_dp24/session.err'. Info: Using stats file '/home/yves/.x2go/S-93/stats'. Loop: WARNING! Overriding auxiliary X11 port with new value '1'. Warning: Overriding auxiliary X11 port with new value '1'. Info: Using abstract X11 socket in kernel namespace for accessing DISPLAY=:0. Info: Connecting to remote host '127.0.0.1:51346'. Info: Connected to remote proxy on FD#5. Loop: PANIC! The remote NX proxy closed the connection. Error: The remote NX proxy closed the connection. Loop: PANIC! Failure negotiating the session in stage '7'. Error: Failure negotiating the session in stage '7'. Loop: PANIC! Wrong version or invalid session authentication cookie. Error: Wrong version or invalid session authentication cookie. Session: Terminating session at 'Sat Nov 6 16:46:29 2021'. Session: Session terminated at 'Sat Nov 6 16:46:29 2021'.
What surprise me is that the client uses 127.0.0.1 as remote server address.
I have tried to open all ports on the server, in case where the firewall would be implied, but without more success.
I don't understand what goes wrong and what to do to debug or restore the normal behavior.