[X2Go-User] nxagentReconnectFailedFonts: does anyone have a solution?

Michael Ashley m.ashley at unsw.edu.au
Fri Feb 26 23:26:25 CET 2021


Hi Uli,

Thanks for your quick response.

The nxagent version on the server is 3.5.99.23. The server is an ancient Ubuntu 14.04LTS system. I do have /usr/bin/nxdialog.

Here is my full session.log with the failed font problem:

Session: Session resumed at 'Wed Feb 24 10:53:13 2021'.
Info: Screen [0] resized to geometry [1920x1170] fullscreen [0].
Info: Screen [0] resized to geometry [1920x1170] fullscreen [0].
Info: Screen [0] resized to geometry [1853x1145] fullscreen [0].
Info: Screen [0] resized to geometry [1919x1145] fullscreen [0].
Info: Screen [0] resized to geometry [1853x1145] fullscreen [0].
Session: Suspending session at 'Wed Feb 24 15:38:52 2021'.
Info: Waiting the cleanup timeout to complete.
Session: Session suspended at 'Wed Feb 24 15:38:53 2021'.
Session: Resuming session at 'Wed Feb 24 15:38:55 2021'.
Info: Proxy running in client mode with pid '3034'.
Info: Using errors file '/tmp/.x2go-mcba/C-mcba-50-1610482047_stDXFCE_dp24/session.log'.
Info: Using stats file '/tmp/.x2go-mcba/C-mcba-50-1610482047_stDXFCE_dp24/C-mcba-50-1610482047_stDXFCE_dp24/stats'.
Loop: WARNING! Unrecognized session type 'unix-kde-depth_24'. Assuming agent session.
Warning: Unrecognized session type 'unix-kde-depth_24'. Assuming agent session.
Info: Waiting for connection from 'localhost' on socket 'tcp:*:40350'.
Info: Accepted connection from '127.0.0.1'.
Info: Connection with remote proxy completed.
Info: Using WAN link parameters 1408/24/1/0.
Info: Using agent parameters 5000/5/50/0/0.
Info: Using cache parameters 4/4096KB/8192KB/8192KB.
Info: Using pack method '16m-png-9' with session 'unix-kde-depth_24'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 1/1.
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: Not using local device configuration changes.
nxagentReconnectFailedFonts: WARNING! Font server tunneling not retrieved.
nxagentReconnectSession: WARNING! Unable to retrieve all the fonts currently in use. Missing fonts have been replaced.
Info: keyboard blocking directory created: '/home/mcba/.x2go/C-mcba-50-1610482047_stDXFCE_dp24/keyboard'
Info: Keycode conversion is off
Info: re-reading keystrokes configuration
Warning: Cannot read keystroke file '/home/mcba/.x2go/config/keystrokes.cfg'.
Info: using keystrokes file '/etc/x2go/keystrokes.cfg'
Info: ignoring unknown keystroke action 'debug_tree'.
Info: ignoring unknown keystroke action 'regions_on_screen'.
Info: ignoring unknown keystroke action 'test_input'.
Info: ignoring unknown keystroke action 'deactivate_input_devices_grab'.
Currently known keystrokes:
  close_session         : Ctrl+Alt+t
  switch_all_screens    : Ctrl+Alt+f
  minimize              : Ctrl+Alt+m
  resize                : Ctrl+Alt+r
  defer                 : Ctrl+Alt+e
  ignore                : Ctrl+Alt+BackSpace
  force_synchronization : Ctrl+Alt+j
  fullscreen            : Ctrl+Shift+Alt+f
  viewport_move_left    : Ctrl+Shift+Alt+Left
  viewport_move_up      : Ctrl+Alt+Up
  viewport_move_right   : Ctrl+Alt+Right
  viewport_move_down    : Ctrl+Alt+Down

I don't know why there are references to KDE. I am using xfce.

Regards,
Michael

On Fri, Feb 26, 2021 at 10:43:40PM +0100, Ulrich Sibiller wrote:
> On more thing: You can also install the nxdialog package and point the
> NX_CLIENT variable to /usr/bin/nxdialog. This way you will even see
> the dialogs! This is how it was intended from the beginning and it is
> the correct way but unfortunately nobody has fixed that in x2go yet -
> for years.
> 
> Uli
> 
> On Fri, Feb 26, 2021 at 10:40 PM Ulrich Sibiller <uli42 at gmx.de> wrote:
> >
> > Honestly I have never seen this. Interestingly when those messages
> > appear it means that the system will NOT stop the reconnect but go
> > on:
> >
> >   if (!nxagentReconnectAllFonts(reconnectLossyLevel[FONT_STEP]))
> >   {
> >     if (!nxagentReconnectFailedFonts(reconnectLossyLevel[FONT_STEP]))
> >     {
> >       failedStep = FONT_STEP;
> >       goto nxagentReconnectError;
> >     }
> >     else
> >     {
> >       #ifdef WARNING
> >       fprintf(stderr, "nxagentReconnectSession: WARNING! Unable to
> > retrieve all the fonts currently in use. "
> >                   "Missing fonts have been replaced.\n");
> >       #endif
> >
> >       nxagentLaunchDialog(DIALOG_FONT_REPLACEMENT);
> >     }
> >   }
> >
> > What version of the nxagent package do you have on the server? And
> > what distribution do you have on the server?  Please post the lines
> > before and after the messages you posted (from
> > /tmp/.x2go-<user>/C..../session.log)
> >
> > Update: after thinking for some time you probably suffer from a bug
> > that is old indeed: dialogs are displayed using the binary that is
> > referred to by the NX_CLIENT variable. This variable is set wrong
> > inside x2go and will call a binary that suspends the session. So to
> > fix this
> > do the following on the server (as I don't know what distribution you
> > are using I do not know where the x2gosuspendagent binary resides, so
> > please adapt the path accordingly):
> > 1. mv /usr/bin/x2gosuspendagent /usr/bin/x2gosuspendagent.orig
> > 2. ln -s /usr/bin/true /usr/bin/x2gosuspendagent
> >
> > Unfortunately you will have to fix it again after an update of the x2go stuff.
> >
> > Alternatively you can change the line in x2gosuspendagent that sets
> > the NX_CLIENT variable. But this will only affect future sessions
> > while above change will also work for running sessions. You will have
> > to fix this after an update again, too.
> >
> > Hope that helps,
> >
> > Uli
> >
> >
> > On Fri, Feb 26, 2021 at 10:07 PM Michael Ashley <m.ashley at unsw.edu.au> wrote:
> > >
> > > Hi folks,
> > >
> > > Last week I connected to a long-running x2go session using a different computer than I normally do. It worked fine. But later that day when I returned to my usual computer, I ran into the bug where the session would start up, but then disconnect within about a second, with the error messages:
> > >
> > > > nxagentReconnectFailedFonts: WARNING! Font server tunneling not retrieved.
> > > > nxagentReconnectSession: WARNING! Unable to retrieve all the fonts currently in use. Missing fonts have been replaced.
> > >
> > > A google search shows that this bug was reported 7 years ago, but no solution appears to be forthcoming, apart from trying to adding fonts. But with over 1000 fonts on the server, I have no idea how to find which ones need adding.
> > >
> > > Are there any ideas out there for how to address this problem? It is certainly frustrating to be unable to connect to a running x2go session, and having to terminate it on the server.
> > >
> > > Regards,
> > > Michael
> > > _______________________________________________
> > > x2go-user mailing list
> > > x2go-user at lists.x2go.org
> > > https://lists.x2go.org/listinfo/x2go-user

-- 
Professor Michael Ashley                   Department of Astrophysics
University of New South Wales       http://www.phys.unsw.edu.au/~mcba


More information about the x2go-user mailing list