The session negotiation failed: Cannot connect to the requested session

Forums / NoMachine for Linux / The session negotiation failed: Cannot connect to the requested session

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #39232
    rpatrick00
    Participant

    I have NoMachine 7.6.2 configured on a Oracle Linux 8.4 server that I setup last year and had everything working fine connecting from my old laptop.  In trying to setup my new laptop to connect to this server, I am using the NoMachine 7.10.1 for macOS Monterrey 12.4 (Intel x64) but I am unable to connect to the server (Error: Cannot connect to the requested session).

    On the server, I see that it looks like everything is happy:

    rpatrick@phx2b1844ed NX]$ sudo systemctl status -l nxserver

    ● nxserver.service - NoMachine Server daemon

    Loaded: loaded (/usr/lib/systemd/system/nxserver.service; enabled; vendor preset: disabled)

    Active: active (running) since Wed 2022-07-13 11:49:34 UTC; 2h 57min ago

    Main PID: 1859 (nxserver.bin)

    Tasks: 24 (limit: 614313)

    Memory: 113.2M

    CGroup: /system.slice/nxserver.service

    ├─1859 /usr/NX/bin/nxserver.bin --daemon

    └─3105 /usr/NX/bin/nxd

    Jul 13 11:49:34 phx2b1844ed systemd[1]: Started NoMachine Server daemon.

    Jul 13 11:50:09 phx2b1844ed nxexec[3315]: pam_sss(nx:auth): authentication success; logname= uid=726 euid=0 tty= ruser= rhost=10.154.128.200 user=rpatrick

    Jul 13 11:50:50 phx2b1844ed nxexec[4036]: pam_sss(nx:auth): authentication success; logname= uid=726 euid=0 tty= ruser= rhost=10.154.128.200 user=rpatrick

    Jul 13 14:02:32 phx2b1844ed nxexec[33407]: pam_sss(nx:auth): authentication success; logname= uid=726 euid=0 tty= ruser= rhost=10.154.128.200 user=rpatrick

    Jul 13 14:37:17 phx2b1844ed nxexec[41335]: pam_sss(nx:auth): authentication success; logname= uid=726 euid=0 tty= ruser= rhost=10.154.128.200 user=rpatrick

    [rpatrick@phx2b1844ed NX]$

    The session log from the client shows:

    Info: Starting NoMachine version 7.10.1.

    Info: Loading settings from '/Users/rpatrick/.nx/config/player.cfg'.

    Info: Loaded translation files for 'English'.

    4638 259 09:37:07 792.763 Main: Creating the client session.

    4638 259 09:37:07 792.842 ClientSession: Initializing session at 0x7fc0a5008c00.

    4638 259 09:37:08 856.467 ClientSession: Initialized session at 0x7fc0a5008c00.

    4638 259 09:37:08 859.341 ClientSession: Starting session at 0x7fc0a5008c00.

    4638 259 09:37:08 933.448 ClientSession: Going to start session '/Users/rpatrick/Documents/NoMachine/Oracle Linux 8 VM.nxs'.

    4638 259 09:37:08 945.146 ClientThread: Creating new thread.

    4638 259 09:37:08 948.023 Connection: Initializing connection at 0x7fc0a3731b80.

    4638 259 09:37:08 948.083 Connection: Initialized connection at 0x7fc0a3731b80.

    4638 259 09:37:08 948.097 Connection: Starting connection at 0x7fc0a3731b80.

    4638 259 09:37:08 948.106 ClientDaemonConnector: Starting a new connection to host '' on port '4000'.

    4638 259 09:37:08 948.404 Connection: Started connection at 0x7fc0a3731b80.

    4638 259 09:37:08 953.071 ClientSession: Started session at 0x7fc0a5008c00.

    Info: Slave server running with pid 128259.

    Info: Listening to slave connections on port 54118.

    4638 259 09:37:08 955.228 Main: Entering the GUI event loop.

    Info: Connection to 100.111.142.31 port 4000 started at 09:37:09 062.241.

    4638 259 09:37:09 094.293 MacInit: WARNING! Activation event lost, try to recover by synthesizing a new event.

    4638 119815 09:37:09 827.941 ClientSession: A valid certificate for this server was found.

    4638 130563 09:37:12 610.560 ClientUpnp: WARNING! Mapping of port '4099' failed after '3759' ms.

    4638 130563 09:37:16 367.471 ClientUpnp: WARNING! Mapping of port '4099' failed after '3757' ms.

    4638 259 09:37:17 608.381 ClientSession: Going to query the server for available services.

    4638 259 09:37:19 536.759 ClientSession: Going to query the node for available services.

    4638 259 09:37:19 580.949 ClientSession: WARNING! Could not map the UDP port using UPnP.

    4638 259 09:37:19 581.246 ClientSession: Going to attach session at index '0'.

    4638 259 09:37:19 581.998 Keyboard: Current model 'evdev' session model 'evdev' layout 'us' variant '(empty)' options '(empty)'.

    Info: Connection to 100.111.142.31 port 4000 closed at 09:37:25 876.246.

    4638 259 09:37:25 877.565 Connection: Connection at 0x7fc0a3731b80 failed.

    4638 259 09:37:25 877.607 ClientSession: Runnable at 0x7fc0a3731b80 caused the session at 0x7fc0a5008c00 to fail.

    4638 259 09:37:25 877.633 ClientSession: Failing reason is 'The session negotiation failed.

    Error: Cannot connect to the requested session'.

    4638 259 09:37:25 900.319 ClientSession: Stopping session at 0x7fc0a5008c00.

    Info: Slave server running with pid 89863.

    Info: Listening to slave connections on port 46708.

    4638 259 09:37:25 934.441 Connection: Stopping connection at 0x7fc0a3731b80.

    4638 259 09:37:25 934.497 ClientDaemonConnector: Stopping the current connection.

    4638 259 09:37:25 934.741 Connection: Stopped connection at 0x7fc0a3731b80.

    4638 259 09:37:25 954.922 ClientSession: Stopped session at 0x7fc0a5008c00.

    2022-07-13 09:37:36.058 nxplayer[4638:2479661] *** WARNING: Textured window is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.

    I don’t understand what is happening or how to fix it…

    #39265
    Britgirl
    Keymaster

    It’s difficult to say what’s happening. It’s a virtual machine, I assume. We are not aware of any problems connecting to sessions running on Oracle Linux. We even have an Oracle virtual instance with an older version of NoMachine installed and it works fine. Could something have got messed up with the Linux OS configuration?

    What’s not clear is whether attempts to connect to the NoMachine 7.6.2 server are still successful from your old laptop. Can you try connecting with another client device? If you get the same error across different clients, the problem is on the server and not the Player side.

    If you’re running Wayland on the Linux virtual server,  you should take a look at the tips and suggestions here:

    Connecting to a Wayland-based desktop running in a Linux virtual machine
    https://kb.nomachine.com/AR04R01083

    If that doesn’t help, update the NoMachine software and check if the problem persists. If it does, we’ll be happy to check the server-side logs.

    #39270
    rpatrick00
    Participant

    > Could something have got messed up with the Linux OS configuration?

    Unlikely, as these VMs are provisioned automatically.

    > What’s not clear is whether attempts to connect to the NoMachine 7.6.2 server are still successful from your old laptop.

    Good question but since I no longer have my old laptop, it’s one I cannot answer.

    > Can you try connecting with another client device?

    I do not have another client device connected to my company’s network so no.

    > If you’re running Wayland on the Linux virtual server

    Not applicable.

    > If that doesn’t help, update the NoMachine software and check if the problem persists.

    I provisioned a brand new VM and installed the latest NoMachine software on it.  I get a similar, but different error:  “The session negotiation failed.  Error: Node was not retrieved”

    Info: Starting NoMachine version 7.10.1.

    Info: Loading settings from ‘/Users/rpatrick/.nx/config/player.cfg’.

    Info: Loaded translation files for ‘English’.

    2869 259 11:34:51 553.568 Main: Creating the client session.

    2869 259 11:34:51 553.621 ClientSession: Initializing session at 0x7f8f79013400.

    2869 259 11:34:52 627.050 ClientSession: Initialized session at 0x7f8f79013400.

    2869 259 11:34:52 646.644 ClientSession: Starting session at 0x7f8f79013400.

    2869 259 11:34:52 712.648 ClientSession: Going to start session ‘/Users/rpatrick/Documents/NoMachine/Personal Entitlement VM.nxs’.

    2869 259 11:34:52 722.999 ClientThread: Creating new thread.

    2869 259 11:34:52 744.988 Connection: Initializing connection at 0x7f8f7800f740.

    2869 259 11:34:52 745.118 Connection: Initialized connection at 0x7f8f7800f740.

    2869 259 11:34:52 745.150 Connection: Starting connection at 0x7f8f7800f740.

    2869 259 11:34:52 745.172 ClientDaemonConnector: Starting a new connection to host ” on port ‘4000’.

    2869 259 11:34:52 745.536 Connection: Started connection at 0x7f8f7800f740.

    2869 259 11:34:52 750.780 ClientSession: Started session at 0x7f8f79013400.

    Info: Slave server running with pid 90115.

    Info: Listening to slave connections on port 24333.

    2869 259 11:34:52 752.696 Main: Entering the GUI event loop.

    Info: Connection to 100.111.141.56 port 4000 started at 11:34:52 801.133.

    2869 259 11:34:52 890.120 MacInit: WARNING! Activation event lost, try to recover by synthesizing a new event.

    2869 128775 11:34:53 819.452 ClientSession: A valid certificate for this server was found.

    2869 259 11:35:03 642.788 ClientSession: Going to query the server for available services.

    2869 259 11:35:07 966.095 Connection: Connection at 0x7f8f7800f740 failed.

    2869 259 11:35:07 966.116 ClientSession: Runnable at 0x7f8f7800f740 caused the session at 0x7f8f79013400 to fail.

    2869 259 11:35:07 966.132 ClientSession: Failing reason is ‘The session negotiation failed.

    Error: Node was not retrieved’.

    2869 259 11:35:07 982.029 ClientSession: Stopping session at 0x7f8f79013400.

    Info: Slave server running with pid 127495.

    Info: Listening to slave connections on port 45523.

    2869 259 11:35:07 994.579 Connection: Stopping connection at 0x7f8f7800f740.

    2869 259 11:35:07 994.639 ClientDaemonConnector: Stopping the current connection.

    2869 259 11:35:07 995.168 Connection: Stopped connection at 0x7f8f7800f740.

    2869 259 11:35:08 010.932 ClientSession: Stopped session at 0x7f8f79013400.

    2869 259 11:35:08 010.959 Connection: Stop reading because of parser request.

    2022-07-15 11:35:25.445 nxplayer[2869:23103] *** WARNING: Textured window is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow’s -titlebarAppearsTransparent=YES instead.

    #39273
    Britgirl
    Keymaster

    2022-07-15 11:35:25.445 nxplayer[2869:23103] *** WARNING: Textured window is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow’s -titlebarAppearsTransparent=YES instead.

    This is just a warning and is related to the SDK version, which will be updated in version 8.

    For the actual error you are receiving “The session negotiation failed: Cannot connect to the requested session”, we will need server-side logs and player logs.

    Server -> https://kb.nomachine.com/DT11R00182
    Client -> https://kb.nomachine.com/DT11R00181#2

    Please submit as attachments to forum[at]nomachine[dot]com. Thanks.

    #39526
    Britgirl
    Keymaster

    We tried to reproduce similar behaviour on Oracle Linux but without success. For us everything installed and  NoMachine worked out-of-the-box (default Oracle Linux).

    In the NoMachine logs you sent us there is no indication given as to why the gnome session fails. There could be something in the system logs or userhome/.xsession-errors which you can check yourself?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.