<div dir="ltr">In additional, here you can see the installed nx packages:<div><div>ii libnx-x11-6:i386               2:3.5.99.14-0~816~ubuntu16.04.1       i386     nxagent's libNX_X11 client-part library</div><div>ii nx-x11-common                2:3.5.99.14-0~816~ubuntu16.04.1       all     nx-X11 (common files)</div><div>ii nxagent                   2:3.5.99.14-0~816~ubuntu16.04.1       i386     Nested Xserver (aka NX Agent) supporting the NX compression protocol</div><div>ii nxproxy                   2:3.5.99.14-0~816~ubuntu16.04.1       i386     NX proxy</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-06 19:09 GMT+01:00 Pongrácz István <span dir="ltr"><<a href="mailto:pongracz.istvan@gmail.com" target="_blank">pongracz.istvan@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#f7f7f7" text="#212121" link="#2a76c6" vlink="#808080"><div>Hi,</div><div><br></div><div>I use x2go successfully for several years and I very like it, thank you!</div><div><br></div><div>I have a problem with the latest x2go (<a href="http://ppa.launchpad.net/x2go/stable/ubuntu" target="_blank">http://ppa.launchpad.net/<wbr>x2go/stable/ubuntu</a> xenial main).</div><div>I can login without problem to the server, working as expected, but when I do not work on the x2go session (inactive or idle), the server closes the connection and it is not possible to connect again. </div><div>Before the upgrade I had open sessions for days.</div><div><br></div><div>Any idea? Below the technical details.</div><div><br></div><div><b>The client debug shows (short version):</b> </div><pre>x2go-DEBUG-../src/<wbr>sshmasterconnection.cpp:2089> Forwarding parameters: from remote ("localhost":49454) to local ("localhost":49788)</pre><pre>x2go-DEBUG-../src/<wbr>sshmasterconnection.cpp:2126> Temporary session port after config file parse: 49454</pre><pre>x2go-DEBUG-../src/<wbr>sshmasterconnection.cpp:2130> Temporary session host after config file parse: localhost</pre><pre>x2go-DEBUG-../src/<wbr>sshmasterconnection.cpp:2160> New channel forwarded.</pre><pre>x2go-DEBUG-../src/<wbr>sshmasterconnection.cpp:2320> "ssh_channel_write failed": "Remote channel is closed"</pre><pre>x2go-DEBUG-../src/sshprocess.<wbr>cpp:472> I/O error: "ssh_channel_write failed."" - Remote channel is closed" (2).</pre><pre>x2go-DEBUG-../src/<wbr>sshmasterconnection.cpp:2363> EOF sent.</pre><pre>x2go-DEBUG-../src/<wbr>sshmasterconnection.cpp:2367> Channel closed.</pre><pre>x2go-DEBUG-../src/<wbr>onmainwindow.cpp:6459> Proxy wrote on stderr: "Loop: PANIC! The remote NX proxy closed the connection.</pre><pre>Error: The remote NX proxy closed the connection.</pre><pre>"</pre><pre>x2go-DEBUG-../src/<wbr>onmainwindow.cpp:6459> Proxy wrote on stderr: "Loop: PANIC! Failure negotiating the session in stage '7'.</pre><pre>Error: Failure negotiating the session in stage '7'.</pre><pre>Loop: PANIC! Wrong version or invalid session authentication cookie.</pre><pre>Error: Wrong version or invalid session authentication cookie.</pre><div><br></div><div>So, on the server side the port 49454 did not exist and even on the server I can see the session running (with ps ax), it is not possible to connect (The remote NX proxy closed the connection....))</div><div><br></div><div>I did not find fresh or relevant information on the net, I spent about 2 days to figure out, but without success (purge, reinstall, xsession removing etc. - all done, without results)</div><div><br></div><div><b>On the server, the sshd log contains this relevant information (it is the pair of the client debug log above):</b></div><pre>Mar  5 19:45:11 localhost sshd[19999]: Accepted publickey for xxxx from YYYYY.98 port 43002 ssh2: RSA SHA256:notrelevant</pre><pre>Mar  5 19:45:11 localhost sshd[19999]: pam_unix(sshd:session): session opened for user username by (uid=0)</pre><pre>Mar  5 19:45:11 localhost systemd-logind[787]: New session 9 of user username.</pre><pre>Mar  5 19:45:22 localhost su[20438]: Successful su for username by root</pre><pre>Mar  5 19:45:22 localhost su[20438]: + ??? root:username</pre><pre>Mar  5 19:45:22 localhost su[20438]: pam_unix(su:session): session opened for user username by (uid=0)</pre><pre>Mar  5 19:45:22 localhost systemd-logind[787]: New session c1 of user username.</pre><pre>Mar  5 19:45:22 localhost su[20438]: pam_unix(su:session): session closed for user username</pre><pre>Mar  5 19:45:22 localhost su[20492]: Successful su for username by root</pre><pre>Mar  5 19:45:22 localhost systemd-logind[787]: Removed session c1.</pre><pre>Mar  5 19:45:22 localhost su[20492]: + ??? root:username</pre><pre>Mar  5 19:45:22 localhost su[20492]: pam_unix(su:session): session opened for user username by (uid=0)</pre><pre>Mar  5 19:45:22 localhost systemd-logind[787]: New session c2 of user username.</pre><pre>Mar  5 19:45:24 localhost su[20492]: pam_unix(su:session): session closed for user username</pre><pre>Mar  5 19:45:24 localhost systemd-logind[787]: Removed session c2.</pre><pre>Mar  5 19:45:25 localhost sshd[3615]: pam_unix(sshd:session): session closed for user username</pre><pre>Mar  5 19:45:29 localhost sshd[20011]: error: connect_to localhost port 49454: failed.</pre><pre>Mar  5 19:45:29 localhost sshd[20011]: channel_by_id: 0: bad id: channel free</pre><pre>Mar  5 19:45:29 localhost sshd[20011]: Disconnecting: Received ieof for nonexistent channel 0.</pre><pre>Mar  5 19:45:29 localhost sshd[19999]: pam_unix(sshd:session): session closed for user username</pre><pre>Mar  5 19:45:29 localhost systemd-logind[787]: Removed session 9.</pre><div><br></div><div><b>The x2go server log from the syslog:</b></div><div>Here is the session opened first time, successfully, you can see the agent port (49454):</div><div>Mar  5 18:31:11 localhost /usr/bin/x2gostartagent: creating new session: username-50-1520271069_<wbr>stDMATE_dp24 2a3a4f78ebac6c1318558ebfebbfff<wbr>f1 3799 YYYY.98 49454 49455 49456 -1 -1</div><div><br></div><div>In the syslog I did not find any related information about nxagent closing, but only the unsuccessful reconnect after 1 hour and 14 minutes. First reconnect, I was able to see the session selector window and I saw the session as running state, but I had only Suspend and Terminate buttons active. I pushed the suspend and resume, problem occurred.</div><div><br></div><div><b>Here are the packages on the server:</b></div><pre>ii  cups-x2go                 <wbr>                   3.0.1.3-1  <wbr>                              <wbr>    all          Virtual X2Go printer for CUPS</pre><pre>ii  libx2go-log-perl          <wbr>                   4.1.0.0-0~<wbr>1517~ubuntu16.04.1            <wbr>     all          Perl X2Go::Log package</pre><pre>ii  libx2go-server-db-perl    <wbr>                   4.1.0.0-0~<wbr>1517~ubuntu16.04.1            <wbr>     i386         Perl X2Go::Server:DB package</pre><pre>ii  libx2go-server-perl       <wbr>                   4.1.0.0-0~<wbr>1517~ubuntu16.04.1            <wbr>     all          Perl X2Go::Server package</pre><pre>rc  x2goagent                 <wbr>                   2:3.5.0.33-<wbr>0~710~ubuntu16.04.1           <wbr>    all          X2Go agent</pre><pre>rc  x2godesktopsharing        <wbr>                   3.1.1.4-0~<wbr>186~ubuntu16.04.1             <wbr>     i386         Share X11 desktops with other users via X2Go</pre><pre>ii  x2gomatebindings          <wbr>                   0.0.1.5-0~<wbr>203~ubuntu16.04.1             <wbr>     i386         X2Go MATE bindings and MIME types</pre><pre>ii  x2goserver                <wbr>                   4.1.0.0-0~<wbr>1517~ubuntu16.04.1            <wbr>     i386         X2Go server daemon scripts</pre><pre>ii  x2goserver-common         <wbr>                   4.1.0.0-0~<wbr>1517~ubuntu16.04.1            <wbr>     i386         X2Go Server (common files)</pre><pre>ii  x2goserver-extensions     <wbr>                   4.1.0.0-0~<wbr>1517~ubuntu16.04.1            <wbr>     all          X2Go Server (extension support)</pre><pre>ii  x2goserver-printing       <wbr>                   4.1.0.0-0~<wbr>1517~ubuntu16.04.1            <wbr>     all          X2Go server (printing support)</pre><pre>ii  x2goserver-x2goagent      <wbr>                   4.1.0.0-0~<wbr>1517~ubuntu16.04.1            <wbr>     all          X2Go Server's X2Go Agent</pre><pre>rc  x2goserver-xsession       <wbr>                   4.1.0.0-0~<wbr>1517~ubuntu16.04.1            <wbr>     all          X2Go Server (Xsession runner)</pre><div><br></div><div><b>Here are the packages on the client:</b></div><pre>ii  cups-x2go                 <wbr>                              <wbr>    3.0.1.3-1                 <wbr>                       all    <wbr>      Virtual X2Go printer for CUPS</pre><pre>rc  x2goagent                 <wbr>                              <wbr>    2:3.5.0.33-0~710~ubuntu16.<wbr>04.1                   all    <wbr>      X2Go agent</pre><pre>ii  x2goclient                <wbr>                              <wbr>    4.1.1.1-0~1719~ubuntu16.<wbr>04.1                     <wbr>amd64        X2Go Client application (Qt4)</pre><pre>rc  x2gomatebindings          <wbr>                              <wbr>    0.0.1.5-0~203~ubuntu16.04.<wbr>1                      amd64  <wbr>      X2Go MATE bindings and MIME types</pre><pre>rc  x2goserver                <wbr>                              <wbr>    4.0.1.22-0~1197~ubuntu16.<wbr>04.1                    amd64 <wbr>       X2Go server daemon scripts</pre><pre>rc  x2goserver-printing       <wbr>                              <wbr>    4.0.1.22-0~1197~ubuntu16.<wbr>04.1                    all   <wbr>       X2Go server daemon scripts (printing)</pre><pre>rc  x2goserver-xsession       <wbr>                              <wbr>    4.0.1.22-0~1197~ubuntu16.<wbr>04.1                    all   <wbr>       X2Go server daemon scripts (Xsession runner)</pre><pre>ii  x2gousbmount              <wbr>                              <wbr>    1.1.0.2-0~469~ubuntu16.04.<wbr>1                      all    <wbr>      clientside usb mass-storage device mounting</pre><div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Utálom a google-t.<div>I hate google.</div></div></div>
</div>