[X2Go-User] testing session broker in WSGI/plain/inifile configuration
Short, Kermit
k_short at lanl.gov
Sat Nov 2 07:59:49 CET 2013
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 at lists.berlios.de [x2go-user-bounces at lists.berlios.de] on behalf of Mike Gabriel [mike.gabriel at das-netzwerkteam.de]
Sent: Friday, November 01, 2013 5:45 PM
To: x2go-user at 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.
Mike
--
DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
More information about the x2go-user
mailing list