[FreeNX-kNX] Shadow Session fails to attach

chris at ccburton.com chris at ccburton.com
Sun Jun 9 15:09:42 UTC 2013


freenx-knx-bounces at kde.org wrote on 29/05/2013 10:27:25:

[SNIP]

> I've attached a tar of my .nx folder, the /etc/nxserver and the 
nxserver.log.
> 
> Many thanks for all your assistance.  Much appreciated.
> 
> Len

>From your log


[SNIP]

NX> 127 Sessions list of user '.*' for reconnect:

Display Type             Session ID                       Options  Depth 
Screen         Status      Session Name
------- ---------------- -------------------------------- -------- ----- 
-------------- ----------- ------------------------------
1001    unix-gnome       F788D968C2342B30F59E25FE2F04A052 --D--PSA    24 
800x600        Running     me-promis (cscs) (Shadowed)
0       Local            B469FA35AC08F93E0352BCF15F5536AA --------   
Running     X0 (Local)
0       Local            BA127A73F948FB4A066CAB66CB8E474C --------   
Running     X0 (Local)


NX> 148 Server capacity: not reached for user: .*
NX> 105 attachsession  --link="lan" --backingstore="1" --encryption="1" 
--cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" 
--composite="1" --media="0" --session="me-promis-shadow" --type="shadow" 
--client="winnt" --keyboard="pc102/gb" 
--id="F788D968C2342B30F59E25FE2F04A052" --display="1001" 
--geometry="800x600" --resize="1"

Info: Using /etc/nxserver/nxacl to change session parameters or deny 
session.
&link=lan&backingstore=1&encryption=1&cache=16M&images=64M&shmem=1&shpix=1&strict=0&composite=1&media=0&session=me-promis-shadow&type=shadow&client=winnt&keyboard=pc102/gb&id=F788D968C2342B30F59E25FE2F04A052&
display=1001
&geometry=800x600&resize=1&clientproto=3.2.0&login_method=SSH&shadowdisplay=1001&shadowhost=&shadowcookie=******&shadowuser=cscs&user=cscs&userip=131.111.87.221&uniqueid=0C81AD26055212F1AEED71DE3EA21772&
display=1002&host=127.0.0.1

[SNIP]

NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set 
SESSION_LOG_CLEAN=0 in node.conf and investigate 
"/home/cscs/.nx/F-C-me-promis-1001-0C81AD26055212F1AEED71DE3EA21772/session". 
You might also want to try: ssh -X myserver; /usr/lib/nx/nxnode --agent to 
test the basic functionality. Session log follows:
NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set 
SESSION_LOG_CLEAN=0 in node.conf and investigate 
"/home/cscs/.nx/F-C-me-promis-1001-0C81AD26055212F1AEED71DE3EA21772/session". 
You might also want to try: ssh -X myserver; /usr/lib/nx/nxnode --agent to 
test the basic functionality. Session log follows:
nxnode_reader: NX> 1006 Session status: closed
nxnode_reader: Error: Aborting session with 'Server is already active for 
display 1001




You have the same issue that  "Mike Morris" had back in April 

see

        http://lists.kde.org/?l=freenx-knx&m=136628654928561&w=2


It's an un(properly)tested patch to nxnode . . . 
. . . put in for some reason (possibly)


getparam()
{
python -c " import sys; from urlparse import parse_qs;
v=parse_qs(sys.argv[2]).get(sys.argv[1],[None])[0];
if (v==None): sys.exit(1);
print v;" "$1" "${CMDLINE}"
}


which returns the first
         display=

instead of the second one

i.e. you are trying to use :1001 instead of :1002


You seem to have missed the bit in my last posting where I asked you to 
send me a copy of your "nxnode" alongside the logging
so I've had to guess which nxnode you are using for your patch.

You can edit nxnode manually of course, if you prefer, but make a copy 
first whatever you do !!



--- nxnode      2013-06-09 15:20:23.157473511 +0100
+++ nxnode-getparam     2013-06-09 15:47:46.493234105 +0100
@@ -72,11 +72,12 @@
 
 getparam()
 {
-       python -c "
-import sys; from urlparse import parse_qs;
-v=parse_qs(sys.argv[2]).get(sys.argv[1],[None])[0];
-if (v==None): sys.exit(1);
-print v;" "$1" "${CMDLINE}"
+        stringinstring "&$1=" "$CMDLINE" || return 1
+
+        SHARES=$(echo $SHARES|tr -d "|") # Don't mess up the substitution 
of $SHARES
+        echo "$CMDLINE" |  tr "&" "\n" | egrep "^"$1"=" | awk -F= '{ 
VAL=$2 } END { print VAL }' | sed "s|%24(SHARES)|$SHARES|g; s/%2d/-/g; 
s/%3A/:/g; s/%24/\$/g"
+
+        return 0
 }
 
 find_app()



Let us know how you get on . . . . .


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20130609/b9789b9e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getparam-fix-nxnode.patch.gz
Type: application/octet-stream
Size: 464 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20130609/b9789b9e/attachment.obj>


More information about the FreeNX-kNX mailing list