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