Issue 4 in neatx: Unable to open display nx/nx,product=Neatx-GPL...

117 views
Skip to first unread message

codesite...@google.com

unread,
Jul 17, 2009, 12:30:23 PM7/17/09
to ne...@googlegroups.com

Comment #11 on issue 4 by desoxyrebonukleinsaure: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

Somehow same problem here, Version 0.3.1, with this little patch:
<http://aur.archlinux.org/packages/neatx/neatx/constants.archlinux.patch> .

nxnode[2140]: INFO node:366 Starting xrdb
nxnode[2140]: INFO daemon:486 Starting program, executable=None,
args=['/usr/bin/xrdb', '-merge']
nxnode[2140]: DEBUG session:283 Writing
session 'E37FC58796CA5B6830D2670DF10C6EAB' to
'/var/lib/neatx/sessions/E37FC58796CA5B6830D2670DF10C6EAB/neatx.data'
nxnode[2140]: DEBUG daemon:456 /opt/NX/bin/nxagent stderr: Error: Aborting
session
with 'Unable to open display 'nx/nx,product=Neatx-
GPL,render=1,composite=1,accept=127.0.0.1,cookie=93C1E56B5B498C90B16A9C28685AA6F0,id=
umbriel-673-
E37FC58796CA5B6830D2670DF10C6EAB,shpix=1,strict=0,clipboard=both,shmem=1,type=applica
tion,cleanup=0,backingstore=1:673''.
nxnode[2140]: ERROR agent:345 Agent error: Aborting session with 'Unable to
open
display 'nx/nx,product=Neatx-
GPL,render=1,composite=1,accept=127.0.0.1,cookie=93C1E56B5B498C90B16A9C28685AA6F0,id=
umbriel-673-
E37FC58796CA5B6830D2670DF10C6EAB,shpix=1,strict=0,clipboard=both,shmem=1,type=applica
tion,cleanup=0,backingstore=1:673''.
nxnode[2140]: DEBUG daemon:456 /opt/NX/bin/nxagent stderr: Session:
Aborting session
at 'Fri Jul 17 12:03:42 2009'.
nxnode[2140]: INFO agent:376 Nxagent changed status from 'starting'
to 'terminating'
nxnode[2140]: DEBUG session:283 Writing
session 'E37FC58796CA5B6830D2670DF10C6EAB' to
'/var/lib/neatx/sessions/E37FC58796CA5B6830D2670DF10C6EAB/neatx.data'
nxnode[2140]: DEBUG daemon:456 /opt/NX/bin/nxagent stderr: Session: Session
aborted
at 'Fri Jul 17 12:03:42 2009'.
nxnode[2140]: INFO agent:376 Nxagent changed status from 'terminating' to
'terminated'
nxnode[2140]: INFO agent:425 Nxagent terminated

the .data-File exists.
Do you need any more infos?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Jul 20, 2009, 1:18:01 PM7/20/09
to ne...@googlegroups.com

Comment #12 on issue 4 by kormat: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

I've tried to reproduce this on ubuntu 9.04 32bit and 64bit, no luck so
far. Can you
guys confirm that you're running the latest revision from svn (currently
r19), just in
case any fixes have gone in since that make it work now?

codesite...@google.com

unread,
Jul 20, 2009, 2:16:45 PM7/20/09
to ne...@googlegroups.com

Comment #13 on issue 4 by descentspb: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

With the latest svn, which probably added some more debugging output to
syslog, I
think I figured out what the problem was. Though I don't know how to solve
that
normally.

nxagent was saying: refusing connection from 192.168.69.130, which is one
of my
local IP's, and in it's cmd arguments was only accept=127.0.0.1.

If I launch 2 python programs like these:
>>> s = socket.socket()
>>> s.bind(('localhost', 10000))
>>> s.listen(1)
>>> s.accept()

>>> import socket
>>> s = socket.socket()
>>> s.connect(('localhost', 10000))

The first one outputs
(<socket._socketobject object at 0x7f51d1c23c90>, ('192.168.69.130', 59935))

So the "client" address is always this one 192.168.69.130, and not 127.0.0.1

I don't know how to fix it, and why this happens. Adding a route to
127.0.0.0/8
through loopback interface did not help.

I hacked the agent.py file, and changed the "accept" line there to this
address and
finally I had the client run and connect successfully, though freezing
after several
seconds, but that is definitely another story.

codesite...@google.com

unread,
Jul 20, 2009, 7:05:45 PM7/20/09
to ne...@googlegroups.com

Comment #14 on issue 4 by desoxyrebonukleinsaure: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

still the "old" version, hacking the agent.py did not change anything,
nither did some
hacking via /etc/hosts, moving the localhost or hostname around
(letting "localhost"
resolve to the external or lo-IP).

might be able to update the next days.

codesite...@google.com

unread,
Jul 21, 2009, 6:17:00 AM7/21/09
to ne...@googlegroups.com

Comment #15 on issue 4 by desoxyrebonukleinsaure: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

still the same error on latest SVN-Revion (r21):

Jul 21 12:19:41 umbriel nxnode[23984]: INFO node:366 Starting xrdb
Jul 21 12:19:41 umbriel nxnode[23984]: INFO daemon:486 Starting program,


executable=None, args=['/usr/bin/xrdb', '-merge']

Jul 21 12:19:41 umbriel nxnode[23984]: DEBUG session:288 Writing session
'79AB7CBC3959A75409B076F58333F61C' to
'/var/lib/neatx/sessions/79AB7CBC3959A75409B076F58333F61C/neatx.data'
Jul 21 12:19:42 umbriel nxnode[23984]: DEBUG daemon:456 /opt/NX/bin/nxagent

stderr:
Error: Aborting session with 'Unable to open display 'nx/nx,product=Neatx-

GPL,render=1,composite=1,accept=127.0.0.1,cookie=F524468B0F5E0C22B09EDEDCA37FA1DF,id=
umbriel-824-
79AB7CBC3959A75409B076F58333F61C,shpix=1,strict=0,clipboard=both,shmem=1,type=applica
tion,cleanup=0,backingstore=1:824''.
Jul 21 12:19:42 umbriel nxnode[23984]: ERROR agent:346 Agent error:

Aborting session
with 'Unable to open display 'nx/nx,product=Neatx-

GPL,render=1,composite=1,accept=127.0.0.1,cookie=F524468B0F5E0C22B09EDEDCA37FA1DF,id=
umbriel-824-
79AB7CBC3959A75409B076F58333F61C,shpix=1,strict=0,clipboard=both,shmem=1,type=applica
tion,cleanup=0,backingstore=1:824''.
Jul 21 12:19:42 umbriel nxnode[23984]: DEBUG daemon:456 /opt/NX/bin/nxagent
stderr:
Session: Aborting session at 'Tue Jul 21 12:19:41 2009'.
Jul 21 12:19:42 umbriel nxnode[23984]: INFO agent:377 Nxagent changed

status from
'starting' to 'terminating'

Jul 21 12:19:42 umbriel nxnode[23984]: DEBUG session:288 Writing session
'79AB7CBC3959A75409B076F58333F61C' to
'/var/lib/neatx/sessions/79AB7CBC3959A75409B076F58333F61C/neatx.data'
Jul 21 12:19:42 umbriel nxnode[23984]: DEBUG daemon:456 /opt/NX/bin/nxagent
stderr:
Session: Session aborted at 'Tue Jul 21 12:19:41 2009'.
Jul 21 12:19:42 umbriel nxnode[23984]: INFO agent:377 Nxagent changed

status from
'terminating' to 'terminated'

Jul 21 12:19:42 umbriel nxnode[23984]: INFO agent:426 Nxagent terminated


"ping localhost" pings 127.0.0.1
"ping `hostname`" pings the external IP

running 2.6.30-ARCH, Archlinux.

codesite...@google.com

unread,
Jul 21, 2009, 2:51:51 PM7/21/09
to ne...@googlegroups.com

Comment #16 on issue 4 by flyaaway: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

Try to install pygobject and netcat, desoxyrebonukleinsaure.

Ralph Corderoy

unread,
Jul 22, 2009, 9:12:06 AM7/22/09
to ne...@googlegroups.com

Hi descentspb,

> If I launch 2 python programs like these:
> >>> s = socket.socket()
> >>> s.bind(('localhost', 10000))
> >>> s.listen(1)
> >>> s.accept()
>
> >>> import socket
> >>> s = socket.socket()
> >>> s.connect(('localhost', 10000))
>
> The first one outputs
> (<socket._socketobject object at 0x7f51d1c23c90>, ('192.168.69.130', 59935))

Well, 192.168.69.130 is being passed back by accept(2) from the kernel
so I can only suggest having a poke around its data, e.g. /proc/net/tcp,
ifconfig(8) output, etc. whilst the connection is made to see if that
gives any clues.

codesite...@google.com

unread,
Jul 22, 2009, 12:08:50 PM7/22/09
to ne...@googlegroups.com

Comment #17 on issue 4 by desoxyrebonukleinsaure: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

netcat was not installed ;)

the error did not really change ;)

Jul 22 18:11:00 umbriel nxnode[27924]: INFO agent:377 Nxagent changed
status from
'created' to 'starting'
Jul 22 18:11:00 umbriel nxnode[27924]: INFO node:366 Starting xrdb
Jul 22 18:11:00 umbriel nxnode[27924]: INFO daemon:486 Starting program,


executable=None, args=['/usr/bin/xrdb', '-merge']

Jul 22 18:11:00 umbriel nxnode[27924]: DEBUG session:288 Writing session
'3FC9C82240E7F90AB70033AE03BABC4B' to
'/var/lib/neatx/sessions/3FC9C82240E7F90AB70033AE03BABC4B/neatx.data'
Jul 22 18:11:00 umbriel nxnode[27924]: DEBUG daemon:456 /opt/NX/bin/nxagent

stderr:
Error: Aborting session with 'Unable to open display 'nx/nx,product=Neatx-

GPL,render=1,composite=1,accept=127.0.0.1,cookie=F58C17C48AB06357939AC9EDA71390CC,id=
umbriel-823-
3FC9C82240E7F90AB70033AE03BABC4B,shpix=1,strict=0,clipboard=both,shmem=1,type=applica
tion,cleanup=0,backingstore=1:823''.
Jul 22 18:11:00 umbriel nxnode[27924]: ERROR agent:346 Agent error:

Aborting session
with 'Unable to open display 'nx/nx,product=Neatx-

GPL,render=1,composite=1,accept=127.0.0.1,cookie=F58C17C48AB06357939AC9EDA71390CC,id=
umbriel-823-
3FC9C82240E7F90AB70033AE03BABC4B,shpix=1,strict=0,clipboard=both,shmem=1,type=applica
tion,cleanup=0,backingstore=1:823''.
Jul 22 18:11:00 umbriel nxnode[27924]: DEBUG daemon:456 /opt/NX/bin/nxagent
stderr:
Session: Aborting session at 'Wed Jul 22 18:11:00 2009'.
Jul 22 18:11:00 umbriel nxnode[27924]: INFO agent:377 Nxagent changed

status from
'starting' to 'terminating'

Jul 22 18:11:00 umbriel nxnode[27924]: DEBUG session:288 Writing session
'3FC9C82240E7F90AB70033AE03BABC4B' to
'/var/lib/neatx/sessions/3FC9C82240E7F90AB70033AE03BABC4B/neatx.data'
Jul 22 18:11:00 umbriel nxnode[27924]: DEBUG daemon:456 /opt/NX/bin/nxagent
stderr:
Session: Session aborted at 'Wed Jul 22 18:11:00 2009'.
Jul 22 18:11:00 umbriel nxnode[27924]: INFO agent:377 Nxagent changed

status from
'terminating' to 'terminated'


# pacman -Qi gnu-netcat|grep Ver
Version : 0.7.1-2
# pacman -Qi pygobject|grep Ver
Version : 2.18.0-1

codesite...@google.com

unread,
Jul 22, 2009, 12:25:02 PM7/22/09
to ne...@googlegroups.com

Comment #18 on issue 4 by ralph.corderoy: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

It's the kernel that's filling in the network interface's IP address when
accept(2)
returns the peer's address instead of the 127.0.0.1 that you'd expect from
your
sample Python scripts. Does the output of `ifconfig -a' and `netstat -rn'
give any
clues?

codesite...@google.com

unread,
Jul 22, 2009, 1:19:26 PM7/22/09
to ne...@googlegroups.com

Comment #19 on issue 4 by kormat: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

This is really weird. Can you guys paste the entire logs for one attempt,
please?
(The first entry is something like this: nxserver-login-wrapper[3501]:
Started).
There might be some context in the logs that i'm missing. Thanks.

codesite...@google.com

unread,
Jul 22, 2009, 5:13:34 PM7/22/09
to ne...@googlegroups.com

Comment #20 on issue 4 by desoxyrebonukleinsaure: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

Log:
http://finkregh.pastebin.com/f7d6dff89

/etc/hosts:
192.168.0.25 umbriel
127.0.0.1 localhost.localdomain localhost

neatx.data:
{
"username": "finkregh",
"fullscreen": false,
"rootless": true,
"name": "umbriel-twm",
"virtualdesktop": false,
"geometry": "640x480",
"hostname": "umbriel",
"state": "terminated",
"id": "XX",
"port": null,
"ssl": true,
"screeninfo": "800x600x32+render",
"options": null,
"cookie": "XX",
"_updated": 1248297219.553695,
"type": "unix-application",
"display": 244,
"subscription": "GPL"
}

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state
UNKNOWN
qlen 1000
link/ether 00:0c:29:6b:24:fa brd ff:ff:ff:ff:ff:ff
inet 192.168.0.25/24 brd 192.168.0.255 scope global eth0
inet6 fe80::20c:29ff:fe6b:24fa/64 scope link
valid_lft forever preferred_lft forever

:)

codesite...@google.com

unread,
Jul 23, 2009, 10:37:51 AM7/23/09
to ne...@googlegroups.com

Comment #21 on issue 4 by baranovich: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

kormat, here is an entire log from just now (rvsn 24):

Jul 23 10:34:57 sorberd-dev-box nxserver-login-wrapper[3531]: Started
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'HELLO
NXSERVER - Version 3.3.0 - GPL\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'NX> 105 '
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:227
<<< 'hello
NXCLIENT - Version 3.3.0\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'Hello
nxclient - version 3.3.0\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG
nxserver_login:111 Got
client protocol version 3030000 ('3.3.0'), want 3030000
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'NX> 134
Accepted protocol: 3.3.0\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'NX> 105 '
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:227
<<< 'SET
AUTH_MODE PASSWORD\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'Set
AUTH_MODE: PASSWORD\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'NX> 105 '
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:227
<<< 'login\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'Login\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'NX> 101
User: '
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:227
<<< 'sorberd\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> '\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172
>>> 'NX> 102
Password: '
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:225
<<< [hidden]
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG protocol:172 >>>
'**********\n'
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: INFO
nxserver_login:248 Trying
login for user sorberd
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG auth:50
Authenticating as
'sorberd', running
['/usr/local/lib/neatx/nxserver', '--proto=3030000', '--', 'sorberd']
Jul 23 10:34:58 sorberd-dev-box nxserver-login[3535]: DEBUG auth:53 Auth
command
['/usr/local/lib/neatx/ttysetup', '/bin/su', 'sorberd', '-c', 'cd &&
/usr/local/lib/neatx/nxserver --proto=3030000 -- sorberd']
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: INFO nxserver:689 Starting
nxserver
for user sorberd
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172 >>> 'NX>
103
Welcome to: sorberd-dev-box user: sorberd\n'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172 >>> 'NX>
105 '
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:227 <<< '
listsession
--user="sorberd" --status="suspended,running"
--geometry="1280x1024x32+render"
--type="unix-gnome"\n'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172
>>> 'Listsession
--user="sorberd" --status="suspended,running"
--geometry="1280x1024x32+render"
--type="unix-gnome"\n'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG nxserver:315 Looking
for
sessions with types=['unix-gnome'], state=['suspended', 'running']
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172 >>> "NX>
127
Session list of user 'sorberd':\n"
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172
>>> 'Display Type
Session ID Options Depth Screen
Status
Session Name\n'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172
>>> '-------
---------------- -------------------------------- -------- -----
--------------
----------- ------------------------------\n'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172 >>> '\n'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172 >>> 'NX>
148
Server capacity: not reached for user: sorberd\n'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172 >>> 'NX>
105 '
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:227
<<< 'startsession
--link="lan" --backingstore="1" --encryption="1" --cache="16M"
--images="64M"
--shmem="1" --shpix="1" --strict="0" --composite="1" --media="0"
--session="sorberd-dev-box" --type="unix-gnome" --geometry="1280x996"
--client="winnt" --keyboard="pc102/en_US"
--screeninfo="1280x996x32+render"\n'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG protocol:172
>>> 'Start session
with: --link="lan" --backingstore="1" --encryption="1" --cache="16M"
--images="64M"
--shmem="1" --shpix="1" --strict="0" --composite="1" --media="0"
--session="sorberd-dev-box" --type="unix-gnome" --geometry="1280x996"
--client="winnt" --keyboard="pc102/en_US"
--screeninfo="1280x996x32+render"\n'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: INFO nxserver:377 Starting
new
session '68CCB3D0518CDC831F47D0D417F928AA'
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG nxserver:645
Connecting to nxnode
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: INFO node:514 Connecting to
'/usr/local/var/lib/neatx/sessions/68CCB3D0518CDC831F47D0D417F928AA/nxnode.sock'
Jul 23 10:34:58 sorberd-dev-box nxnode-wrapper[3553]: Started
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: DEBUG nxnode:301 Starting
mainloop
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG nxserver:385 Sending
startsession command
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG node:551 Sending
request:
{'cmd': 'start', 'args':
{'composite': '1', 'encryption': '1', 'cache': '16M',
'geometry': '1280x996', 'client': 'winnt', 'strict': '0', 'screeninfo':
'1280x996x32+render', 'session': 'sorberd-dev-box', 'link': 'lan', 'shmem': '1',
'media': '0', 'images': '64M', 'keyboard': 'pc102/en_US', 'type': 'unix-gnome',
'shpix': '1', 'backingstore': '1'}}
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: INFO nxnode:266 Connection
established
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: INFO nxnode:81 Received
request:
u'start', {u'session': u'sorberd-dev-box', u'strict': u'0', u'composite':
u'1',
u'encryption': u'1', u'cache': u'16M', u'geometry': u'1280x996',
u'screeninfo':
u'1280x996x32+render', u'client': u'winnt', u'link': u'lan', u'shmem': u'1',
u'media': u'0', u'images': u'64M', u'keyboard': u'pc102/en_US', u'type':
u'unix-gnome', u'shpix': u'1', u'backingstore': u'1'}
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: DEBUG node:97 Trying display
number 60
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: DEBUG node:106 Display number
60
appears to be unused
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: INFO node:290 Starting xauth
for
[(':60', '553E12FFF735C3628750EEAD0A1227DC'), ('localhost:60',
'553E12FFF735C3628750EEAD0A1227DC')]
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: INFO daemon:486 Starting
program,
executable=None, args=['/usr/bin/xauth', '-f',
'/usr/local/var/lib/neatx/sessions/68CCB3D0518CDC831F47D0D417F928AA/authority']
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: DEBUG daemon:456
/usr/bin/xauth stderr:
/usr/bin/xauth: creating new authority file
/usr/local/var/lib/neatx/sessions/68CCB3D0518CDC831F47D0D417F928AA/authority
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG node:558 Received
response:
{u'result': True, u'success': True}
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: INFO nxserver:594 Waiting
for session
'68CCB3D0518CDC831F47D0D417F928AA' to achieve waiting status
Jul 23 10:34:58 sorberd-dev-box nxserver[3548]: DEBUG session:248 Loading
session
68CCB3D0518CDC831F47D0D417F928AA from
/usr/local/var/lib/neatx/sessions/68CCB3D0518CDC831F47D0D417F928AA/neatx.data
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: DEBUG daemon:570
/usr/bin/xauth exited
cleanly
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: INFO node:325 Starting nxagent
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: DEBUG agent:203 Display for
nxagent:
u'nx/nx,product=Neatx-GPL,render=1,composite=1,accept=127.0.0.1,cookie=553E12FFF735C3628750EEAD0A1227DC,id=sorberd-dev-box-60-68CCB3D0518CDC831F47D0D417F928AA,shpix=1,strict=0,clipboard=both,shmem=1,type=gnome,cleanup=0,backingstore=1:60'
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: DEBUG agent:599 Writing
session options
u'fullscreen=0,client=winnt,link=lan,keyboard=pc102/en_US,geometry=1280x996,images=64M,cache=16M,resize=0:60'
to
/usr/local/var/lib/neatx/sessions/68CCB3D0518CDC831F47D0D417F928AA/options
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: INFO daemon:486 Starting
program,
executable=None, args=['/usr/bin/nxagent', '-D', '-name', u'Neatx -
sorberd@sorberd-dev-box:60 - sorberd-dev-box', '-options',
'/usr/local/var/lib/neatx/sessions/68CCB3D0518CDC831F47D0D417F928AA/options',
'-nolisten', 'tcp', ':60']
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: DEBUG daemon:456
/usr/bin/nxagent
stderr: /usr/bin/nxagent: error while loading shared libraries:
libXcompext.so.3:
cannot open shared object file: No such file or directory
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: ERROR daemon:573
/usr/bin/nxagent
failed (status=127, signal=None)
Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: INFO node:345 nxagent
terminated
Jul 23 10:34:58 sorberd-dev-box nxnode-wrapper[3553]: EOF on stderr, exiting
Jul 23 10:34:59 sorberd-dev-box nxserver[3548]: DEBUG session:248 Loading
session
68CCB3D0518CDC831F47D0D417F928AA from
/usr/local/var/lib/neatx/sessions/68CCB3D0518CDC831F47D0D417F928AA/neatx.data
Jul 23 10:35:29 sorberd-dev-box last message repeated 30 times
Jul 23 10:35:29 sorberd-dev-box nxserver[3548]: ERROR nxserver:600 Session
68CCB3D0518CDC831F47D0D417F928AA has not achieved waiting status within 30
seconds
Jul 23 10:35:29 sorberd-dev-box nxserver[3548]: DEBUG protocol:172 >>> "NX>
500
Session didn't become ready in time\n"
Jul 23 10:35:29 sorberd-dev-box nxserver[3548]: DEBUG protocol:172 >>> 'NX>
999 Bye.\n'
Jul 23 10:35:29 sorberd-dev-box nxserver[3548]: DEBUG nxserver:701 No
nxagent port,
not starting netcat
Jul 23 10:35:29 sorberd-dev-box nxserver-login[3535]: DEBUG auth:132 fdcopy
exited
(exitstatus=0, signum=None)
Jul 23 10:35:29 sorberd-dev-box nxserver-login[3535]: INFO auth:141 Waiting
for
authenticated program to finish

codesite...@google.com

unread,
Jul 23, 2009, 2:59:26 PM7/23/09
to ne...@googlegroups.com
Updates:
Status: Accepted

Comment #22 on issue 4 by kormat: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

Ok, i think we have a number of different issues here.

@baranvich:
Your session failed because of this:

Jul 23 10:34:58 sorberd-dev-box nxnode[3555]: DEBUG daemon:456
/usr/bin/nxagent
stderr: /usr/bin/nxagent: error while loading shared libraries:
libXcompext.so.3:
cannot open shared object file: No such file or directory

That means nxagent is missing one of it's main libraries, and isn't able to
start.
This is a different error to what you had before, have you maybe changed
something?


@descentspb
Nxagent refusing a connection from a wrong IP is a different issue to the
original
one you were having. I'm rather baffled by it. The connection nxagent sees
comes from
netcat, run by nxserver. You could try telling nxserver to always run
netcat against
localhost, to see if that changes anything. In lib/app/nxserver.py, change
line 719
from:

args = [constants.NETCAT, "--", host, str(port)]

to:

args = [constants.NETCAT, "--", "localhost", str(port)]

and see if that makes any difference.


@desoxyrebonukleinsaure

Thanks for the log, i don't immediately see what could be causing the
problem i'm
afraid. I'll go back over it most closely when i get a chance. Can you try
running
this please, and tell me what happens:

nxagent -R -display nx/nx,link=modem:8 :2

Thanks.

Steve

codesite...@google.com

unread,
Jul 23, 2009, 3:52:02 PM7/23/09
to ne...@googlegroups.com

Comment #23 on issue 4 by desoxyrebonukleinsaure: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

@Steve:

$ nxagent -R -display nx/nx,link=modem:8 :2

NXAGENT - Version 3.3.0

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

Info: Agent running with pid '22240'.
Session: Starting session at 'Thu Jul 23 21:59:36 2009'.
Error: Aborting session with 'Unable to open display 'nx/nx,link=modem:8''.
Session: Aborting session at 'Thu Jul 23 21:59:36 2009'.
Session: Session aborted at 'Thu Jul 23 21:59:36 2009'.


just to make that clear, i connect via Windows Vista, and i ran that
command via
putty w/o X-Server in windows-side...

codesite...@google.com

unread,
Jul 23, 2009, 4:00:08 PM7/23/09
to ne...@googlegroups.com

Comment #24 on issue 4 by kormat: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

@desoxyrebonukleinsaure

Ah hah. Ok. I'm afraid the problem so is with your version of nxagent, as
far as i
can tell. For comparison, here's what should happen when you run that:

diamond@asher:~(0:0)$ nxagent -R -display nx/nx,link=modem:8 :2

NXAGENT - Version 3.3.0

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

Info: Agent running with pid '13057'.
Session: Starting session at 'Thu Jul 23 21:57:00 2009'.
Info: Proxy running in server mode with pid '13057'.
Info: Waiting for connection from any host on port '4008'.


In your case, nxagent is exiting before it even gets to the waiting stage.

codesite...@google.com

unread,
Jul 23, 2009, 4:04:09 PM7/23/09
to ne...@googlegroups.com

Comment #25 on issue 4 by kormat: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

@desoxyrebonukleinsaure

Does /tmp/.X11-unix exist, does it have these perms?

drwxrwxrwt 2 root root 40 2009-07-23 21:58 /tmp/.X11-unix

codesite...@google.com

unread,
Jul 23, 2009, 5:27:51 PM7/23/09
to ne...@googlegroups.com

Comment #26 on issue 4 by descentspb: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

about libXcompext.so.3:

i also had these problems with the libraries, but through

ldd /usr/NX/bin/nxagent

I figured out, which ones exactly it could not find, and made links to
corresponding
libraries from /usr/NX/lib in /usr/local.
I tried also to put /usr/NX/lib into /etc/ld.so.conf, but some system
binaries
failed to start after that

codesite...@google.com

unread,
Jul 23, 2009, 5:32:54 PM7/23/09
to ne...@googlegroups.com

Comment #27 on issue 4 by descentspb: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

@kormat:

sorry, mate, I am willing to help solve that issue, but I should leave for
a couple
of weeks, and I will be left without any internet connection for that time.

As about library linking, I suggest that you should start nxagent with
LD_LIBRARY_PATH environment variable set to e.g. /usr/NX/lib

codesite...@google.com

unread,
Jul 26, 2009, 5:58:11 PM7/26/09
to ne...@googlegroups.com

Comment #28 on issue 4 by desoxyrebonukleinsaure: Unable to open display
nx/nx,product=Neatx-GPL...
http://code.google.com/p/neatx/issues/detail?id=4

@kormat:
drwxrwxrwt 2 root root 4096 2009-07-27 00:04 .X11-unix


log from svn-r29:
Jul 27 00:04:42 umbriel nxserver[5621]: DEBUG nxserver:645 Connecting to
nxnode
Jul 27 00:04:42 umbriel nxserver[5621]: INFO node:514 Connecting to
'/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/nxnode.sock'
Jul 27 00:04:42 umbriel nxnode-wrapper[5624]: Started
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG nxnode:301 Starting mainloop
Jul 27 00:04:42 umbriel nxserver[5621]: DEBUG nxserver:385 Sending
startsession
command
Jul 27 00:04:42 umbriel nxserver[5621]: DEBUG node:551 Sending request:
{'cmd':
'start', 'args': {'kbload': '
--kbload=pc102/de', 'client': 'winnt', 'rootless': '1',
'strict': '0', 'composite': '1', 'encryption': '1', 'cache': '16M', 'keymap': '
--
keymap=de', 'shpix': '1', 'application': 'xterm', 'screeninfo':
'1600x1124x32+render', 'session': 'umbriel', 'link': 'adsl', 'shmem': '1', 'media':
'0', 'images': '64M', 'keyboard': 'pc102/de', 'aux': '1', 'type': 'unix-application',
'virtualdesktop': '0', 'backingstore': '1'}}
Jul 27 00:04:42 umbriel nxnode[5626]: INFO nxnode:266 Connection established
Jul 27 00:04:42 umbriel nxnode[5626]: INFO nxnode:81 Received
request: 'start',
{'session': 'umbriel', 'kbload': '
--kbload=pc102/de', 'rootless': '1', 'keymap': ' -
-keymap=de', 'composite': '1', 'encryption': '1', 'images': '64M', 'cache': '16M',
'virtualdesktop': '0', 'strict': '0', 'screeninfo': '1600x1124x32+render', 'client':
'winnt', 'link': 'adsl', 'shmem': '1', 'media': '0', 'application': 'xterm',
'keyboard': 'pc102/de', 'aux': '1', 'type': 'unix-application', 'shpix': '1',
'backingstore': '1'}
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG node:97 Trying display number
169
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG node:106 Display number 169
appears to be
unused
Jul 27 00:04:42 umbriel nxnode[5626]: INFO node:290 Starting xauth for
[(':169',
'750FF8E879A2AB59D656F7EAF530B182'), ('localhost:169',
'750FF8E879A2AB59D656F7EAF530B182')]
Jul 27 00:04:42 umbriel nxnode[5626]: INFO daemon:486 Starting program,


executable=None, args=['/usr/bin/xauth', '-f',

'/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/authority']
Jul 27 00:04:42 umbriel nxnode[5626]: INFO daemon:514 Child pid 5629
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/xauth

stderr:
/usr/bin/xauth: creating new authority file

/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/authority
Jul 27 00:04:42 umbriel nxserver[5621]: DEBUG node:558 Received response:
{'result':
True, 'success': True}
Jul 27 00:04:42 umbriel nxserver[5621]: INFO nxserver:594 Waiting for
session
'E20E94D4A008691A310018B30B40AC1E' to achieve waiting status
Jul 27 00:04:42 umbriel nxserver[5621]: DEBUG session:248 Loading session
E20E94D4A008691A310018B30B40AC1E from
/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/neatx.data
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:571 /usr/bin/xauth
exited cleanly
Jul 27 00:04:42 umbriel nxnode[5626]: INFO node:325 Starting nxagent
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG agent:203 Display for nxagent:
'nx/nx,product=Neatx-
GPL,render=1,composite=1,accept=127.0.0.1,cookie=750FF8E879A2AB59D656F7EAF530B182,id=
umbriel-169-
E20E94D4A008691A310018B30B40AC1E,shpix=1,strict=0,clipboard=both,shmem=1,type=applica
tion,cleanup=0,backingstore=1:169'
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG agent:599 Writing session
options
'fullscreen=0,client=winnt,link=adsl,keyboard=pc102/de,geometry=640x480,images=64M,ca
che=16M,resize=0:169' to
/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/options
Jul 27 00:04:42 umbriel nxnode[5626]: INFO daemon:486 Starting program,
executable=None, args=['/usr/bin/nxagent', '-R', '-name', 'Neatx -
finkregh@umbriel:169 - umbriel', '-options',
'/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/options', '-nolisten',
'tcp', ':169']
Jul 27 00:04:42 umbriel nxnode[5626]: INFO daemon:514 Child pid 5630
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr:
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr:
NXAGENT - Version 3.3.0
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr:
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr:


Copyright (C) 2001, 2007 NoMachine.

Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr: See


http://www.nomachine.com/ for more information.

Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr:
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr: Info:
Agent running with pid '5630'.
Jul 27 00:04:42 umbriel nxnode[5626]: INFO agent:316 Matched info
agent_pid, PID 5630
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr:
Session: Starting session at 'Mon Jul 27 00:04:42 2009'.
Jul 27 00:04:42 umbriel nxnode[5626]: INFO agent:377 Nxagent changed status
from
'created' to 'starting'
Jul 27 00:04:42 umbriel nxnode[5626]: INFO node:366 Starting xrdb
Jul 27 00:04:42 umbriel nxnode[5626]: INFO daemon:486 Starting program,
executable=None, args=['/usr/bin/xrdb', '-merge']
Jul 27 00:04:42 umbriel nxnode[5626]: INFO daemon:514 Child pid 5631
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG session:288 Writing session
'E20E94D4A008691A310018B30B40AC1E' to
'/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/neatx.data'
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr:
Error: Aborting session with 'Unable to open display 'nx/nx,product=Neatx-
GPL,render=1,composite=1,accept=127.0.0.1,cookie=750FF8E879A2AB59D656F7EAF530B182,id=
umbriel-169-
E20E94D4A008691A310018B30B40AC1E,shpix=1,strict=0,clipboard=both,shmem=1,type=applica
tion,cleanup=0,backingstore=1:169''.
Jul 27 00:04:42 umbriel nxnode[5626]: ERROR agent:346 Agent error: Aborting
session
with 'Unable to open display 'nx/nx,product=Neatx-
GPL,render=1,composite=1,accept=127.0.0.1,cookie=750FF8E879A2AB59D656F7EAF530B182,id=
umbriel-169-
E20E94D4A008691A310018B30B40AC1E,shpix=1,strict=0,clipboard=both,shmem=1,type=applica
tion,cleanup=0,backingstore=1:169''.
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr:
Session: Aborting session at 'Mon Jul 27 00:04:42 2009'.
Jul 27 00:04:42 umbriel nxnode[5626]: INFO agent:377 Nxagent changed status
from
'starting' to 'terminating'
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG session:288 Writing session
'E20E94D4A008691A310018B30B40AC1E' to
'/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/neatx.data'
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG daemon:456 /usr/bin/nxagent
stderr:
Session: Session aborted at 'Mon Jul 27 00:04:42 2009'.
Jul 27 00:04:42 umbriel nxnode[5626]: INFO agent:377 Nxagent changed status
from
'terminating' to 'terminated'
Jul 27 00:04:42 umbriel nxnode[5626]: INFO agent:426 Nxagent terminated
Jul 27 00:04:42 umbriel nxnode[5626]: DEBUG session:288 Writing session
'E20E94D4A008691A310018B30B40AC1E' to
'/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/neatx.data'
Jul 27 00:04:42 umbriel nxnode[5626]: ERROR daemon:574 /usr/bin/nxagent
failed
(status=1, signal=None)
Jul 27 00:04:42 umbriel nxnode[5626]: INFO node:345 nxagent terminated
Jul 27 00:04:42 umbriel nxnode-wrapper[5624]: EOF on stderr, exiting
Jul 27 00:04:42 umbriel nxserver[5621]: DEBUG session:248 Loading session
E20E94D4A008691A310018B30B40AC1E from
/var/lib/neatx/sessions/E20E94D4A008691A310018B30B40AC1E/neatx.data
Jul 27 00:04:42 umbriel nxserver[5621]: ERROR nxserver:586 Session
'E20E94D4A008691A310018B30B40AC1E' has status 'terminated'
Jul 27 00:04:42 umbriel nxserver[5621]: DEBUG protocol:172 >>> "NX> 500
Error:
Session 'E20E94D4A008691A310018B30B40AC1E' has status 'terminated',
aborting\n"
Jul 27 00:04:42 umbriel nxserver[5621]: DEBUG protocol:172 >>> 'NX> 999
Bye.\n'
Jul 27 00:04:42 umbriel nxserver[5621]: DEBUG nxserver:701 No nxagent port,
not
starting netcat
Jul 27 00:04:42 umbriel nxserver-login[5615]: DEBUG auth:132 fdcopy exited
(exitstatus=0, signum=None)
Jul 27 00:04:42 umbriel nxserver-login[5615]: INFO auth:141 Waiting for
authenticated
program to finish
Jul 27 00:04:42 umbriel nxserver-login[5615]: DEBUG auth:151 Authenticated
program
finished (exitstatus=0, signalstatus=None)
Jul 27 00:04:42 umbriel nxserver-login-wrapper[5612]: EOF on stderr, exiting

Reply all
Reply to author
Forward
0 new messages