This morning I was unable to access my remote machine using NoMachine. An error message was immediately presented that read “The session negotiation failed”.
When I investigated this I found that the error was caused by a failure to inspect a file in the /usr/NX/var/db/limits/{username}. A permissions error was returned saying that the file couldn’t be read.
When I looked for this file I could see that it didn’t exist. I tried creating a blank file in that location and making it readable, which allowed me to progress to session selection. But now whenever I pick a display to connect to I still get “The session negotiation failed”.
The error in the logs is now :
NX> 595 NoMachine server exception: no key selected for table: running. (InfoManager::updateKey).
Restarting doesn’t fix the problem. The nxserver –list command shows no active sessions. Under the /usr/NX/var/db/running directory there are several entries. I’m wondering if the database is perhaps in a bad state?
Any suggestions for how to fix this?