Forum / NoMachine for Linux / Cannot detect any display running
Tagged: Arch
- This topic has 39 replies, 5 voices, and was last updated 3 years, 10 months ago by loulou921222.
-
AuthorPosts
-
November 5, 2020 at 11:38 #30227BritgirlKeymaster
Inotamira, provided you are using Arch on Xorg and not Wayland, you could submit logs as Mth wrote just above. This topic is specifically related to Arch on Xorg. If you’re using Wayland or another distro, you should open a new topic.
loulou921222, please submit the logs as requested.
I’d like to add at this point that Arch is not one of the officially supported distros which are Ubuntu, Fedora, Red Hat (and CentOS), Debian, Suse (and OpenSuse). The official list is here: https://www.nomachine.com/AR07H00568. Having an “officially supported list” doesn’t mean we won’t investigate and fix NoMachine-related problems are sometimes brought to our attention on other Linux flavours, such as this one with Arch on Xorg 🙂
As this article states: https://www.nomachine.com/AR11K00740
“Troubleshooting X problems can be complex. Troubleshooting desktop environments can be complex.”November 5, 2020 at 18:51 #30230loulou921222ParticipantThank you, however the problem is not specific to the login window. If I switch to another TTY (not logging into the account in a X server), and restart the server, I can connect with NoMachine even just on the login screen. It’s only when I startup the system for the first time that for the first hour, NoMachine can’t see the X server running, regardless of if I have logged in or not.
This evening I’ll get back to that machine and try to get a log, I will have to completely restart the computer because restarting the server doesn’t allow me to re-produce the problem, NoMachine works after the server has been restarted just on the login screen.
I’ll try doing nxserver –logrotate, then restarting the machine, and hopefully that’ll collect the necessary logs.
November 5, 2020 at 18:51 #30232loulou921222ParticipantI have followed the instructions from “Server on Linux”, then restarted the computer so reproduce the problem, and then created the compressed log files, here they are 🙂
Attachments:
November 16, 2020 at 12:38 #30367loulou921222ParticipantSorry, I didn’t read it clearly last time, I have sent the logs by email just now.
November 19, 2020 at 18:18 #30462BritgirlKeymasterWe got the logs thank you and will update the topic soon 🙂
November 20, 2020 at 09:56 #30473BritgirlKeymasterWe are still not able to reproduce this problem and the logs you submitted were not complete. Either you didn’t enable debug or they are not from the Xubuntu server host. (the quickest way to enable logs: https://www.nomachine.com/DT10O00162)
November 23, 2020 at 08:36 #30487loulou921222ParticipantI’ll do it again, here are my exact steps this time:
1. sudo /etc/NX/nxserver –logrotate
2. sudo /etc/NX/nxserver –debug –enable all
3. restart the computer, reproducing the problem
4. sudo /etc/NX/nxserver –debug –collect
5. collecting it from /usr/NX/var/log/archives
November 24, 2020 at 17:23 #30523MthContributorHello.
The logs are good, but a bit puzzling.
We are using installed external program ss to find the Xserver sockets that are running in the system to get which displays are to be made
accessible.In your case the process “/bin/ss -lnx” returns nothing we can use. This is unusual, especially for Xorg. The process ends without error
so the number of options here are limited.If you are able to connect to this machine via ssh when it is in the Login Window state, could you run the command:
/bin/ss -lnx
manually and confirm that there are not any failures or errors. If it is the case, we would need an output of three commands when machine is still in login
window:/bin/ss -lnx
stat /tmp/.X11-unix/*
ps awwxo 'ppid,pid,sid,comm,args'
If there is a problem with sharing the output of ps program, we are only interested in the Xorg processes and their process tree (parents and children).
Please send the output of those commands the same way as previous logs.
/Mth
November 25, 2020 at 09:13 #30525loulou921222ParticipantI restarted the machine (to ensure that nothing is different compared to when it first starts up) landing it back on its login screen, then SSHed in. As far as I can observe, /bin/ss -lnx looks normal. Here are /bin/ss -lnx, stat /tmp/.X11-unix/*, and ps awwxo ‘ppid,pid,sid,comm,args’.
Attachments:
November 25, 2020 at 09:13 #30527loulou921222ParticipantIt’s worth mentioning that restarting the server while the machine is on the login screen does allow me to then connect.
November 25, 2020 at 09:13 #30528loulou921222ParticipantTomorrow I should be able to do it on another computer and send it in text format like my previous logs
December 1, 2020 at 17:59 #30598MthContributorHello
So this looks fine. There are two possibilities either something is wrong with user ‘nx’ and access to the ‘ss’ command on login window,
or the problem is that nxserver process that runs it is started too early on the system startup and does not fully initialize.Could you please run the following command like before – via ssh
when system is in login window:sudo su nx -s /bin/bash -c '/bin/ss -lnx'
and see if there are any problems.
/Mth
December 4, 2020 at 09:22 #30623loulou921222ParticipantI’ve done that, I can’t seem to spot anything out of the ordinary. I have also sent the output 🙂
December 4, 2020 at 13:03 #30635loulou921222ParticipantI’ve tried adding a few seconds sleep to the service, which makes it so that it doesn’t prompt me when I connect that there is no display running, but rather goes into a loading screen that never ends.
December 7, 2020 at 09:11 #30643loulou921222ParticipantI’m guessing that it’s starting too early in the startup process, because when I am on SSH on the login window, if I restart nxserver, I can then connect, even though I’m still only on the login screen, therefore I don’t think it’s because of a problem with the NX user on the login screen, but I may be jumping too quickly to conclusions
-
AuthorPosts
This topic was marked as solved, you can't post.