Hi Alex,
thanks for your reply. See my answers inline.
Am 20.05.21 um 19:45 schrieb Oleksandr Shneyder:
Hi Jan,
the x2go server you are trying to connect to, is it on the same machine as nginx? No, my nginx is inside a systemd-nspawn-container on my server that connects to my destination machines via VPN. I verified SSH to be working from the command line and I chose the MATE-desktop as this is the one I normally use. However, I could easily set up a VM with a full desktop environment and set up the web plugin there, if that helps.
Did you check the x2go logs on server? In hindsight, that sounds like an obvious idea. I'll try that.
Also you can enable the developer console on your browser and check if you'll get some useful information there. I will try that as well. This is not really familiar terrain for me, so I'll have to get back to you about that.
There are no community packages for HTML client yet. It's very new. Even if some of my customers already using it, it's very easy to make a mistake in some of configurations. Be sure also that your x2go server is using most recent version of x2gokdrive from nightly builds. That could also explain some issues. I was using stable. But just so I understand correctly, I could use the nightly PPA for that?
regards, Alex
Thank you for your pointers. I'll try to set up the VM within the next few days and hopefully, we'll be smarter, then.
Best, Jan
Am 10.05.21 um 15:44 schrieb Jan Bergner:
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
x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user