[X2Go-User] X2Go Client suddenly failing to connect

2018-03-26 Thread Ivan Gomez
Dear all,

I have been using X2Go client in the current environment for quite a while now 
without issues. Seemingly all of sudden today an outage happened where X2Go 
will no longer launch any applications.

The connection seems to succeed in the backend:
[cid:image001.png@01D3C558.EB0F51C0]

However, the client closes the connection before anything happens. Running the 
client with the debug terminal shows these messages:
[cid:image002.png@01D3C559.58693F10]

I've validated that I can SSH to the server using other tools and start the X11 
applications from command line directly.

Any guidance or pointers to figure out why X2Go stopped working would be 
greatly appreciated.

Thank you,
Ivan G.



Ivan Gomez
Consultant
Zencos Consulting
igo...@zencos.com
mobile: (919) 576-0614

The information in this e-mail and any attached files is confidential. It is 
intended solely for the use of the addressee. Any unauthorized disclosure or 
use is prohibited. If you are not the intended recipient of the message, please 
notify the sender immediately and do not disclose the contents to any other 
person, use it for any purpose, or store or copy the information in any medium. 
The views of the author may not necessarily reflect those of the company.

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

Re: [X2Go-User] x2go stops working on some Ubuntu 14.04 boxes

2018-03-26 Thread Steven Spencer
Qiangian,

Try removing the sessions on the server side and then see what happens
on the client. I had a similar issue and ended up doing the package
upgrades you've already done on the server end and then updating the
client as well.

sudo rm -f /var/lib/x2go/x2go_sessions
sudo x2godbadmin --createdb

Thanks,
Steve

On 03/26/2018 04:11 PM, Qianqian Fang wrote:
> On 03/26/2018 03:53 PM, Mihai Moldovan wrote:
>> Please make sure that nx-libs 3.5.99.16 is installed on the server side.
>> This sounds like a typical incarnation of the DPMS bug, fixed with
>> nx-libs 3.5.99.15. 
>
> thanks Mihai
>
>
> I confirm that the server giving the first error, i.e. "The remote
> proxy closed the connection while negotiating..."
> has indeed installed an older version of libnx-x11 (3.5.0.33~710).
>
> after letting apt-get to upgrade the nx libraries and x2go packages,
> I saw the libnx-x11 was replaced by a new package named libnx-x11-6, and
> the version is now 3.5.99.16. However, now I start seeing the 2nd error
> message on those machines, i.e. "connection failed".
>
>> However, this doesn't sound like it. Normally the DPMS bug only manifests 
>> after
>> a pretty long time (say, an hour or 1.5h, depending on DPMS settings), but 
>> not
>> right away after starting the session. I haven't yet seen such an error 
>> message
>> yet. It's possible that it's caused by the session repositioning on non-first
>> displays/nxagent crashing bug as fixed with nx-libs 3.5.99.16, but normally 
>> that
>> incarnates differently (i.e., nxagent is being started successfully, but then
>> dies quickly while starting the session without a client-side error message).
>
> here is a dump of the session.log file under the failed session:
>
>
> |NXAGENT - Version 3.5.99.16||
> ||
> ||Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)||
> ||||
> ||See https://github.com/ArcticaProject/nx-libs for more information.||
> ||
> ||Info: Agent running with pid '17844'.||
> ||Session: Starting session at 'Mon Mar 26 16:56:11 2018'.||
> ||Error: Aborting session with 'Unable to open display
> 'nx/nx,options=/tmp/.x2go-fangq/C-fangq-50-1522097770_stDXFCE_dp24/options:50''.||
> ||Session: Aborting session at 'Mon Mar 26 16:56:11 2018'.||
> ||Session: Session aborted at 'Mon Mar 26 16:56:11 2018'.||
> |
>
>
> strangely, the x2go window reports something differently, it says (see
> attached screenshot)
>
> |"PANIC!" Failure negotiating the session in stage 7||
> ||...||
> ||Wrong version or invalid session authentication cookie.||
> ||||
> |
>
> are these two error messages caused by a single issue or multiple?
>
> I've already restarted x2gosever, but no dice. any other files that I
> need to reset/clear?
>
> thanks
>
> Qianqian
>
>>
>>
>> Mihai
>>
>
>
>
> ___
> x2go-user mailing list
> x2go-user@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-user


-- 
-- 
Steven G. Spencer, Network Administrator
KSC Corporate - The Kelly Supply Family of Companies
Office 308-382-8764 Ext. 1131
Mobile 402-765-8010 

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

Re: [X2Go-User] x2go stops working on some Ubuntu 14.04 boxes

2018-03-26 Thread Mihai Moldovan
* On 03/26/2018 11:11 PM, Qianqian Fang wrote:
> I confirm that the server giving the first error, i.e. "The remote proxy 
> closed
> the connection while negotiating..."
> has indeed installed an older version of libnx-x11 (3.5.0.33~710).

Hmm, mixing X2Go Server 4.1.0.0 and nx-libs 3.5.0.x is not really supported.

> after letting apt-get to upgrade the nx libraries and x2go packages,
> I saw the libnx-x11 was replaced by a new package named libnx-x11-6, and
> the version is now 3.5.99.16. However, now I start seeing the 2nd error
> message on those machines, i.e. "connection failed".

So, good that you upgraded.


> here is a dump of the session.log file under the failed session:
> 
> 
> |NXAGENT - Version 3.5.99.16||
> ||
> ||Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)||
> ||||
> ||See https://github.com/ArcticaProject/nx-libs for more information.||
> ||
> ||Info: Agent running with pid '17844'.||
> ||Session: Starting session at 'Mon Mar 26 16:56:11 2018'.||
> ||Error: Aborting session with 'Unable to open display
> 'nx/nx,options=/tmp/.x2go-fangq/C-fangq-50-1522097770_stDXFCE_dp24/options:50''.||
> ||Session: Aborting session at 'Mon Mar 26 16:56:11 2018'.||
> ||Session: Session aborted at 'Mon Mar 26 16:56:11 2018'.||
> |

Hmm, strange. Being unable to open the internal display normally means there is
a libNX_X11 problem.

dpkg -l | grep -Ei '(x2go|nx)'
ls -ldh /usr/lib/*86*/nx/X11


> strangely, the x2go window reports something differently, it says (see 
> attached
> screenshot)
> 
> |"PANIC!" Failure negotiating the session in stage 7||
> ||...||
> ||Wrong version or invalid session authentication cookie.||
> ||||
> |
> 
> are these two error messages caused by a single issue or multiple?

They are different error messages, because the first one is from nxproxy in
client mode, while the second one is from nxproxy in server mode. This error
message is a pretty generic one - the server part (which ironically runs on the
client side for reasons) expected to read authentication data from the nxproxy
client, but it never got it. Instead, the connection was just terminates
unexpectedly.


> I've already restarted x2gosever, but no dice. any other files that I need to
> reset/clear?

No. Additionally, you do not need to restart the x2goserver service at all
(unless you're upgrading the x2goserver package or modifying
/etc/x2go/x2goserver.conf) - the x2goserver service is just a cleanup utility
that syncs content in the database with what is observed on the file system. It
has nothing to do (well, mostly...) with starting or running sessions (though
I've seen strange things happening leading to session suspension, but that's a
different story and mainly caused by nxagent trying to display a popup or such).



Mihai



signature.asc
Description: OpenPGP digital signature
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] integrated X-Server and AltGr/right Alt key

2018-03-26 Thread Joachim Hartmann

Hi Uli,

Am 26.03.2018 um 20:24 schrieb Ulrich Sibiller:

Hi Joachim,

some questions:

- do you have /usr/share/X11/xkb/ (which is from the xkb-data package)?


Yes, I founf it.


- If you have that dir, please try the following:
cd  /usr/share/X11/xkb/
setxkbmap -I. -print
  and post the output.


@21:40:21#/usr/share/X11/xkb# setxkbmap -I. -print
xkb_keymap {
xkb_keycodes  { include "xfree86+aliases(qwerty)"   };
xkb_types { include "complete"  };
xkb_compat{ include "complete"  };
xkb_symbols   { include "pc+null"   };
xkb_geometry  { include "pc(pc104)" };
};

- what version of the nx-libs package do you have (on both client 


On the client system - windows 7 - I found no nx-libs. x2go-Client (V. 
1.1.1) is installed (latest version)




and server)?


@21:52:26#~# dpkg -l | grep libnx
ii  libnx-x11-6:amd64 
2:3.5.99.16-1+git20180317.2985+8.main.1amd64nxagent's 
libNX_X11 client-part library
rc  libnx-xcomposite1:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 Composite 
extension library
rc  libnx-xdamage1:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 damaged 
region extension library
rc  libnx-xdmcp6:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 Display 
Manager Control Protocol library
rc  libnx-xext6:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 
miscellaneous extension library
rc  libnx-xfixes3:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 
miscellaneous 'fixes' extension library
rc  libnx-xinerama1:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 Xinerama 
extension library
rc  libnx-xpm4:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 pixmap 
library
rc  libnx-xrandr2:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 RandR 
extension library
rc  libnx-xrender1:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 Rendering 
Extension client library
rc  libnx-xtst6:amd64 
2:3.5.0.33-0x2go1+git20180204.776+8.main.1 amd64nx-X11 Testing 
-- Record extension library





- does setxkbmap work when you run it inside putty?

No it does not:
@22:08:14#/usr/share/X11/xkb# setxkbmap -I. -print
Cannot open display "default display"



- while the session/xterm is running, have a look at the latest
~/.x2go/C-* dir on the server. You will find a file called options,
one called keyboard and a session.log. Please attach them.


Attached



Thanks,

Uli




--
Gruß aus der Stadt der CeBIT
Jochen
rules="xorg"
model="pc105"
layout="de"
variant=","
options="grab:break_actions"
nx/nx,link=adsl,pack=16m-jpeg-9,limit=0,root=/tmp/.x2go-root/C-root-50-1522093078_stRxterm_dp32,cache=8M,images=32M,type=unix-kde-depth_32,id=root-50-1522093078_stRxterm_dp32,cookie=361ead85fc5c89fb6f1f1ddd14b64ce6,errors=/tmp/.x2go-root/C-root-50-1522093078_stRxterm_dp32/session.log,kbtype=null/null,geometry=800x600,xinerama=0,resize=1,fullscreen=0,accept=localhost,listen=39531,clipboard=both,client=linux,menu=0,state=/tmp/.x2go-root/C-root-50-1522093078_stRxterm_dp32/state:50

NXAGENT - Version 3.5.99.16

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder 
Copyright (c) 2011-2016 Mike Gabriel 
Copyright (c) 2014-2016 Ulrich Sibiller 
Copyright (c) 2014-2016 Mihai Moldovan 
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '5870'.
Session: Starting session at 'Mon Mar 26 21:38:01 2018'.
Info: Proxy running in client mode with pid '5870'.
Info: Using errors file 
'/tmp/.x2go-root/C-root-50-1522093078_stRxterm_dp32/session.log'.
Info: Using stats file 
'/tmp/.x2go-root/C-root-50-1522093078_stRxterm_dp32/C-root-50-1522093078_stRxterm_dp32/stats'.
Loop: WARNING! Unrecognized session type 'unix-kde-depth_32'. Assuming agent 
session.
Warning: Unrecognized session type 'unix-kde-depth_32'. Assuming agent session.
Info: Waiting for connection from 'localhost' on socket 'tcp:*:39531'.
Info: Accepted connection from '127.0.0.1'.
Info: Connection with remote proxy completed.
Info: Using ADSL link parameters 1408/24/1/0.
Info: Using agent parameters 5000/10/50/0/0.
Info: Using cache parameters 4/4096KB/8192KB/8192KB.
Info: Using pack method '16m-jpeg-9' with session 'unix-kde-depth_32'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 4/4.
Info: No suitable cache file found.
Info: Listening to X11 connections on display ':50'.
Info: Established X client connection.
Info: Using shared memory parameters 1/1/0/0K.
Info: Using alpha channel in render extension.
Info: Not using local device configuration changes.
Warning: Cannot read keystroke file '/root/.nx/config/keystrokes.cfg'.
Info: 

Re: [X2Go-User] x2go stops working on some Ubuntu 14.04 boxes

2018-03-26 Thread Mihai Moldovan
* On 03/26/2018 03:45 PM, Qianqian Fang wrote:
> I run a small cluster for my lab, including about 12 Linux boxes running 
> Ubuntu
> 14.04 (1x with 16.04). We have been using x2go and ssh as the primary tool to
> access these computing resources.
> 
> Recently (started a month ago), I noticed there were package updates of x2go
> server (now 4.1.0.0-0-1517), client (now 4.1.1.1-0-1719) and the nx11 
> libraries,
> on the other hand, I started having difficulty log on to some of my servers, 
> and
> this list starts to grow. I am not sure if this was the result of the recent
> package upgrade, or the reason motivated the package updates, but I started
> seeing the below two types of messages:

Please make sure that nx-libs 3.5.99.16 is installed on the server side.


> For some of the machines, I saw the below message initially:
> 
> *The remote proxy closed the connection while negotiating*
> **
> *the session. This may be due to the wrong authentication*
> **
> *credentials passed to the server.*

This sounds like a typical incarnation of the DPMS bug, fixed with nx-libs
3.5.99.15.


> for some other servers, I am getting the below message:
> 
> *Connection failed.**Failed to start X2Go Agent session with ID
> account-xx_stDXFCE_dp24. X2Go Agent terminated unexpectedly. Aborting
> session startup. *
> 
> The 1st message appeared first, after I tried to restart x2goserver or 
> rebooting
> 
> the machine, or apply the updates, deleting the ~/.x2go folder, or a reboot, 
> those
> 
> machines typically display the 2nd message; none of those were fixed using the
> 
> above procedures.

However, this doesn't sound like it. Normally the DPMS bug only manifests after
a pretty long time (say, an hour or 1.5h, depending on DPMS settings), but not
right away after starting the session. I haven't yet seen such an error message
yet. It's possible that it's caused by the session repositioning on non-first
displays/nxagent crashing bug as fixed with nx-libs 3.5.99.16, but normally that
incarnates differently (i.e., nxagent is being started successfully, but then
dies quickly while starting the session without a client-side error message).



Mihai



signature.asc
Description: OpenPGP digital signature
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

[X2Go-User] integrated X-Server and AltGr/right Alt key [now with attachment]

2018-03-26 Thread Joachim Hartmann

Hello,

I come from the Windows world and run a Debian server (jessie) without a 
graphical interface (no X server installed), keyboard and screen. 
Operation is normally via putty from the windows7-PC (German QWERTZU 
keyboard). On the Linux console all characters of the third level (AltGr 
or right Alt key) are displayed correctly! If I call xterm via 
x2go-Client (V. 1.1.1) the AltGr key has no effect!


- The automatic keyboard recognition is activated at the client!
- The files $HOME/.Xmodmap-x2go and $HOME/.Xkbmap-x2go do not exist on 
the server. The result of


  @09:56:57#~# xmodmap -pke
  keycode   8 = Mode_switch NoSymbol Mode_switch
  keycode   9 = Escape NoSymbol Escape
  keycode  10 = 1 exclam 1 exclam onesuperior exclamdown onesuperior
  keycode  11 = 2 quotedbl 2 quotedbl twosuperior oneeighth twosuperior
  keycode  12 = 3 section 3 section threesuperior sterling threesuperior
  keycode  13 = 4 dollar 4 dollar onequarter currency onequarter
  keycode  14 = 5 percent 5 percent onehalf threeeighths onehalf
  keycode  15 = 6 ampersand 6 ampersand notsign fiveeighths notsign
  keycode  16 = 7 slash 7 slash braceleft seveneighths braceleft
  keycode  17 = 8 parenleft 8 parenleft bracketleft trademark bracketleft
  keycode  18 = 9 parenright 9 parenright bracketright plusminus 
bracketright

  keycode  19 = 0 equal 0 equal braceright degree braceright
  ...
  keycode 113 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift
  ...

  But AltGr+0 do not display curly braces. For the sake of 
completeness,  this information:


  @10:07:13#~# xmodmap
  xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):
  shift   Shift_L (0x32),  Shift_R (0x3e)
  lockCaps_Lock (0x42)
  control Control_L (0x25),  Control_R (0x6d)
  mod1Alt_L (0x40),  Meta_L (0x9c)
  mod2Num_Lock (0x4d)
  mod3
  mod4Super_L (0x73),  Super_R (0x74),  Super_L (0x7f), Hyper_L 
(0x80)

  mod5Mode_switch (0x8),  ISO_Level3_Shift (0x7c)

- Starting xev on the server an pressing the AltGr key displays
  KeyPress event, serial 31, synthetic NO, window 0x41,
root 0x6b, subw 0x0, time 1033835042, (-99,-134), root:(662,1193),
state 0x10, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), 
same_screen YES,

XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

- The directory /etc/X11/xkb on the server is empty, so setxkbmap 
reports an error under xterm!


- For the pros among you, I will attach the log file to the following 
session:

  * starting the x2go client
  * start from xterm
  * Key sequence QWERTZU[ENTER] AltGr+7[ENTER] exit[ENTER]
  * closing the x2go-client

Someone an idea?
--
Greetings from the home of CeBIT
Jochen

PS: English is not my mother tongue and school time is already nearly 
half a century past.
x2go-INFO-1> "Starting X2Go Client 4.1.1.1..."
x2go-INFO-4> "Translator: :/i18n/x2goclient_de_de found."
x2go-INFO-4> "Übersetzung: :/i18n/qt_de_de gefunden."
x2go-DEBUG-../src/onmainwindow.cpp:10589> Getting X.Org Server settings.
x2go-INFO-3> "X2GoClient wurde gestartet."
x2go-DEBUG-../src/onmainwindow.cpp:583> "$HOME=C:/Users/Jochen"
x2go-DEBUG-../src/onmainwindow.cpp:2420> Reading 3 sessions from config file.
x2go-DEBUG-../src/sessionbutton.cpp:342> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".
x2go-DEBUG-../src/sessionbutton.cpp:342> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".
x2go-DEBUG-../src/sessionbutton.cpp:342> Creating QPixmap with session icon: 
":/img/icons/128x128/x2gosession.png".
x2go-DEBUG-../src/onmainwindow.cpp:13086> libssh not initialized yet. 
Initializing.
x2go-DEBUG-../src/pulsemanager.cpp:369> pulseaudio --version 
returned:"pulseaudio 7.1

"

x2go-DEBUG-../src/onmainwindow.cpp:10492> Starting helper servers for Windows 
...
x2go-DEBUG-../src/onmainwindow.cpp:10659> "/cygdrive/C/Users/Jochen/.x2go/var" 
cygwin var path
x2go-DEBUG-../src/onmainwindow.cpp:10742> 
"C:/Users/Jochen/.x2go/etc/sshd_config created."
x2go-DEBUG-../src/onmainwindow.cpp:10252> Resolved localhost.
x2go-DEBUG-../src/onmainwindow.cpp:10274> Port is free: 7022
x2go-DEBUG-../src/onmainwindow.cpp:11092> Logging cygwin sshd to: 
"C:/Users/Jochen/.x2go/sshLogs/Hp6932.log"
x2go-DEBUG-../src/onmainwindow.cpp:11106> Creating desktop: x2go_Jochen
x2go-DEBUG-../src/onmainwindow.cpp:10252> Resolved localhost.
x2go-DEBUG-../src/onmainwindow.cpp:10280> Port already in use: 7022
x2go-DEBUG-../src/onmainwindow.cpp:10252> Resolved localhost.
x2go-DEBUG-../src/onmainwindow.cpp:10280> Port already in use: 7022
x2go-DEBUG-../src/onmainwindow.cpp:11203> User mode OpenSSH server started 
successfully.
x2go-DEBUG-../src/pulsemanager.cpp:227> pulse started with arguments 
("--exit-idle-time=-1", "-n", "-F", "C:\Users\Jochen\.x2go\pulse\config.pa", 
"-p", "C:\Program Files\x2goclient\pulse\lib\pulse-7.1\modules", 
"--log-level=debug", "--verbose",