Forum / NoMachine for Linux / No available desktops on this server
Tagged: linux, No available desktops, windows
- This topic has 10 replies, 3 voices, and was last updated 1 year, 3 months ago by ps.georgiou.
-
AuthorPosts
-
June 28, 2023 at 10:00 #44735ps.georgiouParticipant
I am trying to connect from a Windows 10 (client) machine to a Centos7 (server) using NoMachine.
On Windows I’ve installed nomachine_8.5.3_1_x64.exe and on Centos7 nomachine_8.5.3_1_x86_64.tar.gz
To log-in I am using password-based authentication with a username/password which was added to NoMachine’s db. (I was unable to log-in using other methods or the existing credentials of the default user account on the workstation)
After entering username/password authentication is successful. Then NoMachine is showing the message: “Cannot detect any display running. Do you want NoMachine to create a new display and proceed to connect to the desktop?” At this stage I select “Yes”. Then NoMachine seems to start a session but reports “No available desktops on this server”. Clicking on this message expands the message to: “The server was unable to make the local display available or access to the local display is disabled.”
I’ve tried tweaking with the server.cfg and node.cfg files without any success.
Please find attached the server log, server.cfg and node.cfg
The Centos7 workstation is not connected to a monitor and I can do “ssh -x” without any issues.
In node.cfg I’ve tried using Gnome and Xfce as the default desktops but none of them worked.
I’d like to use a virtual display although I am not sure whether the configuration is set for virtual or physical display. I believe an X server is running on the workstation since “echo $DISPLAY” outputs “localhost:10.0”.
Please let me know if you have any hints on how to resolve this issue.
June 28, 2023 at 14:28 #44744ps.georgiouParticipantRe-uploading the files since the upload failed in my original post.
Attachments:
June 30, 2023 at 17:03 #44780fishermanModeratorHello,
It seems that what you mentioned “The Centos7 workstation is not connected to a monitor” could play a role in the problem that NoMachine does not detect it as available session, and when NoMachine tries to create new display, that request fails as there is already display number used.
Logs from the server side would be useful. Enable debug on the CentOS 7 machine, reproduce the problem and then gather up the logs.You can send them to forum[at]nomachine[dot]com making sure to use the title of the topic as the subject of your email.
sudo /etc/NX/nxserver –debug –enable all sudo /etc/NX/nxserver –debug –collect sudo /etc/NX/nxserver –debug –disable all
I could propose workaround to try so NoMachine will create new display with a new display number.
Please edit/usr/NX/etc/node.cfg
by enabling keyPhysicalDisplays :3
.July 3, 2023 at 10:55 #44788ps.georgiouParticipantThank you for your reply. Please find attached the logs generated while reproducing the issue.
I will also try the proposed fix and report back.
Attachments:
July 3, 2023 at 11:03 #44790ps.georgiouParticipantI have modified the node.cfg file as instructed, and then restarted the nxserver (/etc/NX/nxserver –restart). After doing this, I know see a different error message when trying to connect. This is the new message: “The session negotiation failed. Error: Cannot create a new display, please contact your system administrator”
July 4, 2023 at 12:52 #44799fishermanModeratorWe still did not have full logs, as I have missed to ask after enabling debug logs to restart server and then to reproduce problem. Please can you redo it and then provide us with logs.
sudo /etc/NX/nxserver --debug --enable all sudo /etc/NX/nxserver --restart
July 4, 2023 at 15:38 #44804ps.georgiouParticipantHello.
I have regenerated the log files using these steps:
- sudo /etc/NX/nxserver –debug –enable all
- sudo /etc/NX/nxserver –restart
- sudo /etc/NX/nxserver –debug –collect
See the attached zip file.
Note that before reproducing the issue I have modified node.cfg to comment out the key change “PhysicalDisplays :3”
Thanks.
July 4, 2023 at 16:20 #44808fishermanModeratorThere was upload error, can you send log file to to the forum[at]nomachine[dot]com?
July 4, 2023 at 16:23 #44809ps.georgiouParticipantI have emailed the logs. Let me know if there is still an issue. Thanks.
July 11, 2023 at 07:35 #44853BritgirlKeymasterThe logs show: “cannot open file `/etc/NX/server/localhost/node.cfg’ for reading (Permission denied)”
This is what you should change to make it accessible to “read” for all users
Execute:
ls -l /etc/NX/server/localhost/node.cfg -rw-r--r-- 1 root root 605 cze 30 15:03 /etc/NX/server/localhost/node.cfg
then you should execute:
chmod 644 /etc/NX/server/localhost/node.cfg
This last operation will require admin privileges,
July 12, 2023 at 08:51 #44861ps.georgiouParticipantAfter modifying the permissions, a desktop was launched. However, I kept getting a black screen. I then followed the instructions for “Enterprise Desktop” https://kb.nomachine.com/AR03P00973 which also resolved the black screen issue.
Thanks for your help. I can now launch a remote desktop successfully.
-
AuthorPosts
This topic was marked as solved, you can't post.