Today, when I used NXClient to connect my kimsufi server and it popped up an error message to me. I tried to fix it since I thought this error was the one I’ve seen many times, that’s mean you have to delete old sessions,
cd /var/lib/neatx/sessions rm -f *
However, the problem was still the same even deleted sessions many times. There must be something wrong with my server. I searched internet and hope can get clear answers but no luck.
I’ve read some articles and did some trial and error, here are several possibilities to help you to fix this,
- Python version
Since I started to self learn Python, I installed python 3 into ubuntu 10.04. It had python 2 from the beginning so for my learning, I changed python symbol link to python3. This causes trouble. When you execute nxserver or nxagent, you will see
Traceback (most recent call last): File "./nxserver", line 3, in from neatx.app import nxserver ImportError: No module named neatx.app
The reason I guest apt-get doesn’t install all necessary library of python 3 and this makes NeatX cannot run properly.
2. Check X11-Unix folder
I got the below error message after using NXClient to connect server and it starts as normal but terminate the connection immediately.
Mar 25 18:26:59 nxnode[30115]: INFO daemon:519 Child /usr/bin/nxagent[30120] started Mar 25 18:26:59 nxnode[30115]: INFO agent:409 Nxagent changed status from 'created' to 'terminating' Mar 25 18:26:59 nxnode[30115]: INFO agent:409 Nxagent changed status from 'terminating' to 'terminated' Mar 25 18:26:59 nxnode[30115]: INFO agent:457 Nxagent terminated Mar 25 18:26:59 nxnode[30115]: INFO node:345 nxagent terminated
You can find this folder exist in /tmp directory. This is another possibility that unable connect Neatx after you checked and did above steps, we probably can delete this folder then make and give right permission and ownership again.
$ mkdir /tmp/.X11-unix $ chmod 1777 /tmp/.X11-unix/ $ sudo chown root:root .X11-unix/
Hope this can help you all.
I am never back to use VNC after using Neatx and NXClient.
PS. Sorry my bad english writing skill, If you can’t realize what I say please leave me a comment I will try my best to help. And, of course If you feel you could help me correct these sentences, please leave a comment as well. Thanks.