Re: [X2Go-User] Broker and resuming sessions

2018-11-01 Thread David Barron
Stefan,
Did you get the log I sent yesterday?

Thanks

David Barron
Zencos Consulting LLC
david.bar...@zencos.com
919-480-2761 (office)
919-995-2356 (mobile)

___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Broker and resuming sessions

2018-10-31 Thread David Barron
My answers are below

David Barron
Zencos Consulting LLC
david.bar...@zencos.com
919-480-2761 (office)
919-995-2356 (mobile)

-Original Message-
From: Stefan Baur  
Sent: Wednesday, October 31, 2018 3:40 PM
To: David Barron ; x2go-user@lists.x2go.org
Subject: Re: [X2Go-User] Broker and resuming sessions

Am 31.10.18 um 20:16 schrieb David Barron:
> Stefan,
> I've made a few discoveries since I sent the email.  
> 
> First, I was not aware that x2golistsessions only shows the sessions for the 
> person running it.  When I run it as me I do see my suspended sessions, so 
> that's good.

If you want an overview over all sessions on the server, then run:

x2golistsessions_root

(as the name indicates, this requires a root account)


> Second all the X2GoServers are using the same session database.  PostgreSQL 
> is running on the login server and the 3 servers where the applications run 
> all access the same data.
> 
> And the home directories are shared between all the servers.
> 
> Still, even though the sessions as suspended they are not being started.  To 
> be sure, I've cleaned them all out using x2goterminatesession, then started a 
> new session and suspended it.  But when I try to execute the same session I 
> am getting a new one, not the suspended one.

Are you seeing the suspended session as well as the running one in the session 
list?
Yes, I see the suspended and the running.


> Any other thoughts?

Yes, is the problem also present when you try to use the broker via SSH instead 
of HTTP?
I don't know, I've never been able to figure out how to use ssh.  The 
documentation on that is sparse.

Did you run x2gobroker-keygen on the broker server?
Yes.  Should I run it again?

Did you invoke x2go-pubkeyauthorizer with the proper parameters on all required 
machines?  If so, you should have the same authorized_keys file in 
/var/lib/x2gobroker/.ssh/ on the three servers as well as on the broker.
Yes. Should I run it again?  Again, the documentation is sparse, so what 
parameters would I use?

Have you added the users via
x2godbadmin --adduser USERNAME_GOES_HERE
Yes

-Stefan

--
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 
34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Broker and resuming sessions

2018-10-31 Thread David Barron
My one true talent is finding the weird problems that have no explanation.

David Barron
Zencos Consulting LLC
david.bar...@zencos.com
919-480-2761 (office)
919-995-2356 (mobile)

-Original Message-
From: Stefan Baur  
Sent: Wednesday, October 31, 2018 4:23 PM
To: David Barron ; x2go-user@lists.x2go.org
Subject: Re: [X2Go-User] Broker and resuming sessions

Am 31.10.18 um 21:10 schrieb David Barron:


> Yes, is the problem also present when you try to use the broker via SSH 
> instead of HTTP?
> I don't know, I've never been able to figure out how to use ssh.  The 
> documentation on that is sparse.

That's why we have the Demo environment install scripts, where you get a fully 
configured setup from which you can copy settings/configs.

E.g.
<https://wiki.x2go.org/doku.php/doc:howto:x2gobroker?do=export_code=9>
creates two desktop entries on the demo client, one for the HTTP, one for the 
SSH broker access.
See the section below
"COMMENT: This last step creates an X2GoClient-in-Broker-Mode desktop entry"

As you can tell from there, the ssh broker URL would be something like 
ssh://x2gobroker1.x2go.example.com:/usr/bin/x2gobroker-ssh
In this case it's ssh://:22/bin/x2gobroker
Using that I can log in but I'm seeing the same behavior


> Did you run x2gobroker-keygen on the broker server?
> Yes.  Should I run it again?

At the moment, it doesn't sound like you should.


> Did you invoke x2go-pubkeyauthorizer with the proper parameters on all 
> required machines?  If so, you should have the same authorized_keys file in 
> /var/lib/x2gobroker/.ssh/ on the three servers as well as on the broker.
> Yes.

Did you compare the content of the files, or merely verify their existence?


> Should I run it again?  Again, the documentation is sparse, so what 
> parameters would I use?
If the files all have the identical content, no.

If they differ, copy /var/lib/x2gobroker/.ssh/authorized_keys from the broker 
to the three X2Go servers, that should keep you from having to re-run the 
command.

Also, please run

x2goclient --debug >x2goclientlog 2>&1

when you try to connect to the suspended session.

Make sure x2goclientlog doesn't contain any information you don't want us to 
see (i.e. if necessary, replace IPs with dummy IPs, same goes for usernames and 
passwords that might show up - though passwords shouldn't be visible there), 
then post the content of the file here.

The x2go client is running on windows so this won't work.  I tried installing 
it on the linux servers but the yum command complained about missing libraries 
(again) and I gave up on it.
I ran x2goclient.debug with the --broker-url and got this output

C:\Users\dbarron>cd "C:\Program Files (x86)\x2goclient"

C:\Program Files (x86)\x2goclient>x2goclient.debug --broker-url=http://agmrkgrid
login3:8080/plain/inifile
x2go-INFO-1> "Starting X2Go Client..."
x2go-WARNING-1> "English language requested, not loading translator."
x2go-WARNING-1> "English language requested, not loading translator."
x2go-INFO-3> "Started X2Go Client."
x2go-INFO-8> "Starting connection to server: agmrkgridcomp7:22"
Generating public/private rsa key pair.
Your identification has been saved in C:/Users/dbarron/.x2go/ssh/gen/key.l12912.

Your public key has been saved in C:/Users/dbarron/.x2go/ssh/gen/key.l12912.pub.

The key fingerprint is:
SHA256:D7E8eEDuG1HAPI2skjGuLMM/X9y1rVFOW0q3HBScDZc X2Go Client RSA user key
The key's randomart image is:
+---[RSA 4096]+
| +o+. oo=|
|  o  o*..  Eo|
| . + .+..  . |
|  + .. = o.  |
|o. .  + S  . + + |
|+o.+.+. B * o|
|...   .o ..o = o |
|   o  . o|
|o. . |
+[SHA256]-+
QProcess: Destroyed while process is still running.


-Stefan

--
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 
34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Broker and resuming sessions

2018-10-31 Thread David Barron
My apologies for the broken quoting, I'm hindered by Outlook.


Let's not worry about the yum install of x2goclient failing, that's an issue 
for another day.


I'm attaching the log.




x2goclient.log
Description: x2goclient.log
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Broker and resuming sessions

2018-10-31 Thread David Barron

I just realized, on the login server there is no authorized_keys file in 
/var/lib/x2gobroker/.ssh, but it is on all 3 of the application servers.


David Barron
Zencos Consulting LLC
david.bar...@zencos.com
919-480-2761 (office)
919-995-2356 (mobile)

-Original Message-
From: Stefan Baur  
Sent: Wednesday, October 31, 2018 4:23 PM
To: David Barron ; x2go-user@lists.x2go.org
Subject: Re: [X2Go-User] Broker and resuming sessions

Am 31.10.18 um 21:10 schrieb David Barron:


> Yes, is the problem also present when you try to use the broker via SSH 
> instead of HTTP?
> I don't know, I've never been able to figure out how to use ssh.  The 
> documentation on that is sparse.

That's why we have the Demo environment install scripts, where you get a fully 
configured setup from which you can copy settings/configs.

E.g.
<https://wiki.x2go.org/doku.php/doc:howto:x2gobroker?do=export_code=9>
creates two desktop entries on the demo client, one for the HTTP, one for the 
SSH broker access.
See the section below
"COMMENT: This last step creates an X2GoClient-in-Broker-Mode desktop entry"

As you can tell from there, the ssh broker URL would be something like 
ssh://x2gobroker1.x2go.example.com:/usr/bin/x2gobroker-ssh


> Did you run x2gobroker-keygen on the broker server?
> Yes.  Should I run it again?

At the moment, it doesn't sound like you should.


> Did you invoke x2go-pubkeyauthorizer with the proper parameters on all 
> required machines?  If so, you should have the same authorized_keys file in 
> /var/lib/x2gobroker/.ssh/ on the three servers as well as on the broker.
> Yes.

Did you compare the content of the files, or merely verify their existence?


> Should I run it again?  Again, the documentation is sparse, so what 
> parameters would I use?
If the files all have the identical content, no.

If they differ, copy /var/lib/x2gobroker/.ssh/authorized_keys from the broker 
to the three X2Go servers, that should keep you from having to re-run the 
command.

Also, please run

x2goclient --debug >x2goclientlog 2>&1

when you try to connect to the suspended session.

Make sure x2goclientlog doesn't contain any information you don't want us to 
see (i.e. if necessary, replace IPs with dummy IPs, same goes for usernames and 
passwords that might show up - though passwords shouldn't be visible there), 
then post the content of the file here.

-Stefan

--
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 
34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Broker and resuming sessions

2018-10-31 Thread Stefan Baur
Am 31.10.18 um 21:10 schrieb David Barron:


> Yes, is the problem also present when you try to use the broker via SSH 
> instead of HTTP?
> I don't know, I've never been able to figure out how to use ssh.  The 
> documentation on that is sparse.

That's why we have the Demo environment install scripts, where you get a
fully configured setup from which you can copy settings/configs.

E.g.

creates two desktop entries on the demo client, one for the HTTP, one
for the SSH broker access.
See the section below
"COMMENT: This last step creates an X2GoClient-in-Broker-Mode desktop entry"

As you can tell from there, the ssh broker URL would be something like
ssh://x2gobroker1.x2go.example.com:/usr/bin/x2gobroker-ssh


> Did you run x2gobroker-keygen on the broker server?
> Yes.  Should I run it again?

At the moment, it doesn't sound like you should.


> Did you invoke x2go-pubkeyauthorizer with the proper parameters on all 
> required machines?  If so, you should have the same authorized_keys file in 
> /var/lib/x2gobroker/.ssh/ on the three servers as well as on the broker.
> Yes.

Did you compare the content of the files, or merely verify their existence?


> Should I run it again?  Again, the documentation is sparse, so what 
> parameters would I use?
If the files all have the identical content, no.

If they differ, copy /var/lib/x2gobroker/.ssh/authorized_keys from the
broker to the three X2Go servers, that should keep you from having to
re-run the command.

Also, please run

x2goclient --debug >x2goclientlog 2>&1

when you try to connect to the suspended session.

Make sure x2goclientlog doesn't contain any information you don't want
us to see (i.e. if necessary, replace IPs with dummy IPs, same goes for
usernames and passwords that might show up - though passwords shouldn't
be visible there), then post the content of the file here.

-Stefan

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Broker and resuming sessions

2018-10-31 Thread Stefan Baur
David,

Please fix your quoting and reply to the list only.  Having to manually
fix your broken quoting each time I'm replying to you is a PITA.

Am 31.10.18 um 21:41 schrieb David Barron:
>> Also, please run
>> 
>> x2goclient --debug >x2goclientlog 2>&1
>> 
>> when you try to connect to the suspended session.
>> 
>> Make sure x2goclientlog doesn't contain any information you don't want us to 
>> see (i.e. if necessary, replace IPs with dummy IPs, same goes for usernames 
>> and passwords that might show up - though passwords shouldn't be visible 
>> there), then post the content of the file here.


> The x2go client is running on windows so this won't work.

Yes, it will.  However, you need to specify that you want to use the
debug executable *and* specify the --debug parameter.

So:

x2goclient.debug.exe --debug >x2goclientlog 2>&1


> I tried installing it on the linux servers but the yum command complained 
> about missing libraries (again) and I gave up on it.

Which repository are you using and which Linux Distribution/Version are
you on?


> I ran x2goclient.debug with the --broker-url and got this output
> 
> C:\Users\dbarron>cd "C:\Program Files (x86)\x2goclient"
> 
> C:\Program Files (x86)\x2goclient>x2goclient.debug 
> --broker-url=http://agmrkgrid
> login3:8080/plain/inifile

If you have the x2goclient.debug.exe installed, then why did you drop
the --debug from the call? Please re-run as described above.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Broker and resuming sessions

2018-10-31 Thread David Barron
Stefan,
I've made a few discoveries since I sent the email.  

First, I was not aware that x2golistsessions only shows the sessions for the 
person running it.  When I run it as me I do see my suspended sessions, so 
that's good.

Second all the X2GoServers are using the same session database.  PostgreSQL is 
running on the login server and the 3 servers where the applications run all 
access the same data.

And the home directories are shared between all the servers.

Still, even though the sessions as suspended they are not being started.  To be 
sure, I've cleaned them all out using x2goterminatesession, then started a new 
session and suspended it.  But when I try to execute the same session I am 
getting a new one, not the suspended one.

Any other thoughts?

David Barron
Zencos Consulting LLC
david.bar...@zencos.com
919-480-2761 (office)
919-995-2356 (mobile)

-Original Message-
From: x2go-user  On Behalf Of Stefan Baur
Sent: Wednesday, October 31, 2018 2:45 PM
To: x2go-user@lists.x2go.org
Subject: Re: [X2Go-User] Broker and resuming sessions

David,

If you're using the official, python-based X2Go Broker and are seeing this 
issue, it would point to a problem with your session database setup.
You need to set up all X2GoServers to share the same session database (using 
postgres, rather than SQLite) - preferably on a dedicated postgres server that 
has some kind of failover mechanism.
x2golistsessions --all-servers should show your session if your setup is 
working properly.

Also, make sure all the X2GoServers share the same home directories.

Feel free to set up a demo cluster using our instructions here 
<https://wiki.x2go.org/doku.php/doc:howto:x2gobroker> and compare the 
behavior/result.

And, of course, there is always the option to pay for commercial support and 
have someone knowledgeable "look over your shoulder" via a shared SSH session - 
you can find a list of support companies here:
<https://wiki.x2go.org/doku.php/doc:professional-support>

Kind Regards,
Stefan Baur

Am 31.10.18 um 17:42 schrieb David Barron:
> First a little explanation of the architecture.
> The login server load balances sessions between 3 servers where the actual 
> applications run.  That part is working fine.
> The problem is when I suspend a session instead of ending it.  My 
> understanding was that if I chose the same session profile it would resume my 
> application at the same point.  That's not what I'm seeing.
> First, when I run x2golistsessions it does not show my currently running 
> session.  Then if I suspend the session I still don't see it listed.  I've 
> checked it on all three of the servers.
> Then when I run the same session it is starting a new one rather than 
> resuming.  Well, I guess it can't do anything else since my session isn't 
> stored.
> Can I suspend a session in this kind of environment?  The documentation seems 
> to say I can.  Is there something special I have to do in the client to get 
> it working?
> Currently the only command line option I am using with the client is 
> -broker-url=http://:8080/plain/inifile
> Should I use something else?

Kind Regards,
Stefan Baur

--
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 
34 66-36/-35 | USt-IdNr.: DE268653243 
___
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

Re: [X2Go-User] Broker and resuming sessions

2018-10-31 Thread Stefan Baur
Am 31.10.18 um 20:16 schrieb David Barron:
> Stefan,
> I've made a few discoveries since I sent the email.  
> 
> First, I was not aware that x2golistsessions only shows the sessions for the 
> person running it.  When I run it as me I do see my suspended sessions, so 
> that's good.

If you want an overview over all sessions on the server, then run:

x2golistsessions_root

(as the name indicates, this requires a root account)


> Second all the X2GoServers are using the same session database.  PostgreSQL 
> is running on the login server and the 3 servers where the applications run 
> all access the same data.
> 
> And the home directories are shared between all the servers.
> 
> Still, even though the sessions as suspended they are not being started.  To 
> be sure, I've cleaned them all out using x2goterminatesession, then started a 
> new session and suspended it.  But when I try to execute the same session I 
> am getting a new one, not the suspended one.

Are you seeing the suspended session as well as the running one in the
session list?


> Any other thoughts?

Yes, is the problem also present when you try to use the broker via SSH
instead of HTTP?

Did you run x2gobroker-keygen on the broker server?

Did you invoke x2go-pubkeyauthorizer with the proper parameters on all
required machines?  If so, you should have the same authorized_keys file
in /var/lib/x2gobroker/.ssh/ on the three servers as well as on the broker.

Have you added the users via
x2godbadmin --adduser USERNAME_GOES_HERE

-Stefan

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Broker and resuming sessions

2018-10-31 Thread Stefan Baur
David,

If you're using the official, python-based X2Go Broker and are seeing
this issue, it would point to a problem with your session database setup.
You need to set up all X2GoServers to share the same session database
(using postgres, rather than SQLite) - preferably on a dedicated
postgres server that has some kind of failover mechanism.
x2golistsessions --all-servers should show your session if your setup is
working properly.

Also, make sure all the X2GoServers share the same home directories.

Feel free to set up a demo cluster using our instructions here
 and compare the
behavior/result.

And, of course, there is always the option to pay for commercial support
and have someone knowledgeable "look over your shoulder" via a shared
SSH session - you can find a list of support companies here:


Kind Regards,
Stefan Baur

Am 31.10.18 um 17:42 schrieb David Barron:
> First a little explanation of the architecture.
> The login server load balances sessions between 3 servers where the actual 
> applications run.  That part is working fine.
> The problem is when I suspend a session instead of ending it.  My 
> understanding was that if I chose the same session profile it would resume my 
> application at the same point.  That's not what I'm seeing.
> First, when I run x2golistsessions it does not show my currently running 
> session.  Then if I suspend the session I still don't see it listed.  I've 
> checked it on all three of the servers.
> Then when I run the same session it is starting a new one rather than 
> resuming.  Well, I guess it can't do anything else since my session isn't 
> stored.
> Can I suspend a session in this kind of environment?  The documentation seems 
> to say I can.  Is there something special I have to do in the client to get 
> it working?
> Currently the only command line option I am using with the client is 
> -broker-url=http://:8080/plain/inifile
> Should I use something else?

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user