NoMachine NX window closes after establishing connection

Hi, I am trying to use nomachine nx server and client. But somehow it doen't work. What happens is the following:

1.- Client starts up
2.- Client authenticates with Server
3.- The NoMachine window appears for 2-4 seconds
4.- The NoMachine window exists

Somehow a "closeEvent" is sent. Here's what I see in the log file:

[Thu Sep 24 11:20:37 2009]: Starting nxcomp with options: 'NX> 299 Switch connection to: NX mode: unencrypted options: nx/nx,options=/home/foo/.nx/S-adnws029-1022-7EEF1367361DB2A7F4D9F76B06F4B434/options:1022'.
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: NXFileMonitor: opened file: [/home/foo/.nx/S-adnws029-1022-7EEF1367361DB2A7F4D9F76B06F4B434/session]
[Thu Sep 24 11:20:38 2009]: LoginDialog::ShowConnectionStatus code=[246] str=[Initializing X protocol compression] error=[0]
[Thu Sep 24 11:20:38 2009]: ProgressDialog::printNxStatus: [Initializing X protocol compression]
[Thu Sep 24 11:20:38 2009]: LoginDialog::ShowConnectionStatus code=[247] str=[Established the display connection] error=[0]
[Thu Sep 24 11:20:38 2009]: ProgressDialog::printNxStatus: [Established the display connection]
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: LoginDialog: slotAgentTimer
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: QClipboard: Unknown SelectionClear event received.
[Thu Sep 24 11:20:38 2009]: LoginDialog: slotAgentTimer
[Thu Sep 24 11:20:38 2009]: LoginDialog: Agent found closing windows...
[Thu Sep 24 11:20:38 2009]: LoginDialog: setting automatic reconnection to true.
[Thu Sep 24 11:20:38 2009]: Settings::flush
[Thu Sep 24 11:20:38 2009]: Settings::flush
[Thu Sep 24 11:20:38 2009]: LoginDialog: closeEvent received!
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: NXFileMonitor::readData
[Thu Sep 24 11:20:38 2009]: LoginDialog::destructor called begin
[Thu Sep 24 11:20:38 2009]: LoginDialog: stopAllTimers
[Thu Sep 24 11:20:38 2009]: LoginDialog: stopProgressTimer
[Thu Sep 24 11:20:38 2009]: Utility::getPreferencesFile: 'nxclient' -> '/home/foo/.nx/config/nxclient.cfg'
[Thu Sep 24 11:20:38 2009]: Settings::flush
[Thu Sep 24 11:20:38 2009]: Called destructor for protocol class
[Thu Sep 24 11:20:38 2009]: LoginDialog::destructor called end

Anyone with a helpful idea?

Thanks, Peter

what is in this file?

/home/foo/.nx/config/nxclient.cfg

Here's the content of /home/foo/.nx/config/nxclient.cfg

<!DOCTYPE NXClientSettings>
<NXClientSettings application="nxclient" version="1.3" >
<group name="General" >
<option key="CUPS Password" value="" />
<option key="CUPS Port" value="0" />
<option key="Hide Full Screen Info" value="false" />
<option key="Last session" value="adnws029" />
<option key="Permit Root Login" value="false" />
<option key="Permit Share No Password" value="false" />
<option key="Personal NX dir" value="/home/sdt/.nx" />
<option key="Remove old sessions" value="true" />
<option key="System NX dir" value="/usr/NX" />
</group>
</NXClientSettings>

Try clear the tmp files.