Discussion:
[X2Go-Dev] x2go wiki : self-debugging instructions ?
Manfred Amoureux
2018-03-13 20:13:20 UTC
Permalink
Hello to all.

I just joined the mailing list.
First, I would like to say a word about how great I have found x2go since I
started using it : I was looking for a remote desktop solution that was
easy to set up and x2go worked amazingly easily and well.


Now the purpose of this email:
After tinkering around my x2go server install, it seems I have broken it
<https://ubuntuforums.org/showthread.php?t=2386633>. I am not here to ask
for help me fixing it (although, I wouldn't mind) but I have been looking
for instructions in the x2go wiki
<https://wiki.x2go.org/doku.php/wiki:advanced:start> about where to look
for the origin of errors (logs, etc ...) and I have not found such page.

Indeed, I already searched the /var/log/auth.log , but haven't found a clue
of what's wrong.
So, I thought there must be some basic steps that one may undertake looking
for what's wrong (logs to search, command lines to execute and check the
result ...) but I cannot figure out which ones.

I am willing to help the community by filling some pages in the wiki (so
nobody will have to bother the mailing list again asking what I am
currently asking) - I just need to find out how one create an account for
the wiki.

Regards / GrÌße
and thanks for your work !

Manfred A.
Paul Borowicz
2018-03-14 20:42:20 UTC
Permalink
On my system, x2go installs to these directories.
/etc/x2go/
/var/lib/x2go
/usr/share/x2go
/usr/lib/x2go

this file should tell you more about your logs:
/usr/lib/x2go/x2gosyslog

I see sessions connecting in the journalctl logs (I'm systemd).

To troubleshoot, I usually turn up debugging in:
/etc/x2go/x2goserver.conf

Then I run the agent from the comand line with --debugging on my client.

Hope that helps.

Paul
Post by Manfred Amoureux
Hello to all.
I just joined the mailing list.
First, I would like to say a word about how great I have found x2go since
I started using it : I was looking for a remote desktop solution that was
easy to set up and x2go worked amazingly easily and well.
After tinkering around my x2go server install, it seems I have broken it
<https://ubuntuforums.org/showthread.php?t=2386633>. I am not here to ask
for help me fixing it (although, I wouldn't mind) but I have been looking
for instructions in the x2go wiki
<https://wiki.x2go.org/doku.php/wiki:advanced:start> about where to look
for the origin of errors (logs, etc ...) and I have not found such page.
Indeed, I already searched the /var/log/auth.log , but haven't found a
clue of what's wrong.
So, I thought there must be some basic steps that one may undertake
looking for what's wrong (logs to search, command lines to execute and
check the result ...) but I cannot figure out which ones.
I am willing to help the community by filling some pages in the wiki (so
nobody will have to bother the mailing list again asking what I am
currently asking) - I just need to find out how one create an account for
the wiki.
Regards / GrÌße
and thanks for your work !
Manfred A.
_______________________________________________
x2go-dev mailing list
https://lists.x2go.org/listinfo/x2go-dev
Mihai Moldovan
2018-03-15 11:36:05 UTC
Permalink
Post by Manfred Amoureux
After tinkering around my x2go server install, it seems I have broken it
<https://ubuntuforums.org/showthread.php?t=2386633>. I am not here to ask for
help me fixing it (although, I wouldn't mind) but I have been looking for
instructions in the x2go wiki
<https://wiki.x2go.org/doku.php/wiki:advanced:start> about where to look for the
origin of errors (logs, etc ...) and I have not found such page.
Debugging is complicated. We do have a page at
https://wiki.x2go.org/doku.php/wiki:development:debugging

But most of the time there are special circumstances that lead to failure, which
cannot easily be ticked off using a checklist.

Even when it would be, the output is huge and usually needs proper
interpretation. Difficult to do so without knowing or at least looking at the code.
Post by Manfred Amoureux
Indeed, I already searched the /var/log/auth.log , but haven't found a clue of
what's wrong.
So, I thought there must be some basic steps that one may undertake looking for
what's wrong (logs to search, command lines to execute and check the result ...)
but I cannot figure out which ones.
The general syslog, after enabling server debug output, and client debug output
(x2goclient --debug) is more important, but this issue looks a lot like
https://github.com/ArcticaProject/nx-libs/issues/679

I've only fixed the screen positioning issue today - nightly builds should
already have that fix.

A workaround is to start x2goclient on your first (normally also primary)
display. Are you starting it on a secondary (non-first) display? If yes, then
it's likely that this is causing the trouble.
Post by Manfred Amoureux
I am willing to help the community by filling some pages in the wiki (so nobody
will have to bother the mailing list again asking what I am currently asking) -
I just need to find out how one create an account for the wiki.
You can't. User registration has been disabled due to spam bots creating
accounts and vandalizing pages. Wiki administrators (Heinz, me) can create new
accounts for users.

I typically need an email address (mandatory), a nickname (optional but
preferred, otherwise I'll guess it) and a real name (optional) for registration
and I will create an account accordingly.



Mihai
Mihai Moldovan
2018-03-15 11:43:17 UTC
Permalink
Post by Mihai Moldovan
The general syslog, after enabling server debug output, and client debug output
(x2goclient --debug) is more important, but this issue looks a lot like
https://github.com/ArcticaProject/nx-libs/issues/679
I've only fixed the screen positioning issue today - nightly builds should
already have that fix.
A workaround is to start x2goclient on your first (normally also primary)
display. Are you starting it on a secondary (non-first) display? If yes, then
it's likely that this is causing the trouble.
After skimming your original post again, I also wonder if you have partly
upgraded packages on that machine.

dpkg -l | grep -Ei '(x2go|nx)'



Mihai
Manfred Amoureux
2018-03-15 11:59:49 UTC
Permalink
Hello. Thanks for helping.

First the result of the command :

$ dpkg -l | grep -Ei '(x2go|nx)'

ii inxi
2.2.35-0ubuntu1 all full featured
system information script
ii libnx-x11-6:amd64
2:3.5.99.15-0~201803072246~ubuntu16.04.1
amd64 nxagent's libNX_X11 client-part library
ii libx2go-log-perl
4.1.0.0-0~1517~ubuntu16.04.1 all Perl X2Go::Log
package
ii libx2go-server-db-perl
4.1.0.0-0~1517~ubuntu16.04.1 amd64 Perl
X2Go::Server:DB package
ii libx2go-server-perl
4.1.0.0-0~1517~ubuntu16.04.1 all Perl X2Go::Server
package
ii libxcomp3:amd64
2:3.5.99.15-0~201803072246~ubuntu16.04.1
amd64 NX compression library
ii libxcompshad3:amd64
2:3.5.99.15-0~201803072246~ubuntu16.04.1
amd64 NX shadowing library
ii nx-x11-common
2:3.5.99.15-0~201803072246~ubuntu16.04.1
all nx-X11 (common files)
ii nxagent
2:3.5.99.15-0~201803072246~ubuntu16.04.1
amd64 Nested Xserver (aka NX Agent) supporting the NX compression
protocol
ii nxproxy
2:3.5.99.15-0~201803072246~ubuntu16.04.1
amd64 NX proxy
rc x2goagent
2:3.5.0.33-0~710~ubuntu16.04.1 all X2Go agent
ii x2goserver
4.1.0.0-0~1517~ubuntu16.04.1 amd64 X2Go server daemon
scripts
ii x2goserver-common
4.1.0.0-0~1517~ubuntu16.04.1 amd64 X2Go Server (common
files)
ii x2goserver-extensions
4.1.0.0-0~1517~ubuntu16.04.1 all X2Go Server
(extension support)
ii x2goserver-fmbindings
4.1.0.0-0~1517~ubuntu16.04.1 all X2Go Server (file
manager bindings)
ii x2goserver-printing
4.1.0.0-0~1517~ubuntu16.04.1 all X2Go server
(printing support)
ii x2goserver-x2goagent
4.1.0.0-0~1517~ubuntu16.04.1 all X2Go Server's X2Go
Agent
ii x2goserver-xsession
4.1.0.0-0~1517~ubuntu16.04.1 all X2Go Server
(Xsession runner)



Now, when I have a look at /var/log/syslog, I see this :
Mar 15 12:55:02 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:02 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:04 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:04 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:06 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:06 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:08 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:08 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:11 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:11 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:13 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:13 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:15 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:15 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:17 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:17 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:20 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:20 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:22 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:22 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:24 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:24 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:26 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:26 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:28 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:28 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:31 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:31 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:33 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:33 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:35 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:35 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:37 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:37 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:39 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:39 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:42 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:42 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:44 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:44 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:46 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:46 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:48 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:48 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:51 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:51 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:53 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:53 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:55 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:55 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:57 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:57 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:55:59 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:55:59 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:02 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:02 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:04 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:04 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:06 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:06 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:08 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:08 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:10 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:10 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:13 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:13 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:15 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:15 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:17 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:17 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:19 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:19 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:21 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:22 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:24 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:24 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:26 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:26 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:28 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:28 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:30 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:30 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:33 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:33 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN
Mar 15 12:56:35 ServeurITeN x2golistsessions_sql: executing external
command ,,x2gopath'' with args: libexec
Mar 15 12:56:35 ServeurITeN x2golistsessions_sql: executing external
command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args:
listsessionsroot,ServeurITeN

*ServeurITeN* is the name of the machine. I have not been trying to connect
with x2go to this machine since the last reboot. Does it look like it's
trying to execute something that fails constantly ?

Manfred A.
Mihai Moldovan
2018-03-15 12:05:33 UTC
Permalink
Post by Manfred Amoureux
$ dpkg -l | grep -Ei '(x2go|nx)'
[...]
Okay, up to date and no partially installed packages or version mismatched for
that matter.

That still leaves the "crash on connect" bug if the window was started a window
different from the first one in a multi-head setup.
Post by Manfred Amoureux
Mar 15 12:55:02 ServeurITeN x2golistsessions_sql: executing external command
,,x2gopath'' with args: libexec
[...]
/ServeurITeN/ is the name of the machine. I have not been trying to connect with
x2go to this machine since the last reboot. Does it look like it's trying to
execute something that fails constantly ?
Nope, it's just the cleanup process that loops through all session data and
syncs up or terminates stale session as necessary.

It's spammy (hence why I said "a lot of data"), but perfectly normal.

You'll have to make an actual connection attempt to see more interesting stuff.



Mihai
Manfred Amoureux
2018-03-15 14:07:49 UTC
Permalink
Hello again Mihai.

I recorded a screen capture while trying to start a connection from another
computer. See the link below.
As you can see, it seems the connection gets opened but the window crashes
immediately. I have tried from several computers (including one with
Windows) so I don't think it's a problem on the client side.

I have attached an extract of the /var/log/syslog file these last minutes.
I see nothing that looks like an error to me. Obviously, you should be able
to interpret it better than me.
I have also restarted x2go (*sudo systemctl stop x2goserver.service* and
then *sudo systemctl start x2goserver.service* ) after changing the
/etc/x2go/x2goserver.conf file with logging to *debug*. That is the second
text file attached.

In it, I can see :
Mar 15 14:51:15 ServeurITeN /usr/bin/x2gostartagent: successfully started
X2Go Agent session with ID manfred-50-1521121872_stDXFCE_dp24
Which means, I guess, the session was properly started.
However, further on, I can also see :
Mar 15 14:51:22 ServeurITeN x2gogetstatus: db_getstatus called, session ID:
manfred-50-1521121872_stDXFCE_dp24, return value:
Mar 15 14:51:22 ServeurITeN x2gocleansessions:
manfred-50-1521121872_stDXFCE_dp24: removed from database, not updating
status.
Mar 15 14:51:22 ServeurITeN x2gocleansessions:
manfred-50-1521121872_stDXFCE_dp24: in failed state, but agent is gone,
forgetting.
Is that some kind of failure ?


It is also interesting to see that when I issue a *who* command with the
Linux Terminal , there is one extra session under my login.

So I tried opening a x2go session with another login, which also failed but
with a different error message : "*Failed to start X2Go Agent session with
ID formation-50-1521122343_stDXFCE_dp24. X2Go Agent terminated
unexpectedly. Aborting session startup.*" I then restarted the
x2goserver.service again and tried again with the other user account and
got the same error as for the first user ("The connection with the remote
server was shut down. Please check the state of your network connection.").

Any idea ?


​
x2go-2018-03-15_14.37.00.mkv
<https://drive.google.com/file/d/1uSWROCNb54LSY2dhYwS6E2b5D5y_FFzQ/view?usp=drive_web>
​

Manfred Amoureux
Tel: (+33)6.800.343.16
Post by Mihai Moldovan
Post by Manfred Amoureux
$ dpkg -l | grep -Ei '(x2go|nx)'
[...]
Okay, up to date and no partially installed packages or version mismatched for
that matter.
That still leaves the "crash on connect" bug if the window was started a window
different from the first one in a multi-head setup.
Post by Manfred Amoureux
Mar 15 12:55:02 ServeurITeN x2golistsessions_sql: executing external
command
Post by Manfred Amoureux
,,x2gopath'' with args: libexec
[...]
/ServeurITeN/ is the name of the machine. I have not been trying to
connect with
Post by Manfred Amoureux
x2go to this machine since the last reboot. Does it look like it's
trying to
Post by Manfred Amoureux
execute something that fails constantly ?
Nope, it's just the cleanup process that loops through all session data and
syncs up or terminates stale session as necessary.
It's spammy (hence why I said "a lot of data"), but perfectly normal.
You'll have to make an actual connection attempt to see more interesting stuff.
Mihai
Mihai Moldovan
2018-03-15 14:16:12 UTC
Permalink
Post by Manfred Amoureux
I recorded a screen capture while trying to start a connection from another
computer. See the link below.
As you can see, it seems the connection gets opened but the window crashes
immediately. I have tried from several computers (including one with Windows) so
I don't think it's a problem on the client side.
Classic pattern of https://github.com/ArcticaProject/nx-libs/issues/677

Will be fixed with the next nx-libs release, but I cannot tell when that will
be. Ideally I'd like to see more xinerama changes/fixes to make it worthwhile.
Post by Manfred Amoureux
I have attached an extract of the /var/log/syslog file these last minutes. I see
nothing that looks like an error to me. Obviously, you should be able to
interpret it better than me.
I have also restarted x2go (/sudo systemctl stop x2goserver.service/ and then
/sudo systemctl start x2goserver.service/ ) after changing the
/etc/x2go/x2goserver.conf file with logging to /debug/. That is the second text
file attached.
Mar 15 14:51:15 ServeurITeN /usr/bin/x2gostartagent: successfully started X2Go
Agent session with ID manfred-50-1521121872_stDXFCE_dp24
Which means, I guess, the session was properly started.
Well, that message is an euphemism. We launched the binary, but everything that
happens after that is unknown since we immediately put the process into
background. But yeah, having it spawned nxagent is good.
Post by Manfred Amoureux
manfred-50-1521121872_stDXFCE_dp24: removed from database, not updating status.
manfred-50-1521121872_stDXFCE_dp24: in failed state, but agent is gone, forgetting.
Is that some kind of failure ?
That indicates that x2goagent/nxagent died after starting up.
Post by Manfred Amoureux
It is also interesting to see that when I issue a /who/ command with the Linux
Terminal , there is one extra session under my login.
Yup, X2Go uses SSH connections for everything.
Post by Manfred Amoureux
So I tried opening a x2go session with another login, which also failed but with
a different error message : "/Failed to start X2Go Agent session with ID
formation-50-1521122343_stDXFCE_dp24. X2Go Agent terminated unexpectedly.
Aborting session startup./" I then restarted the x2goserver.service again and
tried again with the other user account and got the same error as for the first
user ("The connection with the remote server was shut down. Please check the
state of your network connection.").
The first error message is weird, but explainable by the fact that the proxy was
not quick enough to connect in the first place (or something like this).

Right now, you have two options: wait for a new nx-libs release (as said,
unspecified time) or switch to the nightly/heuler repository that contains a fix
for this issue... and switch back to the stable version once the new version has
been properly released.



Mihai
Manfred Amoureux
2018-03-15 14:54:47 UTC
Permalink
Ok.

Now that you have attracted my attention this git request ( *nxagent
crashes when moving the session window into another screen* ), it actually
looked more like a client-side issue,
so I tested again from another computer (with Windows 7 and a single
screen) and while at the first attempt the connection failed with a message
that let me think it was because there was an open connection on the server
with this user, after a reboot from the server machine, the connection now
works from this computer.

So I guess it really is a client problem now.
I am first going to to try uninstalling and reinstalling x2go client from
my computer.


Manfred Amoureux
Tel: (+33)6.800.343.16
Post by Manfred Amoureux
Post by Manfred Amoureux
I recorded a screen capture while trying to start a connection from
another
Post by Manfred Amoureux
computer. See the link below.
As you can see, it seems the connection gets opened but the window
crashes
Post by Manfred Amoureux
immediately. I have tried from several computers (including one with
Windows) so
Post by Manfred Amoureux
I don't think it's a problem on the client side.
Classic pattern of https://github.com/ArcticaProject/nx-libs/issues/677
Will be fixed with the next nx-libs release, but I cannot tell when that will
be. Ideally I'd like to see more xinerama changes/fixes to make it worthwhile.
Post by Manfred Amoureux
I have attached an extract of the /var/log/syslog file these last
minutes. I see
Post by Manfred Amoureux
nothing that looks like an error to me. Obviously, you should be able to
interpret it better than me.
I have also restarted x2go (/sudo systemctl stop x2goserver.service/ and
then
Post by Manfred Amoureux
/sudo systemctl start x2goserver.service/ ) after changing the
/etc/x2go/x2goserver.conf file with logging to /debug/. That is the
second text
Post by Manfred Amoureux
file attached.
Mar 15 14:51:15 ServeurITeN /usr/bin/x2gostartagent: successfully
started X2Go
Post by Manfred Amoureux
Agent session with ID manfred-50-1521121872_stDXFCE_dp24
Which means, I guess, the session was properly started.
Well, that message is an euphemism. We launched the binary, but everything that
happens after that is unknown since we immediately put the process into
background. But yeah, having it spawned nxagent is good.
Post by Manfred Amoureux
Mar 15 14:51:22 ServeurITeN x2gogetstatus: db_getstatus called, session
manfred-50-1521121872_stDXFCE_dp24: removed from database, not updating
status.
Post by Manfred Amoureux
manfred-50-1521121872_stDXFCE_dp24: in failed state, but agent is gone,
forgetting.
Post by Manfred Amoureux
Is that some kind of failure ?
That indicates that x2goagent/nxagent died after starting up.
Post by Manfred Amoureux
It is also interesting to see that when I issue a /who/ command with the
Linux
Post by Manfred Amoureux
Terminal , there is one extra session under my login.
Yup, X2Go uses SSH connections for everything.
Post by Manfred Amoureux
So I tried opening a x2go session with another login, which also failed
but with
Post by Manfred Amoureux
a different error message : "/Failed to start X2Go Agent session with ID
formation-50-1521122343_stDXFCE_dp24. X2Go Agent terminated
unexpectedly.
Post by Manfred Amoureux
Aborting session startup./" I then restarted the x2goserver.service
again and
Post by Manfred Amoureux
tried again with the other user account and got the same error as for
the first
Post by Manfred Amoureux
user ("The connection with the remote server was shut down. Please check
the
Post by Manfred Amoureux
state of your network connection.").
The first error message is weird, but explainable by the fact that the proxy was
not quick enough to connect in the first place (or something like this).
Right now, you have two options: wait for a new nx-libs release (as said,
unspecified time) or switch to the nightly/heuler repository that contains a fix
for this issue... and switch back to the stable version once the new version has
been properly released.
Mihai
Ulrich Sibiller
2018-03-15 14:55:16 UTC
Permalink
You can find the nxagent log in ~/.x2go/C-.../session.log. maybe that
contains some hints.

Uli
Post by Manfred Amoureux
Post by Manfred Amoureux
I recorded a screen capture while trying to start a connection from
another
Post by Manfred Amoureux
computer. See the link below.
As you can see, it seems the connection gets opened but the window
crashes
Post by Manfred Amoureux
immediately. I have tried from several computers (including one with
Windows) so
Post by Manfred Amoureux
I don't think it's a problem on the client side.
Classic pattern of https://github.com/ArcticaProject/nx-libs/issues/677
Will be fixed with the next nx-libs release, but I cannot tell when that will
be. Ideally I'd like to see more xinerama changes/fixes to make it worthwhile.
Post by Manfred Amoureux
I have attached an extract of the /var/log/syslog file these last
minutes. I see
Post by Manfred Amoureux
nothing that looks like an error to me. Obviously, you should be able to
interpret it better than me.
I have also restarted x2go (/sudo systemctl stop x2goserver.service/ and
then
Post by Manfred Amoureux
/sudo systemctl start x2goserver.service/ ) after changing the
/etc/x2go/x2goserver.conf file with logging to /debug/. That is the
second text
Post by Manfred Amoureux
file attached.
Mar 15 14:51:15 ServeurITeN /usr/bin/x2gostartagent: successfully
started X2Go
Post by Manfred Amoureux
Agent session with ID manfred-50-1521121872_stDXFCE_dp24
Which means, I guess, the session was properly started.
Well, that message is an euphemism. We launched the binary, but everything that
happens after that is unknown since we immediately put the process into
background. But yeah, having it spawned nxagent is good.
Post by Manfred Amoureux
Mar 15 14:51:22 ServeurITeN x2gogetstatus: db_getstatus called, session
manfred-50-1521121872_stDXFCE_dp24: removed from database, not updating
status.
Post by Manfred Amoureux
manfred-50-1521121872_stDXFCE_dp24: in failed state, but agent is gone,
forgetting.
Post by Manfred Amoureux
Is that some kind of failure ?
That indicates that x2goagent/nxagent died after starting up.
Post by Manfred Amoureux
It is also interesting to see that when I issue a /who/ command with the
Linux
Post by Manfred Amoureux
Terminal , there is one extra session under my login.
Yup, X2Go uses SSH connections for everything.
Post by Manfred Amoureux
So I tried opening a x2go session with another login, which also failed
but with
Post by Manfred Amoureux
a different error message : "/Failed to start X2Go Agent session with ID
formation-50-1521122343_stDXFCE_dp24. X2Go Agent terminated unexpectedly.
Aborting session startup./" I then restarted the x2goserver.service
again and
Post by Manfred Amoureux
tried again with the other user account and got the same error as for
the first
Post by Manfred Amoureux
user ("The connection with the remote server was shut down. Please check
the
Post by Manfred Amoureux
state of your network connection.").
The first error message is weird, but explainable by the fact that the proxy was
not quick enough to connect in the first place (or something like this).
Right now, you have two options: wait for a new nx-libs release (as said,
unspecified time) or switch to the nightly/heuler repository that contains a fix
for this issue... and switch back to the stable version once the new version has
been properly released.
Mihai
_______________________________________________
x2go-dev mailing list
https://lists.x2go.org/listinfo/x2go-dev
Loading...