<br>
<br><tt><font size=2>Marcelo Boveto Shima <marceloshima@gmail.com>
wrote on 26/11/2009 02:02:20:<br>
<br>
> Hi,<br>
> <br>
> I can see two possible causes:<br>
> 1 - /var/lib/nxserver/db/running/ should be empty after the
reboot.<br>
> $nxserver --cleanup should clean the directory</font></tt>
<br>
<br><tt><font size=2>It should be emptied ( unless you use OpenSuse, who
don't bother with</font></tt>
<br><tt><font size=2>all the clean-up service nonsense )</font></tt>
<br>
<br><tt><font size=2>. . . but if it isn't cleaned out, then anything for
that user should be </font></tt>
<br><tt><font size=2>listed to ask about a re-connection.</font></tt>
<br>
<br><tt><font size=2>Also I think he tried all this last time.</font></tt>
<br>
<br><tt><font size=2><br>
> 2 - Ports needed by the four session are been used. Set the<br>
> DISPLAY_BASE=(last display value + 10) on /etc/nxserver/node.conf.</font></tt>
<br>
<br>
<br><tt><font size=2>That's a good idea.</font></tt>
<br>
<br><tt><font size=2>However, the logic tests for that in a loop . . .
and automatically increments</font></tt>
<br><tt><font size=2>SESS_DISPLAY</font></tt>
<br>
<br><tt><font size=2># Check if there is already an agent running on that
display on that host</font></tt>
<br><tt><font size=2>let AGENT_DISPLAY=$SESS_DISPLAY+6000</font></tt>
<br><tt><font size=2>if $COMMAND_NETCAT -z "$SERVER_HOST" $AGENT_DISPLAY
2>/dev/null</font></tt>
<br><tt><font size=2>then</font></tt>
<br><tt><font size=2> log 2 "Warning:
Stray nxagent without .nX$SESS_DISPLAY-lock found on host:port $SERVER_HOST:$AGENT_DISPLAY."</font></tt>
<br><tt><font size=2> let SESS_DISPLAY=$SESS_DISPLAY+1</font></tt>
<br><tt><font size=2> continue</font></tt>
<br><tt><font size=2>fi</font></tt>
<br>
<br><tt><font size=2># Now check for the other enabled services</font></tt>
<br>
<br><tt><font size=2>let SAMBA_DISPLAY=$SESS_DISPLAY+3000</font></tt>
<br><tt><font size=2>if [ "$(getparam 'samba')" = 1 ] &&
$COMMAND_NETCAT -z "$SERVER_HOST" $SAMBA_DISPLAY</font></tt>
<br><tt><font size=2>then</font></tt>
<br><tt><font size=2> log 2 "Warning:
Skipping $SERVER_HOST:$AGENT_DISPLAY as samba port is not free."</font></tt>
<br><tt><font size=2> let SESS_DISPLAY=$SESS_DISPLAY+1</font></tt>
<br><tt><font size=2> continue</font></tt>
<br><tt><font size=2>fi</font></tt>
<br>
<br><tt><font size=2>let MEDIA_DISPLAY=$SESS_DISPLAY+7000</font></tt>
<br><tt><font size=2>if [ "$(getparam 'media')" = 1 ] &&
$COMMAND_NETCAT -z "$SERVER_HOST" $MEDIA_DISPLAY</font></tt>
<br><tt><font size=2>then</font></tt>
<br><tt><font size=2> log 2 "Warning:
Skipping $SERVER_HOST:$AGENT_DISPLAY as media port is not free."</font></tt>
<br><tt><font size=2> let SESS_DISPLAY=$SESS_DISPLAY+1</font></tt>
<br><tt><font size=2> continue</font></tt>
<br><tt><font size=2>fi</font></tt>
<br>
<br>
<br><tt><font size=2>let CUPS_DISPLAY=$SESS_DISPLAY+9000</font></tt>
<br><tt><font size=2>if [ "$(getparam 'cups')" = 1 ] &&
$COMMAND_NETCAT -z "$SERVER_HOST" $CUPS_DISPLAY</font></tt>
<br><tt><font size=2>then</font></tt>
<br><tt><font size=2> log 2 "Warning:
Skipping $SERVER_HOST:$AGENT_DISPLAY as cups port is not free."</font></tt>
<br><tt><font size=2> let SESS_DISPLAY=$SESS_DISPLAY+1</font></tt>
<br><tt><font size=2> continue</font></tt>
<br><tt><font size=2>fi</font></tt>
<br>
<br>
<br><tt><font size=2>If it hasn't continued (round the loop again), then
it breaks ( out of the loop ) here</font></tt>
<br>
<br>
<br><tt><font size=2><br>
> <br>
> Hope this helps.<br>
> Regards.<br>
> <br>
> Marcelo<br>
> <br>
<br>
> ><br>
> > [root@winwinwinwin yossarian]# cat<br>
> > /home/yossarian/.nx/F-C-<br>
> winwinwinwin-1000-2EEE03F57CDE5A5295F5B8E24F656371/session<br>
> > $DISPLAY is not set or cannot connect to the X server.<br>
> ><br>
> > xrdb: No such file or directory xrdb: Can't open display ':1000'
$DISPLAY is<br>
> > not set or cannot connect to the X server.</font></tt>
<br>
<br><tt><font size=2>This comes from nxnode, so we've got quite a way along
. . . </font></tt>
<br>
<br>
<br>
<br>
<br><tt><font size=2>> >>><br>
> >>><br>
> >>> NX> 148 Server capacity: not reached for user: yossarian<br>
> >>> NX> 105 startsession --link="adsl"
--backingstore="1" --encryption="1"<br>
> >>> --cache="16M" --images="64M" --shmem="1"
--shpix="1" --strict="0"<br>
> >>> --composite="1" --media="0" --session="Gateway"
--type="unix-kde"<br>
> >>> --geometry="1280x976" --client="linux"
--keyboard="pc105/gb"<br>
> >>> --screeninfo="1280x976x24+render"<br>
> >>><br>
> >>> NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using
backend: 3.3.0)<br>
> >>> NX> 700 Session id: gtfo-1000-ED28A41DC35814F52C6DE05FDE72D8AE<br>
> >>> NX> 705 Session display: 1000<br>
> >>> NX> 703 Session type: unix-kde<br>
> >>> NX> 701 Proxy cookie: 8b4424fcb9928f98bad143bae200b63b<br>
> >>> NX> 702 Proxy IP: 127.0.0.1<br>
> >>> NX> 706 Agent cookie: 8b4424fcb9928f98bad143bae200b63b<br>
> >>> NX> 704 Session cache: unix-kde<br>
> >>> NX> 707 SSL tunneling: 1<br>
> >>> NX> 105 /opt/NX/bin/nxserver: line 1531: 2161
Terminated sleep<br>
> >>> $AGENT_STARTUP_TIMEOUT<br>
> >><br>
> >> no agent<br>
> >><br>
</font></tt>
<br>
<br><tt><font size=2>By line 1531 now it should have written . . . .</font></tt>
<br>
<br><tt><font size=2>/opt/NX/var/db/running/sessionId{ED28A41DC35814F52C6DE05FDE72D8AE}</font></tt>
<br>
<br>
<br><tt><font size=2>> >><br>
> >><br>
> >>> NX> 596 Session startup failed.<br>
> >>> NX> 1004 Error: NX Agent exited with exit status 1.
To troubleshoot set<br>
> >>> SESSION_LOG_CLEAN=0 in node.conf and investigate<br>
> >>><br>
> >> "/home/yossarian/.nx/F-C-gtfo-1000-<br>
> ED28A41DC35814F52C6DE05FDE72D8AE/session".<br>
> >><br>
> >> Did you do this ?? What did it say ??<br>
> >><br>
> >>> You might also want to try: ssh -X myserver; /opt/NX/bin/nxnode
--agent<br>
> >> to<br>
> >>> test the basic functionality. Session log follows:<br>
> >>> Can't open<br>
> >>> /opt/NX/var/db/running/sessionId{ED28A41DC35814F52C6DE05FDE72D8AE}:
No<br>
> >> such<br>
> >>> file or directory.<br>
</font></tt>
<br>
<br><tt><font size=2>But it isn't there . . .</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>> >>> mv: cannot stat<br>
> >>> `/opt/NX/var/db/running/sessionId{ED28A41DC35814F52C6DE05FDE72D8AE}':
No<br>
> >>> such file or directory<br>
> >>> NX> 1006 Session status: closed<br>
> >>> NX> 280 Exiting on signal: 15<br>
> >>><br>
> >>> ====================================<br>
> >>><br>
> >>><br>
> >>><br>
> ><br>
> ________________________________________________________________<br>
> Were you helped on this list with your FreeNX
problem?<br>
> Then please write up the solution in the FreeNX Wiki/FAQ:<br>
> <br>
> </font></tt><a href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ"><tt><font size=2>http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</font></tt></a><tt><font size=2><br>
> <br>
> Don't forget to check the NX Knowledge
Base:<br>
> </font></tt><a href=http://www.nomachine.com/kb/><tt><font size=2>http://www.nomachine.com/kb/</font></tt></a><tt><font size=2>
<br>
> <br>
> ________________________________________________________________<br>
> FreeNX-kNX mailing list --- FreeNX-kNX@kde.org<br>
> </font></tt><a href="https://mail.kde.org/mailman/listinfo/freenx-knx"><tt><font size=2>https://mail.kde.org/mailman/listinfo/freenx-knx</font></tt></a><tt><font size=2><br>
> ________________________________________________________________<br>
</font></tt>