Forum / NoMachine for Linux / Can’t connect to the NoMachine server after moving to a new server
Tagged: linux ubuntu headless
- This topic has 7 replies, 4 voices, and was last updated 1 year, 8 months ago by Britgirl.
-
AuthorPosts
-
December 22, 2022 at 19:01 #42108ivParticipant
Dear NoMachine team,
I was successfully using headless-Ubuntu desktop from OS X with NoMachine. But after moving to a new IP address (because of mispayment some day for my cloud service) I can’t connect with password authentication to headless-Ubuntu via NoMachine anymore.
My hell loop:
First time NoMachine has several unsuccessful attempts to connect and eventually fails with the logs which is attached in file with name
R-localhost-2009-6F16A8577822C9376F9F13DC2068B6D3
.All further attempts to connect finish with the message
<No available desktops on this server>
.Here is a list what I tried, but it didn’t help:
1) sudo /etc/NX/nxserver –restart
2) reinstallation of NoMachine on server side
3) editingDefaultDesktopCommandefault at /usr/NX/etc/node.cfg into all possible options.
NoMachine version: Version 8.2.3
Ubuntu version: Ubuntu 20.04.5 LTS
Ubuntu available desktops:
$ grep ^Exec /usr/share/xsessions/*.desktop
/usr/share/xsessions/gnome.desktop:Exec=/usr/bin/gnome-session --session=gnome
/usr/share/xsessions/gnome-xorg.desktop:Exec=/usr/bin/gnome-session --session=gnome
/usr/share/xsessions/ubuntu.desktop:Exec=env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --systemd --session=ubuntu
December 23, 2022 at 15:12 #42122katpanParticipantDear iv,
In order to investigate, we need the logs from server side.
More info on how to collect logs here in this article: https://kb.nomachine.com/AR10K00697?s=%20how%20to%20collect%20logs
Can you please send them by email to forum[at]nomachine[dot]com, making sure to reference the topic as the subject of the email?
Thanks!
December 27, 2022 at 09:36 #42130ivParticipantDear katpan,
I’ve sent logs to the email which you provided. But I’m not sure if it was delivered. Let me know if there are some problems.
December 27, 2022 at 10:40 #42145katpanParticipantHello,
I confirm we received the logs, and we are investigating the issue.
Thank you for your patience 🙂
January 3, 2023 at 10:26 #42275fra81ModeratorHi iv,
please try to run this command on the server machine and tell us if it reports any error:
sudo /etc/NX/nxserver --eglcapture yes
Then restart the display manager and the NoMachine server to make changes effective:
sudo systemctl restart display-manager sudo /etc/NX/nxserver --restart
Let us know if that solves the problem.
January 18, 2023 at 16:48 #42566ivParticipantThank you!
This solved my problem 🙂
February 15, 2023 at 17:15 #42962ivParticipantI was using NoMachine for sometime, after I had run your commands. But I was suffered with double login screens and systematic faults of Ubuntu OS.
Then I found out that I had gdm3 proceess in processes tree with systemd parent process.So, I ran:
sudo systemctl stop gdm
then turned off eglcapture with command:
sudo /etc/NX/nxserver –eglcapture no
and restarted nxserver.
Now it seems that everything works OK. I suppose that your solution can be called temporary, but mine should help for using headless OS in more reliable and stable way.
February 16, 2023 at 09:55 #42966BritgirlKeymasterLaunching the command we suggested would have allowed for further debugging, but disabling -egl completely obviously removes the root problem. Thanks for the update.
-
AuthorPosts
This topic was marked as solved, you can't post.