FS#29555 - [nx] some binaries in wrong location

Attached to Project: Arch Linux
Opened by zless (roentgen) - Sunday, 22 April 2012, 10:56 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 22 April 2012, 18:34 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

nxagent, nxauth and nxproxy are installed directly in /usr/lib/nx. They should be put in /usr/lib/nx/bin.

nxclient can't connect otherwise. Symlinking to the right location solves the problem for the time being.


Additional info:
freenx 0.7.3-11
nx-common 3.5.0-5
nxagent 3.5.0.12-1
nx-x11 3.5.0.12-1
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 22 April 2012, 18:34 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Sunday, 22 April 2012, 13:38 GMT
Works well here with nxclient 3.5.0.7-2. No further symlinks required here. Make sure all paths are set properly in /etc/nxserver/node.conf. You may need to relogin to get ldconfig path properly loaded (nx-x11 pkg).

Client:

[root@laptop64 andyrtr]# pacman -Qs nx
local/libxcomp 3.5.0.12-1
NX X compression library
local/nx-common 3.5.0-5
NoMachine NX common package for client and server
local/nxclient 3.5.0.7-2
Nomachine's closed source client for NX servers

server:

[andyrtr@workstation64 ~]$ pacman -Qs nx
local/freenx 0.7.3-11
Free Software (GPL) Implementation of the NX Server
local/libxcomp 3.5.0.12-1
NX X compression library
local/lynx 2.8.7-5
A text browser for the World Wide Web
local/nx-common 3.5.0-5
NoMachine NX common package for client and server
local/nx-x11 3.5.0.12-1
NX-X11 lib for the NX framework
local/nx-xcompext 3.5.0.12-1
Xcompext/Xcompshad library for NX
local/nxagent 3.5.0.12-1
NX X server based on Xnest
local/nxproxy 3.5.0.12-1
NX proxy
Comment by zless (roentgen) - Sunday, 22 April 2012, 16:22 GMT
Just to clarify the problem is on the server side. Without nxagent in /usr/lib/nx/bin/ I see this in the nxclient log and the connection fails

NX> 105 /usr/bin/nxserver: line 1531: 26280 Terminated sleep $AGENT_STARTUP_TIMEOUT
cat: /home/arthur/.nx/C-linux-1000-FEBE3A5C4BAB64382D18236745278BED/session: No such file or directory
NX> 280 Exiting on signal: 15

After clearing the cache in /home/arthur/.nx/ the error is

NX> 105 /usr/bin/nxserver: line 1531: 27023 Terminated sleep $AGENT_STARTUP_TIMEOUT
/usr/lib/nx/bin/nxnode: line 547: /usr/lib/nx/bin/nxagent: No such file or directory
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/arthur/.nx/F-C-linux-1000-C9CDB4B5F640FD4AA687FACE4535CA75/session".
Can't open /var/lib/nxserver/db/running/sessionId{C9CDB4B5F640FD4AA687FACE4535CA75}: No such file or directory.
NX> 1006 Session status: closed
mv: cannot stat '/var/lib/nxserver/db/running/sessionId{C9CDB4B5F640FD4AA687FACE4535CA75}': No such file or directory
NX> 280 Exiting on signal: 15

Also I see now that most /usr/bin/nx* files are in fact symlinks to files in /usr/lib/nx/bin/ except those 3 binaries (nxagent, nxauth, nxproxy).

/usr/bin/nxagent is owned by nxagent 3.5.0.12-1
/usr/bin/nxauth is owned by nx-x11 3.5.0.12-1
/usr/bin/nxproxy is owned by nxproxy 3.5.0.12-1

so this is not technically a freenx package bug but a bug in those 3 packages above.
Comment by Andreas Radke (AndyRTR) - Sunday, 22 April 2012, 16:37 GMT
I have that symlink here: lrwxrwxrwx 1 root root 16 19. Apr 21:28 /usr/lib/nx/bin/nxagent -> /usr/bin/nxagent

no pkg own that link. maybe it's left there after some local tests. I guess adding that single symlink will be enough. for safety I can add the other two links as well.

Loading...