Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152820 - can't connect to nxserver-freenx
Summary: can't connect to nxserver-freenx
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo NX Server project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 14:00 UTC by A. Person
Modified: 2007-02-26 15:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A. Person 2006-10-25 14:00:54 UTC
When I try to connect to nxserver-freenx with nxclient, I get:

NX> 1000 NXNODE - Version 1.5.0-50-SVN OS (GPL)
/usr/NX/bin/nxserver: line 1077:  8035 Terminated              sleep $AGENT_STARTUP_TIMEOUT
NX> 105 NX> 596 Session startup failed.
NX> 1004 Error: NX Agent exited with exit status 1.
Can't open /usr/NX/var/db/running/sessionId{0C3FF291A36B37023970C788B1FBB109}: No such file or directory.
mv: cannot stat `/usr/NX/var/db/running/sessionId{0C3FF291A36B37023970C788B1FBB109}': No such file or directoryNX> 1006 Session status: closed
NX> 700 Session id: system5-1000-0C3FF291A36B37023970C788B1FBB109
NX> 705 Session display: 1000
NX> 703 Session type: unix-application
NX> 701 Proxy cookie: 38268a57f5ee673df31af60daf33d0b3
NX> 702 Proxy IP: 192.168.0.2
NX> 706 Agent cookie: 665f605655cabfc171f1801c0d1d9aae
NX> 704 Session cache: unix-application
NX> 707 SSL tunneling: 0

NX> 1001 Bye.
Comment 1 Alex Lorca 2006-10-25 21:59:19 UTC
See the Bug 149298
Comment 2 A. Person 2006-10-26 10:15:16 UTC
Unfortunately adding those lines didn't work.

Should I have the nxclient USE flag enabled on nxserver-freenx if I'm trying to connect with nxclient?
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2006-11-04 17:33:20 UTC
Hi,

No, you only need the 'nxclient' USE flag if you want to have nxclient installed on the same machine as nxserver-freenx.

Could you try the nxserver package from the NX overlay instead, please?  This contains a number of fixes, and hopefully will fix your problems.

Best regards,
Stu
Comment 4 A. Person 2006-11-04 18:46:32 UTC
I've installed the nx overlay via layman added:

net-misc/nxserver-freenx ~*

to package.keywords and package.unmask but:

emerge -av nxserver-freenx

will only re-emerge the currently installed version.  I should have mentioned I'm using amd64.
Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2006-11-05 01:49:35 UTC
Hi,

You need to 'emerge =net-misc/nxserver-freenx-0.5.0-r1' to get the correct version.

Best regards,
Stu
Comment 6 A. Person 2006-11-05 07:23:32 UTC
I installed it and I'm getting this:

NX> 203 NXSSH running with pid: 14485
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: 192.168.0.3 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

I'm sure the username/password are correct.  I'm using nxclient-1.4.0-r5.
Comment 7 A. Person 2006-11-06 08:29:16 UTC
I should also mention that the error on the box where you click "Detail" or "Close" is:

Server not installed or NX remote access disabled
Comment 8 A. Person 2006-11-09 10:25:42 UTC
It looks like nxserver-freenx was just removed from amd64?
Comment 9 Jari-Matti Mäkelä 2006-11-11 10:55:39 UTC
(In reply to comment #6)
> I installed it and I'm getting this:
> 
> NX> 203 NXSSH running with pid: 14485
> NX> 285 Enabling skip of SSH config files
> NX> 200 Connected to address: 192.168.0.3 on port: 22
> NX> 202 Authenticating user: nx
> NX> 208 Using auth method: publickey
> NX> 204 Authentication failed.
> 
> I'm sure the username/password are correct.  I'm using nxclient-1.4.0-r5.

What happened between this 1.5.0-r1 and the previous 1.5.0.2006... version? I just upgraded and got exactly the same error log. The actual error is

"Server not installed or NX access disabled".

The system was previously working like a charm. I'm using 2.0 client on Damn Small Linux. The 1.5.0-r1 ebuild in overlay and portage tree are the same. I had no time to emerge the overlay version, though.

I tested it a bit further. The client succesfully manages to connect to the server using ssh. Then it just dies immediately after doing something. The text in gentoo-wiki suggests running nxagent separately and testing the connection by running X programs remotely using plain X protocol (ssh -X server). Both tests worked. nx-agent showed an empty (black) window and I was able to run software remotely with plain X.

I already tried the pam-ssh patch (bug #142694), setting /var/lib/nxserver/ permissions to 777 and copying old setting from /usr/NX/home/nx/.ssh (bug #154562). No luck. I also tried to set up the system from scratch using the nxsetup script, but it was IMO a bit broken. I had to --override everything. It still believed I have something there after cleaning and purging everything! One other error was

Error: Could not find 1.5.0 version string in nxagent. NX 1.5.0 backend is needed for this version of FreeNX.

  Errors occured during config check.
  Please correct the configuration file.


It appeared after selecting N (do you want to abort now) and N (do you want to use your custom key pair).
Comment 10 tuXXer 2006-11-12 09:17:05 UTC
Had same problem. Can't login when using nxserver-freenx-0.5.0-r1:

NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

Then I noticed that the configuration path had changed:
/usr/NX/etc => /etc/nxserver
/usr/NX/home/.nx/ssh => /var/lib/nxserver/.nx/ssh

So after mergin my old "node.conf" file with the new one and copying my certificates to the new directory I can login again.

In my opinion it could be useful to show a message in the ebuild that these paths had changed in that version.
Comment 11 Stuart Herbert (RETIRED) gentoo-dev 2006-11-13 00:57:05 UTC
Hi,

Just a note that nxserver-freenx doesn't work on amd64 yet.

Best regards,
Stu
Comment 12 A. Person 2006-11-13 07:39:23 UTC
Might the freenx-nxserver from the nx overlay work with amd64?
Comment 13 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2006-12-03 08:53:14 UTC
Changing bug state.
Comment 14 A. Person 2007-02-25 18:47:42 UTC
Does anyone have any version of nxserver-freenx working on an amd64 machine yet?
Comment 15 A. Person 2007-02-26 02:46:05 UTC
nxserver-freenx appears to work on amd64 with version 0.6.0 from the nx overlay.  No keywords required.  I'm getting some strange behavior, but it could be a different problem with my system.  nxclient connects and starts the session no problem.
Comment 16 A. Person 2007-02-26 15:48:17 UTC
Working 100%.