Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FreeNX:Error: nxagent failed to start. Session timed out.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ticapix
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 138
Location: France, Paris

PostPosted: Wed Sep 29, 2004 10:27 pm    Post subject: FreeNX:Error: nxagent failed to start. Session timed out. Reply with quote

Hello,

I have just try the nxclient with the test on www.nomachine.com
it is amazing how fast it is for a such bandwidth !
I have emerge freenx 0.2.4 and try to connect to localhost.

First of all I saw that some binaries had problems like nxagent or nxdesktop
Code:

bin\:0>./nxdesktop
./nxdesktop.bin: error while loading shared libraries: /usr/NX/lib/libXcompext.so.1: undefined symbol: _NXEnableCleanGet


I have read that with
Code:

LD_LIBRARY_PATH=/usr/NX/lib /usr/NX/bin/nxdesktop

it will work and it is true. So I mv nxdesktop to nxdesktop.bin and create a file nxdesktop
with this in:
Code:

#!/bin/sh
LD_LIBRARY_PATH=/usr/NX/lib /usr/NX/bin/nxdesktop.bin "$@"

I made this for nxagent, nxdesktop, nxproxy and nxviewer.
First problem solved.

Second problem, I read that we can't try to connect localhost.
So I reboot my computer with no user logged and no X started, went to a friend I
try to connect home.

I have no KDE or GNOME installed just fluxbox.
So in Desktop I choose Custom and in Setting... Run the following command = "startx"
(Thing that I make at each boot. X doesn't start automatically at boot.)

I lauch the nxclient and every thing seems to go well:
good authentificaion, ..., establishment of X connection and then nothing the dialog box
disappers.

I made it several times. I start a normal ssh connexion make a ps -faux and see
that many X sessions were open.

I came back home and discoverd that I have a X server launch as if I have made startx
manually expect that the screen was freezzed.

I don't know if you really understand what I'm trying to explain.
Here is the log of one of my attemps:
Code:

 NX> 203 NXSSH running with pid: 20192
NX> 200 Connected to address: 62.39.234.39 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 1.4.0-02 OS_(GPL)
NX> 105 hello NXCLIENT - Version 1.3.2
NX> 134 Accepted protocol: 1.3.2
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: ticapix
NX> 102 Password:
NX> 103 Welcome to: Ticapix user: ticapix
NX> 105 startsession --session="pierre" --type="unix-application" --application="startx" --cache="8M" --images="32M" --cookie="1e4d99c83f317ed2b8ea9884ac9b536e" --link="wan" --virtualdesktop="0" --taint="1" --encryption="1" --backingstore="when_requested" --geometry="1400x1050" --media="0" --agent_server="" --agent_user="" --agent_password=""

NX> 1000 NXNODE - Version 1.4.0-02 "OS_(GPL)"
NX> 700 Session id: Ticapix-1001-2288C26D0690EE8AE3A62AC3B5CBECEE
NX> 705 Session display: 1001
NX> 703 Session type: unix-application
NX> 701 Proxy cookie: 986aabc895dbf69fe7451bc88f21f564
NX> 702 Proxy IP: 127.0.0.1
NX> 706 Agent cookie: 1e4d99c83f317ed2b8ea9884ac9b536e
NX> 704 Session cache: unix-application
NX> 707 SSL tunneling: 1
NX> 710 Session status: running
NX> 1002 Commit
NX> 1006 Session status: running
NX> 105 NX> 1006 Session status: closed
quit
Quit
NX> 999 Bye
/usr/NX/bin/nxnode: line 541:  9391 Terminated              ( sleep 10; echo "NX> 1004 Error: nxagent failed to start. Session timed out."; echo "                Blocking $display again ..."; touch /tmp/.X$display-lock; kill $TAIL_PID )
/usr/NX/bin/nxnode: line 284: kill: (9393) - No such process
NX> 1001 Bye.


I dont't understand the : 1004 Error: nxagent failed to start. Session timed out.

If I run nxagent as normal user I get a:
Code:

ticapix\:0>nxagent

Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.

ticapix\:1>


Thank you for the help you could provide to me.

Ticapix
Back to top
View user's profile Send private message
ticapix
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 138
Location: France, Paris

PostPosted: Thu Sep 30, 2004 11:15 am    Post subject: Reply with quote

When I execute nxagent :1 I get this:
Code:

bin\:0>/usr/NX/bin/nxagent :1

NXAGENT - Version 1.4.0

Copyright (C) 2001, 2004 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Agent running with pid '11773'.
Info: Using fast copy area mode in agent.
Info: Using fast get image mode in agent.
Info: Using render cleanup parameters 8/20/23/24/25/26.
Info: Using render extension support in X server.
Info: Using image cleanup parameters 0/0/0/0.
Info: Not using local device configuration changes.
Info: Using alpha channel in render extension.

Fatal server error:
could not open default font 'fixed'
bin\:1>


Maybe the problem come from here.

I tried many tips to solve this with no succes.

Any idea ?
Back to top
View user's profile Send private message
borchi
n00b
n00b


Joined: 05 Dec 2002
Posts: 44

PostPosted: Thu Sep 30, 2004 12:26 pm    Post subject: Reply with quote

EXACTLY the same here. what's strange is that it used to work ok, but then i moved from xfree to xord and did a massive emerge -U world and now i get this error. maybe it is not related to the move from xfree to xorg or other updates but i can't think of anything else.

on the other box with exactly the same nxserver-freenx, nxproxy, nxcomp, nxssh, nx-x11, nxclient versions everything is working great!!!???
Back to top
View user's profile Send private message
ticapix
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 138
Location: France, Paris

PostPosted: Sat Oct 02, 2004 4:19 pm    Post subject: Reply with quote

Well I find a way to pass this problem doing this
rename nxagent to nxagent.bin
et create a nxagent file with chmod 755
Code:

$> cat nxagent
#!/bin/sh
LD_LIBRARY_PATH=/usr/NX/lib /usr/NX/bin/nxagent.bin -fp /usr/share/fonts/misc/ "$@"

see nxagent --help to find options:
-fc string cursor font
-fn string default font name
-fp string default font path

Now I have a window that open but with a black screen.

I have no KDE or GNOME so I fill Setting with
Desktop -> Custom and Setting.. -> Run the following command "startx"
But I get a blackscreen

Any idea ?

thank you.
---EDIT---
When I put in option "Run console" I have a console that appears.
form the server a nxserver --send ticapix "test" is working too.
From the displayed console I can launch Designer with no problem.
But I get trouble with emacs. I get this:
Code:

ticapix\:0>emacs
Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct

and emacs opens with ugly charecteres and almost all are small square.

It comes from surely the first bug that I fix by putting -fp /usr/share/fonst/misc/ but I have no other choice to make something working.

---EDIT---
startfluxbox is working Yeah, only two days to make it working but still
some big problem of fonts with some prgms like emacs that simply
says:
Code:

$> emacs
No fonts founds
$>

I try a /etc/init.d/xfs restart with no effect.
Back to top
View user's profile Send private message
gilxa1226
n00b
n00b


Joined: 05 May 2002
Posts: 66

PostPosted: Mon Jan 03, 2005 3:56 pm    Post subject: Reply with quote

[quote="borchi"]EXACTLY the same here. what's strange is that it used to work ok, but then i moved from xfree to xord and did a massive emerge -U world and now i get this error. maybe it is not related to the move from xfree to xorg or other updates but i can't think of anything else.

on the other box with exactly the same nxserver-freenx, nxproxy, nxcomp, nxssh, nx-x11, nxclient versions everything is working great!!!???[/quote]

It could be related to the move... I'm trying to sort out a problem where nxagent can't find libXcompext.so.1, it should be in the /usr/X11R6/lib dir, but it's not there, and I'm starting to wonder if that is because I have XOrg and not Xfree.
Back to top
View user's profile Send private message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Mon Mar 07, 2005 3:25 am    Post subject: Reply with quote

Just curious if anybody's gotten fluxbox to work with nxserver yet. Im having the same problems these guys are.
Back to top
View user's profile Send private message
mahir
l33t
l33t


Joined: 05 Dec 2003
Posts: 725
Location: London

PostPosted: Fri Oct 28, 2005 2:07 pm    Post subject: i get time out too but for different reason Reply with quote

i get timeout prob too
but when i type nxagent, i get this error

Code:
/usr/NX/lib/libXcompext.so.1: undefined symbol: _NXEnableCleanGet


any ideas friends?
_________________
"wa ma tawfiqi illah billah"
Mahir Sayar
Back to top
View user's profile Send private message
mahir
l33t
l33t


Joined: 05 Dec 2003
Posts: 725
Location: London

PostPosted: Fri Oct 28, 2005 2:36 pm    Post subject: grr Reply with quote

ok, i fixed that, what about this problem people?

Code:

==> nxserver.log <==
NX> 1004 Error: Session did not start.
NX> 504 Session startup failed.
NX> 999 Bye
NX> 1004 Error: nxagent failed to start. Session timed out.
                Blocking 1011 again ...
NX> 1001 Bye.
NX> 504 Session startup failed.


and,
Code:
NX> 1000 NXNODE - Version 1.4.0-04 OS (GPL)
NX> 700 Session id: jt-1011-5582BD25E3DF992AEAE2776EE8AF401F
NX> 705 Session display: 1011
NX> 703 Session type: unix-application
NX> 701 Proxy cookie: bccff32aafd70d4b6bd3364739991e7c
NX> 702 Proxy IP: 192.168.1.120
NX> 706 Agent cookie: 307b9b5e9a0ecd6437ddd389eb1c7396
NX> 704 Session cache: unix-application
NX> 707 SSL tunneling: 0
NX> 1004 Error: Session did not start.
NX> 504 Session startup failed.
NX> 999 Bye

_________________
"wa ma tawfiqi illah billah"
Mahir Sayar
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum