Hi,
I am trying to set up x2go broker just for testing and found out that opening https://myip:4430 or https://myip:4430/plain/zeroconf both shows this error message in apache's error.log:
[Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206] mod_wsgi (pid=16873, process='x2gobroker', application='localhost|'): Failed to parse WSGI script file '/usr/sbin/x2gobroker'. [Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206] mod_wsgi (pid=16873): Exception occurred processing WSGI script '/usr/sbin/x2gobroker'. [Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206] File "/usr/sbin/x2gobroker", line 146 [Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206] except socket.error, e: [Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206] ^ [Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206] SyntaxError: invalid syntax
My python is weak at best, so I though I drop you mail about this.
OS: Debian Wheezy
root@termsrv:~# dpkg -l | grep x2go ii cups-x2go 3.0.0.4-0~62~raring1 all Virtual X2Go printer for CUPS ii pinentry-x2go 0.7.5.6-0~45~raring1 amd64 Qt4-based PIN or pass-phrase entry dialog for x2goclient ii python-x2go 0.4.0.8-0~1078~raring1 all Python module providing X2Go client API ii python-x2gobroker 0.0.2.3-0~429~raring1 all X2Go http(s) based session broker (Python modules) ii x2goagent 2:3.5.0.21-0~358~ubuntu13.04.1 all X2Go agent ii x2gobroker 0.0.2.3-0~429~raring1 all X2Go http(s) based session broker (executable) ii x2gobroker-agent 0.0.2.3-0~429~raring1 amd64 X2Go http(s) based session broker (common files) ii x2gobroker-authservice 0.0.2.3-0~429~raring1 all X2Go http(s) based session broker (PAM authentication service) ii x2gobroker-daemon 0.0.2.3-0~429~raring1 all X2Go http(s) based session broker (daemon) ii x2gobroker-wsgi 0.0.2.3-0~429~raring1 all X2Go http(s) based session broker (CGI) ii x2gocdmanager 1.1.0.0-0~426~raring1 amd64 clientside daemon enabling automatic CD-Rom mounting ii x2goclient 4.0.1.1-0~427~ubuntu13.04.1 amd64 X2Go Client application (Qt4) ii x2godesktopsharing 3.1.1.0-0~104~raring1 amd64 share X2go desktops with other users (via shadow sessions) ii x2goplugin 4.0.1.1-0~427~ubuntu13.04.1 amd64 X2Go Client (Qt4) as browser plugin ii x2goserver 4.0.1.6-0~712~raring1 amd64 X2Go server daemon scripts ii x2goserver-extensions 4.0.1.6-0~712~raring1 all X2Go server daemon scripts (extensions) ii x2goserver-printing 4.0.1.6-0~712~raring1 all X2Go server daemon scripts (printing) ii x2goserver-xsession 4.0.1.6-0~712~raring1 all X2Go server daemon scripts (Xsession runner) ii x2gosmartcardrules 1.1.0.0-0~426~raring1 all UDEV rules for smartcard readers ii x2gousbmount 1.1.0.0-0~426~raring1 all clientside usb mass-storage device mounting root@termsrv:~#
cheers Mathias
Hi Mathias,
On Di 01 Okt 2013 14:03:36 CEST, Mathias Ewald wrote:
[...]
[Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206] File
"/usr/sbin/x2gobroker", line 146 [Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206] except
socket.error, e: [Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206] ^ [Tue Oct 01 14:18:30 2013] [error] [client 87.151.247.206]
SyntaxError: invalid syntax
My python is weak at best, so I though I drop you mail about this.
Is it possible that your Apache processes wsgi with Python3? I have
not tested that yet.
However, I have fixed three except statements, including the one you
reported in Git master code:
http://code.x2go.org/gitweb?p=x2gobroker.git;a=commitdiff;h=f92e46470950844b...
You may test if a similar fix for your version helps.
Mike
PS: you may rather test the 0.0.3.0 preview of X2Go session broker
found in our nightly build package repository [1].
[1] http://wiki.x2go.org/doku.php/wiki:development:nightly-builds
--
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...