Me again...sorry!
I've installed the WSGI implementation of the session broker, and configured the broker to run in text/plain and inifile configuration. When I try and hit the broker from a web browser(https://localhost:443/plain/inifile/)
I get Error 405: Method Not Allowed.
Any ideas where I can start looking? I'd love to have this working on a basic level to present on Monday, but so far I've hit this wall twice.
Kermit Short DCS-5
On Fr 01 Nov 2013 23:28:00 CET, Short, Kermit wrote:
Me again...sorry!
I've installed the WSGI implementation of the session broker, and configured the broker to run in text/plain and inifile configuration. When I try and hit the broker from a web browser(https://localhost:443/plain/inifile/)
I get Error 405: Method Not Allowed.
Any ideas where I can start looking? I'd love to have this working on a basic level to present on Monday, but so far I've hit this wall twice.
Thanks!!
Enable X2GOBROKER_DEBUG in the wsgi config. The X2Go Client does those
queries with POST requests. If you enter that URL into your browser,
the browser does a GET request. GET requests are only enabled in
X2GOBROKER_DEBUG=1 mode.
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Wow, thanks Mike! Not only did I find the debug variable, I found a bunch of others that needed attention. I apologize for not reading the commented sections more carefully. I'd tried this before with the standalone daemon and I actually set the environment variable that time. I totally spaced it out here. I got the simple but amazingly rewarding 'Access Granted' and now I will start building the session configuration list and testing with the client.
Thank you!!! -Kermit
From: x2go-user-bounces@lists.berlios.de [x2go-user-bounces@lists.berlios.de] on behalf of Mike Gabriel [mike.gabriel@das-netzwerkteam.de] Sent: Friday, November 01, 2013 5:45 PM To: x2go-user@lists.berlios.de Subject: Re: [X2Go-User] testing session broker in WSGI/plain/inifile configuration
On Fr 01 Nov 2013 23:28:00 CET, Short, Kermit wrote:
Me again...sorry!
I've installed the WSGI implementation of the session broker, and configured the broker to run in text/plain and inifile configuration. When I try and hit the broker from a web browser(https://localhost:443/plain/inifile/)
I get Error 405: Method Not Allowed.
Any ideas where I can start looking? I'd love to have this working on a basic level to present on Monday, but so far I've hit this wall twice.
Thanks!!
Enable X2GOBROKER_DEBUG in the wsgi config. The X2Go Client does those queries with POST requests. If you enter that URL into your browser, the browser does a GET request. GET requests are only enabled in X2GOBROKER_DEBUG=1 mode.
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
OK made a bit of progress. I've got the session profile defined in the config file, and I'm getting the x2go client to communicate with the session broker. It seems though, that things are breaking when the session broker tries to communicate with the broker agent.
I get an internal server error console message on the terminal where I'm trying to launch x2goclient. When I look in the apache logs, I see the following error from the virtual host for the wsgi session broker:
<VirtualHost *:443> ServerName broker.lanl.gov [Fri Nov 01 11:12:51 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming no[Sat Nov 02 00:48:11 2013] [error] *************************************************************************** [Sat Nov 02 00:48:11 2013] [error] [Sat Nov 02 00:48:11 2013] [error] [Sat Nov 02 00:48:11 2013] [error] Authentication (publickey) successful! [Sat Nov 02 00:48:11 2013] [error] [chan 1] Max packet in: 34816 bytes [Sat Nov 02 00:48:11 2013] [error] [chan 1] Max packet out: 32768 bytes [Sat Nov 02 00:48:11 2013] [error] Secsh channel 1 opened. [Sat Nov 02 00:48:11 2013] [error] [chan 1] Sesch channel 1 request ok [Sat Nov 02 00:48:11 2013] [error] [chan 1] EOF received (1) [Sat Nov 02 00:48:11 2013] [error] Uncaught exception POST /plain/inifile (xxx.xxx.xxx.xxx) [Sat Nov 02 00:48:11 2013] [error] <tornado.wsgi.HTTPRequest object at 0x7fc8c0927dd0> [Sat Nov 02 00:48:11 2013] [error] Traceback (most recent call last): [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 954, in _execute [Sat Nov 02 00:48:11 2013] [error] getattr(self, self.request.method.lower())(*args, **kwargs) [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/x2gobroker/web/plain.py", line 136, in post [Sat Nov 02 00:48:11 2013] [error] profiles = broker_backend.list_profiles(username) [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/x2gobroker/brokers/base_broker.py", line 862, in list_profiles [Sat Nov 02 00:48:11 2013] [error] running_sessions, suspended_sessions = x2gobroker.agent.has_sessions(username, query_mode=agent_query_mode, remote_agent=remote_agent) [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/x2gobroker/agent.py", line 230, in has_sessions [Sat Nov 02 00:48:11 2013] [error] return ([ s.split('|')[3] for s in _session_list if s.split('|')[4] == 'R' ], [ s.split('|')[3] for s in _session_list if s.split('|')[4] == 'S' ]) [Sat Nov 02 00:48:11 2013] [error] TypeError: 'NoneType' object is not iterable
Do I have to actually modify something in the broker agent's configuration? What might I have done wrong in a configuration file on the session broker server?
Thanks!!! -Kermit
From: x2go-user-bounces@lists.berlios.de [x2go-user-bounces@lists.berlios.de] on behalf of Mike Gabriel [mike.gabriel@das-netzwerkteam.de] Sent: Friday, November 01, 2013 5:45 PM To: x2go-user@lists.berlios.de Subject: Re: [X2Go-User] testing session broker in WSGI/plain/inifile configuration
On Fr 01 Nov 2013 23:28:00 CET, Short, Kermit wrote:
Me again...sorry!
I've installed the WSGI implementation of the session broker, and configured the broker to run in text/plain and inifile configuration. When I try and hit the broker from a web browser(https://localhost:443/plain/inifile/)
I get Error 405: Method Not Allowed.
Any ideas where I can start looking? I'd love to have this working on a basic level to present on Monday, but so far I've hit this wall twice.
Thanks!!
Enable X2GOBROKER_DEBUG in the wsgi config. The X2Go Client does those queries with POST requests. If you enter that URL into your browser, the browser does a GET request. GET requests are only enabled in X2GOBROKER_DEBUG=1 mode.
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Kermit
----- Original message -----
OK made a bit of progress. I've got the session profile defined in the config file, and I'm getting the x2go client to communicate with the session broker. It seems though, that things are breaking when the session broker tries to communicate with the broker agent.
I get an internal server error console message on the terminal where I'm trying to launch x2goclient. When I look in the apache logs, I see the following error from the virtual host for the wsgi session broker:
<VirtualHost *:443> ServerName broker.lanl.gov [Fri Nov 01 11:12:51 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming no[Sat Nov 02 00:48:11 2013] [error]
[Sat Nov 02 00:48:11 2013] [error] [Sat Nov 02 00:48:11 2013] [error] [Sat Nov 02 00:48:11 2013] [error] Authentication (publickey) successful! [Sat Nov 02 00:48:11 2013] [error] [chan 1] Max packet in: 34816 bytes [Sat Nov 02 00:48:11 2013] [error] [chan 1] Max packet out: 32768 bytes [Sat Nov 02 00:48:11 2013] [error] Secsh channel 1 opened. [Sat Nov 02 00:48:11 2013] [error] [chan 1] Sesch channel 1 request ok [Sat Nov 02 00:48:11 2013] [error] [chan 1] EOF received (1) [Sat Nov 02 00:48:11 2013] [error] Uncaught exception POST /plain/inifile (xxx.xxx.xxx.xxx) [Sat Nov 02 00:48:11 2013] [error] <tornado.wsgi.HTTPRequest object at 0x7fc8c0927dd0> [Sat Nov 02 00:48:11 2013] [error] Traceback (most recent call last): [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 954, in _execute [Sat Nov 02 00:48:11 2013] [error]
getattr(self, self.request.method.lower())(*args, **kwargs) [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/x2gobroker/web/plain.py", line 136, in post [Sat Nov 02 00:48:11 2013] [error] profiles = broker_backend.list_profiles(username) [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/x2gobroker/brokers/base_broker.py", line 862, in list_profiles [Sat Nov 02 00:48:11 2013] [error]
running_sessions, suspended_sessions = x2gobroker.agent.has_sessions(username, query_mode=agent_query_mode, remote_agent=remote_agent) [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/x2gobroker/agent.py", line 230, in has_sessions [Sat Nov 02 00:48:11 2013] [error] return ([ s.split('|')[3] for s in _session_list if s.split('|')[4] == 'R' ], [ s.split('|')[3] for s in _session_list if s.split('|')[4] == 'S' ]) [Sat Nov 02 00:48:11 2013] [error] TypeError: 'NoneType' object is not iterableDo I have to actually modify something in the broker agent's configuration? What might I have done wrong in a configuration file on the session broker server?
Thanks!!! -Kermit
I really have to release 0.0.3.0 which is currently in x2gobroker.git master branch and in our nightly builds.
Please use that version (which still is a development snapshot and a preview, but in terms of the agent more robust).
Mike
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976148
GnuPG Key ID 0x25771B13 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
Thanks Mike! That brings up a few questions for me, though. I'm at home, and don't have to contend with the firewalls on the workplace networks, but I can never seem to clone any of the source repos. More than likely, I'm doing something wrong with the git command, but whenever I try to clone through our (mandatory) http proxy, the clone command just sits there for about 5 minutes, and then errors out.
I just tried to clone the x2gobroker.git project (at home) as follows: git clone http://git.x2go.org/projects x2gobroker.git or subsequently: git clone http://git.x2go.org x2gobroker.git
and I get the following error (from either repository path): Initialized empty Git repository in /lclhome/k_short/work/x2gobroker.git/.git/ warning: remote HEAD refers to nonexistent ref, unable to checkout.
If you can help me remove the idiot factor with my clone attempts, I'd appreciate it!
Once I do manage to get a clone of the source, should I be uninstalling the existing x2gobroker-* packages installed on my session broker server? How would I then go about installing the binaries after configure/make/make install from source? Can I leave at least something that I've done or do I blow it all away and start over with nightly build codes?
From: Mike Gabriel [mike.gabriel@das-netzwerkteam.de] Sent: Saturday, November 02, 2013 2:23 AM To: Short, Kermit; x2go-user@lists.berlios.de Subject: RE: [X2Go-User] testing session broker in WSGI/plain/inifile configuration
Hi Kermit
----- Original message -----
OK made a bit of progress. I've got the session profile defined in the config file, and I'm getting the x2go client to communicate with the session broker. It seems though, that things are breaking when the session broker tries to communicate with the broker agent.
I get an internal server error console message on the terminal where I'm trying to launch x2goclient. When I look in the apache logs, I see the following error from the virtual host for the wsgi session broker:
<VirtualHost *:443> ServerName broker.lanl.gov [Fri Nov 01 11:12:51 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming no[Sat Nov 02 00:48:11 2013] [error]
[Sat Nov 02 00:48:11 2013] [error] [Sat Nov 02 00:48:11 2013] [error] [Sat Nov 02 00:48:11 2013] [error] Authentication (publickey) successful! [Sat Nov 02 00:48:11 2013] [error] [chan 1] Max packet in: 34816 bytes [Sat Nov 02 00:48:11 2013] [error] [chan 1] Max packet out: 32768 bytes [Sat Nov 02 00:48:11 2013] [error] Secsh channel 1 opened. [Sat Nov 02 00:48:11 2013] [error] [chan 1] Sesch channel 1 request ok [Sat Nov 02 00:48:11 2013] [error] [chan 1] EOF received (1) [Sat Nov 02 00:48:11 2013] [error] Uncaught exception POST /plain/inifile (xxx.xxx.xxx.xxx) [Sat Nov 02 00:48:11 2013] [error] <tornado.wsgi.HTTPRequest object at 0x7fc8c0927dd0> [Sat Nov 02 00:48:11 2013] [error] Traceback (most recent call last): [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 954, in _execute [Sat Nov 02 00:48:11 2013] [error] getattr(self, self.request.method.lower())(*args, **kwargs) [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/x2gobroker/web/plain.py", line 136, in post [Sat Nov 02 00:48:11 2013] [error] profiles = broker_backend.list_profiles(username) [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/x2gobroker/brokers/base_broker.py", line 862, in list_profiles [Sat Nov 02 00:48:11 2013] [error] running_sessions, suspended_sessions = x2gobroker.agent.has_sessions(username, query_mode=agent_query_mode, remote_agent=remote_agent) [Sat Nov 02 00:48:11 2013] [error] File "/usr/lib/python2.7/dist-packages/x2gobroker/agent.py", line 230, in has_sessions [Sat Nov 02 00:48:11 2013] [error] return ([ s.split('|')[3] for s in _session_list if s.split('|')[4] == 'R' ], [ s.split('|')[3] for s in _session_list if s.split('|')[4] == 'S' ]) [Sat Nov 02 00:48:11 2013] [error] TypeError: 'NoneType' object is not iterable
Do I have to actually modify something in the broker agent's configuration? What might I have done wrong in a configuration file on the session broker server?
Thanks!!! -Kermit
I really have to release 0.0.3.0 which is currently in x2gobroker.git master branch and in our nightly builds.
Please use that version (which still is a development snapshot and a preview, but in terms of the agent more robust).
Mike
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976148
GnuPG Key ID 0x25771B13 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
Hi Kermit,
On Sa 02 Nov 2013 22:14:01 CET, Short, Kermit wrote:
Thanks Mike! That brings up a few questions for me, though. I'm at
home, and don't have to contend with the firewalls on the workplace
networks, but I can never seem to clone any of the source repos.
More than likely, I'm doing something wrong with the git command,
but whenever I try to clone through our (mandatory) http proxy, the
clone command just sits there for about 5 minutes, and then errors
out.I just tried to clone the x2gobroker.git project (at home) as follows: git clone http://git.x2go.org/projects x2gobroker.git or subsequently: git clone http://git.x2go.org x2gobroker.git
This is probably, because you URL is wrong. Try this one instead:
git clone http://code.x2go.org/git/x2gobroker.git
Once I do manage to get a clone of the source, should I be
uninstalling the existing x2gobroker-* packages installed on my
session broker server? How would I then go about installing the
binaries after configure/make/make install from source? Can I leave
at least something that I've done or do I blow it all away and start
over with nightly build codes?
The broker .deb package is well maintained in upstream code. In
theory, it should work to run make && sudo make install. If you
install the broker that way, the broker codes gets installed to
/usr/local. Note: there is no configure script in x2gobroker.
As you are on an RPM based system, I cannot be of great help with more
than the above. (/me only knows how to maintain DEB based systems).
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Thanks Mike! The testbed I'm working with right now is Ubuntu 12.04 LTS (64 bit). I'm getting all the deb files from the x2go ppa, so whatever version is out there is what I'm running with.
I guess my question should be, is there a way I can compile just the broker agent from source, or do I have to compile the entire broker server? If all I need to do is grab the nightly sources for the agent and then install that on all my x2go servers, I can do that. If it's a matter of installing the entire broker on every x2go server, I may wait until you release to stable.
Kermit Short DCS-5
On Mon, 2013-11-04 at 09:01 +0000, Mike Gabriel wrote:
Hi Kermit,
On Sa 02 Nov 2013 22:14:01 CET, Short, Kermit wrote:
Thanks Mike! That brings up a few questions for me, though. I'm at
home, and don't have to contend with the firewalls on the workplace
networks, but I can never seem to clone any of the source repos.
More than likely, I'm doing something wrong with the git command,
but whenever I try to clone through our (mandatory) http proxy, the
clone command just sits there for about 5 minutes, and then errors
out.I just tried to clone the x2gobroker.git project (at home) as follows: git clone http://git.x2go.org/projects x2gobroker.git or subsequently: git clone http://git.x2go.org x2gobroker.git
This is probably, because you URL is wrong. Try this one instead:
git clone http://code.x2go.org/git/x2gobroker.git
Once I do manage to get a clone of the source, should I be
uninstalling the existing x2gobroker-* packages installed on my
session broker server? How would I then go about installing the
binaries after configure/make/make install from source? Can I leave
at least something that I've done or do I blow it all away and start
over with nightly build codes?The broker .deb package is well maintained in upstream code. In
theory, it should work to run make && sudo make install. If you
install the broker that way, the broker codes gets installed to
/usr/local. Note: there is no configure script in x2gobroker.As you are on an RPM based system, I cannot be of great help with more
than the above. (/me only knows how to maintain DEB based systems).Greets, Mike
Hi Kermit,
on Ubuntu 12.04, please use the packages from ppa:x2go/ppa (nightly builds).
Mike
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976148
GnuPG Key ID 0x25771B13 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
----- Original message -----
Thanks Mike! The testbed I'm working with right now is Ubuntu 12.04 LTS (64 bit). I'm getting all the deb files from the x2go ppa, so whatever version is out there is what I'm running with.
I guess my question should be, is there a way I can compile just the broker agent from source, or do I have to compile the entire broker server? If all I need to do is grab the nightly sources for the agent and then install that on all my x2go servers, I can do that. If it's a matter of installing the entire broker on every x2go server, I may wait until you release to stable.
Thanks!
Kermit Short DCS-5
On Mon, 2013-11-04 at 09:01 +0000, Mike Gabriel wrote:
Hi Kermit,
On Sa 02 Nov 2013 22:14:01 CET, Short, Kermit wrote:
Thanks Mike! That brings up a few questions for me, though. I'm at home, and don't have to contend with the firewalls on the workplace networks, but I can never seem to clone any of the source repos. More than likely, I'm doing something wrong with the git command, but whenever I try to clone through our (mandatory) http proxy, the clone command just sits there for about 5 minutes, and then errors out.
I just tried to clone the x2gobroker.git project (at home) as follows: git clone http://git.x2go.org/projects x2gobroker.git or subsequently: git clone http://git.x2go.org x2gobroker.git
This is probably, because you URL is wrong. Try this one instead:
git clone http://code.x2go.org/git/x2gobroker.git
Once I do manage to get a clone of the source, should I be
uninstalling the existing x2gobroker-* packages installed on my
session broker server? How would I then go about installing the
binaries after configure/make/make install from source? Can I leave at least something that I've done or do I blow it all away and start over with nightly build codes?The broker .deb package is well maintained in upstream code. In
theory, it should work to run make && sudo make install. If you
install the broker that way, the broker codes gets installed to
/usr/local. Note: there is no configure script in x2gobroker.As you are on an RPM based system, I cannot be of great help with more than the above. (/me only knows how to maintain DEB based systems).
Greets, Mike
You rock, Mike! It works! I can't see any session info but I have a feeling that's because I've got authentication to the broker disabled. This is definitely enough for me to present this afternoon, and it will already make our testing users' lives a lot easier...they had no resilient session configuration, so everytime they started X2go, they had to create the sessions by hand.
Thanks a ton for all your help!! Once I get some more kinks worked out, I'll document my configuration and share it.
-- Kermit Short DCS-5
On Mon, 2013-11-04 at 17:18 +0100, Mike Gabriel wrote:
Hi Kermit,
on Ubuntu 12.04, please use the packages from ppa:x2go/ppa (nightly builds).
Mike
Hi Kermit
On Mo 04 Nov 2013 21:52:29 CET, Short, Kermit wrote:
Thanks a ton for all your help!! Once I get some more kinks worked out, I'll document my configuration and share it.
I am looking forward to that!!!
Mike
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...