PDA

View Full Version : freenx -- authenticates but wont start



GrandpaGenocide
29th May 2007, 03:49 AM
the title says it all heres the output from no machine

NX> 203 NXSSH running with pid: 5587
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 192.168.***.*** on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
strings: '/usr/libexec/nx/nxagent': No such file
HELLO NXSERVER - Version 1.5.0-60 OS (GPL)
NX> 105 hello NXCLIENT - Version 1.5.0
NX> 134 Accepted protocol: 1.5.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: centinal
NX> 102 Password:
strings: '/usr/libexec/nx/nxagent': No such file
NX> 103 Welcome to: localhost.localdomain user: centinal
NX> 105 listsession --user="centinal" --status="suspended,running" --geometry="1600x1200x24+render" --type="unix-gnome"
NX> 127 Sessions list of user 'centinal' for reconnect:

Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------


NX> 148 Server capacity: not reached for user: centinal
NX> 105 startsession --link="lan" --backingstore="1" --nodelay="1" --encryption="1" --cache="8M" --images="32M" --media="1" --mediahelper="esd" --session="centinal" --type="unix-gnome" --geometry="1024x768+288+191" --kbtype="pc105/us" --screeninfo="1024x768x24+render"

NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
NX> 596 Session startup failed.
NX> 1004 Error: NX Agent exited with exit status 1.
/usr/libexec/nx/nxserver: line 1190: 6903 Terminated sleep $AGENT_STARTUP_TIMEOUT
NX> 105 Killed by signal 15.
Ive read the forums and cant seem to find an answer. would appreciate any help

sideways
29th May 2007, 10:56 AM
did you copy the client.id_dsa.key from /var/lib/nxserver/home/.ssh/ on the server to the client machine and then import the key from the configure gui in nxclient?

Also, nxclient seems to have problems with gnome, so you may need to select a KDE desktop

GrandpaGenocide
29th May 2007, 04:34 PM
yup i imported the key. But Ill try using kde

lemarty
1st June 2007, 09:32 PM
I am having this exact same problem... I have used freenx since fc3 and this is the first time I have had this problem.

Boscoe
7th June 2007, 10:40 PM
I am having the same issues. Current Windows NXclient (2.1.0-17 I believe) stops working with Fedora 7, prior version was Fedora Core 6.

If I look in the "details' screen on the client, I see an error about being unable to 'mv' session files in the "/var/lib/nxserver/db/running" directory. However the permissions in that directory seem fine, so I'm not sure what the problem is. I'm at work so I can't give the exact error, I'll try and add it when I get home.

Boscoe
7th June 2007, 10:43 PM
Here's the error message as stolen from another post from someone who has the exact same problem:



/usr/libexec/nx/nxserver: line 1190: 7309 Terminated sleep
$AGENT_STARTUP_TIMEOUT

Can't open
/var/lib/nxserver/db/running/sessionId{653FB4748C99EDB84CEF8DBC8}: No
such file or directory.

mv: cannot stat
`/var/lib/nxserver/db/running/sessionId{653FB7754899E1DB84C5F83AC8}': No
such file or directory

Killed by signal 15.

imperia
10th June 2007, 05:47 PM
I have got the same issue. I found that there are some libraries missing. they are available in /usr/NX/lib but nx wants them in /lib.

what is the clever way of solving this? i don't wanna just copy or link them.

first file was libcrypto.so.0.9.8. i copied it inside /lib to test.
the second was libXcomp.so.2. maybe more are missing.

please help.

Boscoe
11th June 2007, 03:03 AM
Okay, here's the solution. The problem is NOT with FreeNX. The problem is with SELinux. With the upgrade to Fedora7, SELinux is set to "Enforcing" by default, and even though there appears to be some configuration for FreeNX, SELinux sees the moving of session files as something to be blocked.

The temporary solution is to take SELinux out of Enforcing and to the next step down. Run system-config-securitylevel-tui and set the level to "Permissive".

imperia
11th June 2007, 06:05 PM
ok. i am gonna try now with

setenforce 0

imperia
11th June 2007, 06:33 PM
here is what i did:

setenforce 0

cp /etc/nxserver/client.id_dsa.key ~/.ssh/id_dsa
chmod 600 ~/.ssh/id_dsa

[root@fc7 .ssh]# ssh nx@192.168.0.7
Last login: Mon Jun 11 20:28:32 2007 from fc7
strings: '/usr/libexec/nx/nxagent': No such file
HELLO NXSERVER - Version 1.5.0-60 OS (GPL)
NX> 105

imperia
11th June 2007, 06:38 PM
i just did

rpm -e freenx nx

then

yum install freenx

its working :D

i am gonna try to enable SElinux now

imperia
11th June 2007, 06:41 PM
not working with SELinux enabled.

any ideas how to fix this?

thanks to everyone for the help!

imperia
11th June 2007, 06:59 PM
SOLVED!

chcon -t textrel_shlib_t /usr/lib/nx/libXcomp.so.2

NeonBlack
13th August 2007, 10:18 PM
SOLVED!

chcon -t textrel_shlib_t /usr/lib/nx/libXcomp.so.2


Same exact problem as Boscoe.

I've set SELinux to Permissive and still the same error.
Uninstalled and reinstalled, same error.
Ran the chcon given by imperia and still, same error.

Here's the details from the client


===================================

NX> 203 NXSSH running with pid: 5868
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 192.168.***.*** on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 1.5.0-60 OS (GPL)
NX> 105 hello NXCLIENT - Version 1.5.0
NX> 134 Accepted protocol: 1.5.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: george
NX> 102 Password:
NX> 103 Welcome to: banker user: george
NX> 105 listsession --user="george" --status="suspended,running" --geometry="1152x864x32+render" --type="unix-gnome"
NX> 127 Sessions list of user 'george' for reconnect:

Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------


NX> 148 Server capacity: not reached for user: george
NX> 105 startsession --link="lan" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --media="0" --session="Banker" --type="unix-gnome" --geometry="1024x768" --kbtype="pc102/en_US" --screeninfo="1024x768x32+render"

NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
NX> 700 Session id: banker--
NX> 705 Session display:
NX> 703 Session type:
NX> 701 Proxy cookie: 62101a0b90313e6c423de4e6ecfc008d
NX> 702 Proxy IP:
NX> 706 Agent cookie:
NX> 704 Session cache:
NX> 707 SSL tunneling: 0
NX> 105 /usr/libexec/nx/nxserver: line 1190: 16596 Terminated sleep $AGENT_STARTUP_TIMEOUT
NX> 596 Session startup failed.
NX> 1004 Error: NX Agent exited with exit status 1.
Can't open /var/lib/nxserver/db/running/sessionId{0733F484C209D5BB6F41BA2F011D8CD7}: No such file or directory.
NX> 1006 Session status: closed
mv: cannot stat `/var/lib/nxserver/db/running/sessionId{0733F484C209D5BB6F41BA2F011D8CD7}': No such file or directory
NX> 1001 Bye.
Killed by signal 15.

====================================


Anyone have any ideas?

imperia
15th August 2007, 10:46 AM
is setenforce 0 = permissive mode?

NeonBlack
15th August 2007, 03:33 PM
Yup. Everything connects and authenticates just fine. As soon as the client loads the desktop, it fails.

stevea
26th August 2007, 08:54 PM
OK - I'm new to NX. Can anyone supply a brief howto for F7 ? (maybe in the howto forum).
The only docs I've found are apparently not relevant to the F7 install. They say to install
the packages and -- poof you are done.

Also - how do you experienced users feel about using the freenx 0.6 when 0.7 is current ?
===

I've installed freenx and nx (trivial).
It believe that
/usr/libexec/nx/nxserver --adduser USERNAME
/usr/libexec/nx/nxserver --passwd USERNAME
/usr/libexec/nx/nxserver --start
are necessary but ????.

Do I need to edit a /etc/nxserver/node.conf and if so ... how.

I don't see a single shred of usefile documentations aside from "man rnxdesktop" which
is apparently a windoze rdp client. Also the many scripts in /usr/share/doc aren't
encouraging.

phongnh
8th February 2008, 06:04 AM
Yup. Everything connects and authenticates just fine. As soon as the client loads the desktop, it fails.

I have same problem. Who has found a solution for it? Can you help me?