Hello all,
I am trying to set up the x2go HTML client on a Debian server following this instruction: https://wiki.x2go.org/doku.php/wiki:advanced:x2gohtmlclient
My setup is done with Ansible, so the setup can be reproduced. The git repo containing the role can be found here: https://gitlab.com/jbergner/ansible-x2go-htmlclient
Right now, it should be considered a BETA version (using snakeoil-certificates, etc.), but that is not the point. The x2go HTML client is accessible and it seems to be starting a session.
However, this session is closed shortly after the initialization. Unfortunately, I cannot seem to find out, why. May be, someone can help?
From start to end of the session, I get the following in the nginx access log:
192.168.122.1 - - [10/May/2021:22:38:57 +0200] "GET /assets/x2go-plugin/IMG/x2gobg.svg HTTP/1.1" 200 10261 "https://192.168.122.126/assets/x2go-plugin/" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" 192.168.122.1 - - [10/May/2021:22:39:04 +0200] "POST /assets/x2go-plugin/RPC/x2gorpc.cgi HTTP/1.1" 200 2180 "https://192.168.122.126/assets/x2go-plugin/" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" 192.168.122.1 - - [10/May/2021:22:39:19 +0200] "GET /x2gows/50001 HTTP/1.1" 101 17 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
nginxes error log:
2021/05/10 22:38:58 [error] 1516#1516: *2 FastCGI sent in stderr: "Scalar value @out[2] better written as $out[2] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 79. Scalar value @out[0] better written as $out[0] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 81. Scalar value @out[1] better written as $out[1] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 85. Scalar value @out[0] better written as $out[0] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 99. Scalar value @out[1] better written as $out[1] at /var/www/html/asse" while reading response header from upstream, client: 192.168.122.1, server: x2go-web, request: "POST /assets/x2go-plugin/RPC/x2gorpc.cgi HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "192.168.122.126", referrer: "https://192.168.122.126/assets/x2go-plugin/" 2021/05/10 22:38:58 [error] 1516#1516: *2 FastCGI sent in stderr: "ts/x2go-plugin/RPC/x2gorpc.cgi line 103. Scalar value @out[2] better written as $out[2] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 104. Scalar value @out[0] better written as $out[0] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 140. Scalar value @out[1] better written as $out[1] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 141. Scalar value @out[2] better written as $out[2] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 142. Scalar value @out[0] b" while reading response header from upstream, client: 192.168.122.1, server: x2go-web, request: "POST /assets/x2go-plugin/RPC/x2gorpc.cgi HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "192.168.122.126", referrer: "https://192.168.122.126/assets/x2go-plugin/" 2021/05/10 22:39:04 [error] 1516#1516: *2 FastCGI sent in stderr: "etter written as $out[0] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 192. Scalar value @out[1] better written as $out[1] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 193. Scalar value @out[2] better written as $out[2] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 195. Scalar value @retval[0] better written as $retval[0] at /var/www/html/assets/x2go-plugin/RPC/x2gorpc.cgi line 265" while reading response header from upstream, client: 192.168.122.1, server: x2go-web, request: "POST /assets/x2go-plugin/RPC/x2gorpc.cgi HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "192.168.122.126", referrer: "https://192.168.122.126/assets/x2go-plugin/"
x2gows log:
SSH pid: 1579 local port: 50000 WS port: 50001 start websockify with args --verbose --cert /etc/ssl/certs/ssl-cert-snakeoil.pem --key /etc/ssl/private/ssl-cert-snakeoil.key --ssl-only :50001 :50000 Client closed connection, terminating... Terminating websockify Terminating tunnel with pid 1579 terminating child process 1581 : ssh
x2gows error log:
WebSocket server settings:
- Listen on :50001
- Flash security policy server
- SSL/TLS support
- Deny non-SSL/TLS connections
- proxying from :50001 to :50000
127.0.0.1: new handler Process
127.0.0.1 - - [10/May/2021 22:39:04] "GET /x2gows/50001 HTTP/1.1" 101 -
127.0.0.1 - - [10/May/2021 22:39:04] 127.0.0.1: SSL/TLS (wss://) WebSocket connection
127.0.0.1 - - [10/May/2021 22:39:04] 127.0.0.1: Version hybi-13, base64: 'False'
127.0.0.1 - - [10/May/2021 22:39:04] 127.0.0.1: Path: '/x2gows/50001'
127.0.0.1 - - [10/May/2021 22:39:04] connecting to: :50000
127.0.0.1 - - [10/May/2021 22:39:18] :50000: Target closed connection
127.0.0.1 - - [10/May/2021 22:39:18] :50000: Closed target
Thanks and best regards,
Jan