[FreeNX-kNX] Have to attempt to login multiple times to login.
chris at ccburton.com
chris at ccburton.com
Tue Apr 6 13:47:35 UTC 2010
Freek de Kruijf <f.de.kruijf at gmail.com> wrote on 05/04/2010 23:34:05:
> Op maandag 5 april 2010 17:23:38 schreef Morgan Cox:
> > Hi.
> >
> > This is carrying on from
> >
> >
http://old.nabble.com/Arch-Linux---After-reboot-have-to-login-4-times-to-wo
> > rk-------%28every-single-time%29-to26482511.html
> >
> > I have removed all nx packages, removed all trace of the nx user,
> > recompiled the nx-common, nxserver and freenx packages and
re-installed
> > them.
> >
> > This is still occurring...
>
> This is a recurring issue and the solution can be found in the archive.
If I
> recall correctly, it has to do with files /tmp/.n* remaining in the /tmp
> directory. Delete these files and you are OK.
That's exactly what it isn't !!
The logic uses the presence of these files to determine the next free
display.
If any of the lock files exists, then the display number is incremented
successively
until none exist for that display, at which point that display is
selected.
This could cause probems with simultaneous logins, but not the first four
every time.
In addition, most distros use the freenx-server service to remove such
files at
service start, though Suse never seem to bothereven with that.
The logic also checks in turn for
AGENT_DISPLAY=$SESS_DISPLAY+6000
SAMBA_DISPLAY=$SESS_DISPLAY+3000
MEDIA_DISPLAY=$SESS_DISPLAY+7000
CUPS_DISPLAY=$SESS_DISPLAY+9000
and then increments the display again if the agent display, or samba media
or cups ports
are in use.
I think the issue is to do with loading shared libraries, which only needs
to be done
once, the first time.
There is though, a dearth of detailed information from the victims
regarding
32 or 64 bit NX-libraries or both
library versions
FreeNx versions
Which distro / version
I would expect the issue to re-occur, without a reboot if the machine was
left
without the NX libraries being used for some time and thus getting flushed
out,
but there is little detailed reporting, just me-toos.
Yossarian seems to complain about every two months when he reboots, but he
doesn't seem
too keen to try any testing or tell us about versions.
I know quite a few charities etc rely on Freenx, so it would be nice to
fix this annoyance.
Anyone with this issue could helpfully change . . .
--- /usr/bin/nxnode 2008-12-04 13:31:37.000000000 +0000
+++ /usr/bin/nxnode.000 2010-04-06 14:35:21.000000000 +0100
@@ -543,7 +543,7 @@
NODE_FAILED=""
if [ $NODE_AGENT_EXIT_STATUS -ne 0 ]
then
- echo "NX> 1004 Error: NX Agent exited with exit status 1.
To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate
\"$USER_FAKE_HOME/.nx/F-C-$sess_id/session\". You might also want to try:
ssh -X myserver; $PATH_BIN/nxnode --agent to test the basic functionality.
Session log follows:"
+ echo "NX> 1004 Error: NX Agent exited with exit status
$NODE_AGENT_EXIT_STATUS. To troubleshoot set SESSION_LOG_CLEAN=0 in
node.conf and investigate \"$USER_FAKE_HOME/.nx/F-C-$sess_id/session\".
You might also want to try: ssh -X myserver; $PATH_BIN/nxnode --agent to
test the basic functionality. Session log follows:"
cat "$USER_FAKE_HOME/.nx/C-$sess_id/session" 1>&2
NODE_FAILED="failed"
fi
. . . and then tell us what the real error code from nxagent is.
Note the session log mentioned won't actually exist for being dumped.
cb
>
> --
> fr.gr.
>
> Freek de Kruijf
> ________________________________________________________________
> 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/20100406/b9cf4135/attachment.html>
More information about the FreeNX-kNX
mailing list