markcox / neatx

Automatically exported from code.google.com/p/neatx
0 stars 1 forks source link

nxserver-login: error: no such option: -c #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install neatx rpm built from r55 onto centos 5.4
2. attempt to connect to machine using nx client

What is the expected output? What do you see instead?
Expected successful connection, but it fails.. I check /var/log/messages, and 
all I get is:
Feb 18 15:55:41 localhost nxserver-login-wrapper[10886]: Usage
Feb 18 15:55:41 localhost nxserver-login-wrapper[10886]: =====
Feb 18 15:55:41 localhost nxserver-login-wrapper[10886]:   nxserver-login 
[options]
Feb 18 15:55:41 localhost nxserver-login-wrapper[10886]: nxserver-login: error: 
no such option: -c

What version of the product are you using? On what operating system?
rpm built from r55 on centos 5.4.  

Please provide any additional information below.
I modified the neatx.spec to use of pygobject 2.12

Original issue reported on code.google.com by jordan.d...@gmail.com on 19 Feb 2010 at 5:19

GoogleCodeExporter commented 9 years ago
Hum. What happens if you apply the following patch? I'm want to doublecheck 
that -c 
is being supplied to nxserver-login-wrapper.

diff --git a/autotools/gen-log-wrapper b/autotools/gen-log-wrapper
index df1bef1..2d7f482 100755
--- a/autotools/gen-log-wrapper
+++ b/autotools/gen-log-wrapper
@@ -20,10 +20,12 @@ log() {
   logger -t "\$PROGNAME[\$\$]" -p "user.\${PRIORITY:-crit}" -- "\$@"
 }

+PRIORITY=debug log "Called with args: \$@"
+
 # Duplicate stdout to fd 3
 exec 3>&1
 exec $1 "\$@" 2>&1 >&3 | {
-  PRIORITY=debug log "Started"
+  PRIORITY=debug log "Started $1 "\$@""
   while read; do
     log "\$REPLY"
   done

Original comment by kormat on 19 Feb 2010 at 2:09

GoogleCodeExporter commented 9 years ago
(This patch has been committed to svn, so if you update from there you won't 
need to 
do patching by hand)

Original comment by kormat on 19 Feb 2010 at 4:00

GoogleCodeExporter commented 9 years ago
Not sure what to think.. reinstalled using r58 and I couldn't regenerate the 
problem 
(b/c everything seemed to work).  Granted, I used a windows client last time, 
and I 
used a linux client this time, I don't think that should have had an impact, 
but who 
knows.  If I get in front of another windows machine I'll try it there, but for 
now it 
seems the problem is gone.

--Jordan

Original comment by jordan.d...@gmail.com on 20 Feb 2010 at 3:11

GoogleCodeExporter commented 9 years ago
Heh, ok, thanks for testing. I'm going to mark this NotRepeatable for now, if 
it comes 
back, please follow up here.

Original comment by kormat on 20 Feb 2010 at 11:39

GoogleCodeExporter commented 9 years ago
I am having precisely the same issue as described above.  I have tried r59 then 
r58
with identical results.  This is on Ubuntu 10.04 (Lucid).  Here are the log 
entries:

r58:
Apr  8 09:10:06 lnelson-desktop nxserver-login-wrapper[3557]: Called with args: 
Apr  8 09:10:06 lnelson-desktop nxserver-login-wrapper[3557]: Started /usr/local
/lib/neatx/nxserver-login 
Apr  8 09:10:06 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 'HE
LLO NXSERVER - Version 3.3.0 - GPL\n'
Apr  8 09:10:06 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 'NX
> 105 '
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:227 <<< 'he
llo NXCLIENT - Version 3.3.0\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 'He
llo nxclient - version 3.3.0\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG nxserver_login:111 G
ot client protocol version 3030000 ('3.3.0'), want 3030000
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 'NX
> 134 Accepted protocol: 3.3.0\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 'NX
> 105 '
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:227 <<< 'SE
T SHELL_MODE SHELL\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 
'Set
SHELL_MODE: SHELL\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 
'NX> 105 '
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:227 <<< 
'SET
AUTH_MODE PASSWORD\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 
'Set
AUTH_MODE: PASSWORD\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 
'NX> 105 '
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:227 <<< 
'login\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 
'Login\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 
'NX> 101
User: '
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:227 <<< 
'nx\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 
'nx\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 
'NX> 102
Password: '
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:225 <<< 
[hidden]
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>>
'**********\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: INFO nxserver_login:253 
Trying
login for user 'nx' using auth method 'su'
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG auth:50 
Authenticating as
'nx', running ['/usr/local/lib/neatx/nxserver', '--proto=3030000', '--', 'nx']
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG auth:53 Auth command
['/usr/local/lib/neatx/ttysetup', '/bin/su', 'nx', '-c', 'cd &&
/usr/local/lib/neatx/nxserver --proto=3030000 -- nx']
Apr  8 09:10:07 lnelson-desktop nxserver-login-wrapper[3574]: Called with args: 
-c cd
&& /usr/local/lib/neatx/nxserver --proto=3030000 -- nx
Apr  8 09:10:07 lnelson-desktop nxserver-login-wrapper[3574]: Started
/usr/local/lib/neatx/nxserver-login -c cd && /usr/local/lib/neatx/nxserver
--proto=3030000 -- nx
Apr  8 09:10:07 lnelson-desktop nxserver-login-wrapper[3574]: Usage
Apr  8 09:10:07 lnelson-desktop nxserver-login-wrapper[3574]: =====
Apr  8 09:10:07 lnelson-desktop nxserver-login-wrapper[3574]:   nxserver-login 
[options]
Apr  8 09:10:07 lnelson-desktop nxserver-login-wrapper[3574]: nxserver-login: 
error:
no such option: -c
Apr  8 09:10:07 lnelson-desktop nxserver-login-wrapper[3574]: EOF on stderr, 
exiting
Apr  8 09:10:07 lnelson-desktop nxserver-login-wrapper[3574]: EOF on stderr, 
exiting
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: ERROR nxserver_login:265
Authentication failed
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: Traceback (most recent 
call last):
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/app/nxserver_login.py", line 263, 
in
_TryLogin
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]:    
authenticator.AuthenticateAndRun(username, password, args)
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/auth.py", line 116, in 
AuthenticateAndRun
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]:     child.exitstatus,
child.signalstatus))
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: AuthFailedError: 
Authentication
failed (output='Password:', exitstatus=None, signum=None)
Apr  8 09:10:07 lnelson-desktop nxserver-login[3562]: DEBUG protocol:172 >>> 
'NX> 404
ERROR: wrong password or login.\n'
Apr  8 09:10:07 lnelson-desktop nxserver-login-wrapper[3557]: EOF on stderr, 
exiting

r59:
Apr  8 08:44:55 lnelson-desktop nxserver-login-wrapper[1739]: Called with args: 
Apr  8 08:44:55 lnelson-desktop nxserver-login-wrapper[1739]: Started /usr/local
/lib/neatx/nxserver-login 
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'HE
LLO NXSERVER - Version 3.3.0 - GPL\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'NX
> 105 '
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:227 <<< 'he
llo NXCLIENT - Version 3.3.0\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'He
llo nxclient - version 3.3.0\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG nxserver_login:111 G
ot client protocol version 3030000 ('3.3.0'), want 3030000
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'NX
> 134 Accepted protocol: 3.3.0\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'NX
> 105 '
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:227 <<< 'SE
T SHELL_MODE SHELL\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'Se
t SHELL_MODE: SHELL\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'NX
> 105 '
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:227 <<< 'SE
T AUTH_MODE PASSWORD\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'Se
t AUTH_MODE: PASSWORD\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'NX
> 105 '
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:227 <<< 'lo
gin\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 'Lo
gin\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 
'NX> 101
User: '
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:227 <<< 
'nx\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 
'nx\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 
'NX> 102
Password: '
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:225 <<< 
[hidden]
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>>
'**********\n'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: INFO nxserver_login:253 
Trying
login for user 'nx' using auth method 'su'
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG auth:50 
Authenticating as
'nx', running ['/usr/local/lib/neatx/nxserver', '--proto=3030000', '--', 'nx']
Apr  8 08:44:55 lnelson-desktop nxserver-login[1744]: DEBUG auth:53 Auth command
['/usr/local/lib/neatx/ttysetup', '/bin/su', 'nx', '-c', 'cd &&
/usr/local/lib/neatx/nxserver --proto=3030000 -- nx']
Apr  8 08:44:56 lnelson-desktop nxserver-login-wrapper[1756]: Called with args: 
-c cd
&& /usr/local/lib/neatx/nxserver --proto=3030000 -- nx
Apr  8 08:44:56 lnelson-desktop nxserver-login-wrapper[1756]: Started
/usr/local/lib/neatx/nxserver-login -c cd && /usr/local/lib/neatx/nxserver
--proto=3030000 -- nx
Apr  8 08:44:56 lnelson-desktop nxserver-login-wrapper[1756]: Usage
Apr  8 08:44:56 lnelson-desktop nxserver-login-wrapper[1756]: =====
Apr  8 08:44:56 lnelson-desktop nxserver-login-wrapper[1756]:   nxserver-login 
[options]
Apr  8 08:44:56 lnelson-desktop nxserver-login-wrapper[1756]: nxserver-login: 
error:
no such option: -c
Apr  8 08:44:56 lnelson-desktop nxserver-login-wrapper[1756]: EOF on stderr, 
exiting
Apr  8 08:44:56 lnelson-desktop nxserver-login[1744]: ERROR nxserver_login:265
Authentication failed
Apr  8 08:44:56 lnelson-desktop nxserver-login[1744]: Traceback (most recent 
call last):
Apr  8 08:44:56 lnelson-desktop nxserver-login[1744]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/app/nxserver_login.py", line 263, 
in
_TryLogin
Apr  8 08:44:56 lnelson-desktop nxserver-login[1744]:    
authenticator.AuthenticateAndRun(username, password, args)
Apr  8 08:44:56 lnelson-desktop nxserver-login[1744]:   File
"/usr/local/lib/python2.6/dist-packages/neatx/auth.py", line 116, in 
AuthenticateAndRun
Apr  8 08:44:56 lnelson-desktop nxserver-login[1744]:     child.exitstatus,
child.signalstatus))
Apr  8 08:44:56 lnelson-desktop nxserver-login[1744]: AuthFailedError: 
Authentication
failed (output='Password:', exitstatus=None, signum=None)
Apr  8 08:44:56 lnelson-desktop nxserver-login[1744]: DEBUG protocol:172 >>> 
'NX> 404
ERROR: wrong password or login.\n'
Apr  8 08:44:56 lnelson-desktop nxserver-login-wrapper[1739]: EOF on stderr, 
exiting

This is the Ubuntu install image, downloaded on 4/7/2010:
ubuntu-10.04-beta1-desktop-i386.iso

These are the versions tried:
> svn info
Path: .
URL: http://neatx.googlecode.com/svn/trunk
Repository Root: http://neatx.googlecode.com/svn
Repository UUID: b50b1b54-5739-11de-8832-3f4c773c73ae
Revision: 58
Node Kind: directory
Schedule: normal
Last Changed Author: kormat
Last Changed Rev: 58
Last Changed Date: 2010-02-19 09:15:53 -0700 (Fri, 19 Feb 2010)

> svn info
Path: .
URL: http://neatx.googlecode.com/svn/trunk
Repository Root: http://neatx.googlecode.com/svn
Repository UUID: b50b1b54-5739-11de-8832-3f4c773c73ae
Revision: 59
Node Kind: directory
Schedule: normal
Last Changed Author: kormat
Last Changed Rev: 59
Last Changed Date: 2010-02-25 08:47:04 -0700 (Thu, 25 Feb 2010)

Original comment by nelsono...@gmail.com on 8 Apr 2010 at 10:07

GoogleCodeExporter commented 9 years ago
This turned out to be a quoting problem.  I had to add single quotes within the
double quotes around $@ in this line in nxserver-login-wrapper:
exec /usr/local/lib/neatx/nxserver-login "'$@'" 2>&1 >&3 | {

I haven't yet tried to figure out how to fix the auto-generation process so 
that it
gets created correctly.

Original comment by nelsono...@gmail.com on 9 Apr 2010 at 11:26