Tcos-devices-ng: no concuerda Xauth

24 views
Skip to first unread message

Rubén Gómez Antolí

unread,
Jun 12, 2014, 9:21:39 AM6/12/14
to tcos-u...@googlegroups.com
Hola:

Tengo un problema desde hace unos meses, tcos-devices-ng no funciona
(tampoco tcos-volume-manager pero vamos, me importa menos).

Como tenía pensamiento de hacer una reconfiguración total de los
servidores y utilizábamos poco (o nada) USB y cdrom, pasé de arreglar el
problema.

El caso es que ahora si necesito arreglarlo porque la reconfiguración
del servidor se va a retrasar algo más.

Sin mas rodeos, esto es lo que obtengo cuando ejecuto tcos-devices-ng:

--------------- Corte desde la consola ----------
$ tcos-devices-ng --debug
11074 tcos-devices-ng::loadconf() __init__ conffile=~/.tcos-devices-ng.conf
11074 tcos-devices-ng::loadconf mntconf={}
11074 tcos-devices-ng::loadconf() __init__
conffile=/etc/tcos/tcos-devices-ng.conf
11074 tcos-devices-ng::loadconf() found conf file
/etc/tcos/tcos-devices-ng.conf
11074 tcos-devices-ng::loadconf mntconf={'enable_reboot_poweroff': '1'}
tcosmonitor.TcosCommon::__init__()
tcosmonitor.TcosCommon::get_display() ip_mode=False
tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
Timeout, error=no working nameservers found
tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
IndexError, error=list index out of range
tcosmonitor.TcosCommon::get_display() ip_mode='False' display_host=oger
display_hostname=oger display_ip=oger
tcosmonitor.TcosCommon::get_display() ip_mode=True
tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
Timeout, error=no working nameservers found
tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
IndexError, error=list index out of range
tcosmonitor.TcosCommon::get_display() ip_mode='True' display_host=oger
display_hostname=oger display_ip=oger
tcosmonitor.TcosXauth::display_host='oger'
tcosmonitor.TcosXauth::display_ip='oger'
tcosmonitor.TcosXauth::init_standalone()
tcosmonitor.TcosConf::__init__()
tcosmonitor.TcosConf::__init__() not opening conf file
tcosmonitor.TcosXmlRpc::__init__()
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, cache_timeout, adding to
list ""
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, xmlrpc_username, adding to
list ""
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, xmlrpc_password, adding to
list ""
tcosmonitor.TcosCommon::__init__()
11074 tcos-devices-ng::loading config class...
tcosmonitor.TcosConf::__init__()
tcosmonitor.TcosConf::__init__() not opening conf file
tcosmonitor.TcosXmlRpc::__init__()
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, cache_timeout, adding to
list ""
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, xmlrpc_username, adding to
list ""
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, xmlrpc_password, adding to
list ""
tcosmonitor.TcosCommon::get_display() ip_mode=True
tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
Timeout, error=no working nameservers found
tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
IndexError, error=list index out of range
tcosmonitor.TcosCommon::get_display() ip_mode='True' display_host=oger
display_hostname=oger display_ip=oger
tcosmonitor.TcosCommon::get_display() ip_mode=False
tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
Timeout, error=no working nameservers found
tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
IndexError, error=list index out of range
tcosmonitor.TcosCommon::get_display() ip_mode='False' display_host=oger
display_hostname=oger display_ip=oger
11074 tcos-devices-ng::initremote() username=egomeza host=oger
hostname=oger

tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, threadscontrol, adding to
list ""

tcosmonitor.TcosCommon::Threads count: 2


tcosmonitor.TcosXauth::parseDisplay() ip=192.168.2.19
cookie=4b9ab8ccd57622c681a3f2e4360300a0

tcosmonitor.TcosXauth::test_auth() cookie=None ip=oger


tcosmonitor.TcosXauth::test_auth() Can't read cookie


tcos-devices-ng: ERROR: Xauth cookie don't match
------------------ Fin del corte ---------------------

En concreto, con este usuario había procedido a borrar la .Xauth, salir
de la sesión y volver a entrar.

Este es el registro desde otro usuario con la Xauth «intacta»:

-------------- Corte desde la consola ----------
:~$ cat /home/fidel/ERROR.TCOS
20258 tcos-devices-ng::loadconf() __init__ conffile=~/.tcos-devices-ng.conf
20258 tcos-devices-ng::loadconf mntconf={}
20258 tcos-devices-ng::loadconf() __init__
conffile=/etc/tcos/tcos-devices-ng.conf
20258 tcos-devices-ng::loadconf() found conf file
/etc/tcos/tcos-devices-ng.conf
20258 tcos-devices-ng::loadconf mntconf={'enable_reboot_poweroff': '1'}
tcosmonitor.TcosCommon::__init__()
tcosmonitor.TcosCommon::get_display() ip_mode=False
tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
Timeout, error=no working nameservers found
tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
IndexError, error=list index out of range
tcosmonitor.TcosCommon::get_display() ip_mode='False' display_host=indis
display_hostname=indis display_ip=indis
tcosmonitor.TcosCommon::get_display() ip_mode=True
tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
Timeout, error=no working nameservers found
tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
IndexError, error=list index out of range
tcosmonitor.TcosCommon::get_display() ip_mode='True' display_host=indis
display_hostname=indis display_ip=indis
tcosmonitor.TcosXauth::display_host='indis'
tcosmonitor.TcosXauth::display_ip='indis'
tcosmonitor.TcosXauth::init_standalone()
tcosmonitor.TcosConf::__init__()
tcosmonitor.TcosConf::__init__() not opening conf file
tcosmonitor.TcosXmlRpc::__init__()
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, cache_timeout, adding to
list ""
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, xmlrpc_username, adding to
list ""
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, xmlrpc_password, adding to
list ""
tcosmonitor.TcosCommon::__init__()
20258 tcos-devices-ng::loading config class...
tcosmonitor.TcosConf::__init__()
tcosmonitor.TcosConf::__init__() not opening conf file
tcosmonitor.TcosXmlRpc::__init__()
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, cache_timeout, adding to
list ""
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, xmlrpc_username, adding to
list ""
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, xmlrpc_password, adding to
list ""
tcosmonitor.TcosCommon::get_display() ip_mode=True
tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
Timeout, error=no working nameservers found
tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
IndexError, error=list index out of range
tcosmonitor.TcosCommon::get_display() ip_mode='True' display_host=indis
display_hostname=indis display_ip=indis
tcosmonitor.TcosCommon::get_display() ip_mode=False
tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
Timeout, error=no working nameservers found
tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
IndexError, error=list index out of range
tcosmonitor.TcosCommon::get_display() ip_mode='False' display_host=indis
display_hostname=indis display_ip=indis
20258 tcos-devices-ng::initremote() username=fidel host=indis hostname=indis
tcosmonitor.TcosConf::GetVar() NEW VAR FOUND, threadscontrol, adding to
list ""
tcosmonitor.TcosCommon::Threads count: 2
tcosmonitor.TcosXauth::parseDisplay() ip=192.168.2.11
cookie=c73bbe00cd99fb46caf39a60403f8409
tcosmonitor.TcosXauth::parseDisplay() ip=Nidfrio.redfrio.es
cookie=4e589c326e22b42ee0eabf379868770d
tcosmonitor.TcosXauth::parseDisplay() ip=192.168.0.2
cookie=4e589c326e22b42ee0eabf379868770d
tcosmonitor.TcosXauth::parseDisplay() ip=Nidfrio.redfrio.es
cookie=bbab3a61d84d498f826f48ff98a40d3b
tcosmonitor.TcosXauth::parseDisplay() ip=192.168.0.2
cookie=bbab3a61d84d498f826f48ff98a40d3b
tcosmonitor.TcosXauth::parseDisplay() ip=Nidfrio.redfrio.es
cookie=14c0385369cb97f7a56b758ec35b5f97
tcosmonitor.TcosXauth::parseDisplay() ip=192.168.0.2
cookie=14c0385369cb97f7a56b758ec35b5f97
tcosmonitor.TcosXauth::test_auth() cookie=None ip=indis
tcosmonitor.TcosXauth::test_auth() Can't read cookie
------------- Fin del corte ----------------------

He estado mirando el código pero me pierdo, aunque he encontrado algunas
de las funciones que intervienen en el proceso, no he sido capaz de
tirar del hilo para seguir mirando.

Total, que necesito ayuda.

Adjunto más datos sobre el sistema:

Package: tcosmonitor
Version: 0.2.48squeeze1
Severity: important
Tags: upstream

*** Please type your report below this line ***


-- System Information:
Debian Release: 6.0.9
APT prefers oldstable
APT policy: (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/8 CPU cores)
Locale: LANG=es_ES@euro, LC_CTYPE=es_ES@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages tcosmonitor depends on:
ii gksu 2.0.2-5 graphical frontend to su
ii kdebase-bin 4:4.4.5-2 core binaries for the KDE
base app
ii nmap 5.00-3 The Network Mapper
ii python 2.6.6-3+squeeze7 interactive high-level
object-orie
ii python-gtk-vnc 0.4.1-4 A VNC viewer widget for
GTK+ (Pyth
ii python2.5 2.5.5-11 An interactive high-level
object-o
ii python2.6 2.6.6-8+b1 An interactive high-level
object-o
ii tcosmonitor-common 0.2.48squeeze1 Thin client monitor for
TCOS (comm

tcosmonitor recommends no packages.

tcosmonitor suggests no packages.

-- Configuration Files:
/etc/op/op.d/nmap-tcos.conf

nmap-tcos
/usr/bin/nmap $*;
groups=tcos
environment
help="'nmap'"

Gracias.

Salud y Revolución.

Lobo.
--
Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
para no atar mis manos con las cadenas del soft propietario.
Porque la libertad no es tu derecho, es tu responsabilidad.
http://www.mucharuina.com
---------
Desde El Ejido, en Almería, usuario registrado Linux #294013
http://www.counter.li.org

Mario Izquierdo

unread,
Jun 12, 2014, 9:28:31 AM6/12/14
to tcos-u...@googlegroups.com
Buenas

Tiene pinta de un problema DNS o bien de algo que no está bien
configurado o que la lib de DNS que usa TCOS haya cambiado su
funcionamiento...

....

> tcosmonitor.TcosCommon::get_display() ip_mode=False
> tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
> Timeout, error=no working nameservers found
> tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
> IndexError, error=list index out of range
> tcosmonitor.TcosCommon::get_display() ip_mode='False' display_host=oger
> display_hostname=oger display_ip=oger
> tcosmonitor.TcosCommon::get_display() ip_mode=True
> tcosmonitor.TcosCommon::lookup() nameserver=192.168.0.2 Exception
> Timeout, error=no working nameservers found
> tcosmonitor.TcosCommon::lookup() nameserver=194.179.1.100 Exception
> IndexError, error=list index out of range


Probablemente 194.179.1.100 no sepa resolver nombres locales.


Mira a ver si con la pista puedes avanzar algo más.


Saludos


Rubén Gómez Antolí

unread,
Jun 12, 2014, 9:44:43 AM6/12/14
to tcos-u...@googlegroups.com
Hola:

El 12/06/14 15:28, Mario Izquierdo escribió:
> Buenas
>
> Tiene pinta de un problema DNS o bien de algo que no está bien
> configurado o que la lib de DNS que usa TCOS haya cambiado su
> funcionamiento...
>
> ....
>
> Probablemente 194.179.1.100 no sepa resolver nombres locales.
>
>
> Mira a ver si con la pista puedes avanzar algo más.

Si, parece que ese es el problema:

$ nslookup oger
;; connection timed out; no servers could be reached

Estoy revisando la configuración de Dnsmasq, se supone que debería estar
trabajando.

> Saludos

Gracias por la rapidez en la respuesta.

Rubén Gómez Antolí

unread,
Jun 12, 2014, 9:58:57 AM6/12/14
to tcos-u...@googlegroups.com
De nuevo:

El 12/06/14 15:44, Rubén Gómez Antolí escribió:
> [...]

>> Probablemente 194.179.1.100 no sepa resolver nombres locales.
>>
>>
>> Mira a ver si con la pista puedes avanzar algo más.
>
> Si, parece que ese es el problema:
>
> $ nslookup oger
> ;; connection timed out; no servers could be reached
>
> Estoy revisando la configuración de Dnsmasq, se supone que debería estar
> trabajando.

Pues nada, flipando con el tema.

Configuración DNS de dnsmasq:

$ cat /etc/dnsmasq.conf
domain-needed
bogus-priv

resolv-file=/etc/resolv.conf.real

listen-address=192.168.2.1,127.0.0.1

rgomeza@Nidfrio:~$ cat /etc/resolv.conf
nameserver 192.168.0.2
nameserver 67.215.71.202
nameserver 109.69.8.34
#nameserver 194.179.1.100

rgomeza@Nidfrio:~$ cat /etc/resolv.conf.real
domain redfrio.es
search redfrio.es
nameserver 192.168.0.2
# Dns de Openic
nameserver 67.215.71.202
nameserver 109.69.8.34
nameserver 192.71.245.208
nameserver 208.67.222.123
# Dns de German privacy foundation
#nameserver 94.75.228.29
#nameserver 62.75.219.7
# Dns de Telecomix
nameserver 91.191.136.152
nameserver 85.229.85.109

Pues como no meta los servidores de nombres en /etc/resolv.conf no funciona.

Y, por supuesto, los nombres locales no van:

rgomeza@Nidfrio:~$ nslookup oger
Server: 67.215.71.202
Address: 67.215.71.202#53

** server can't find oger: NXDOMAIN

rgomeza@Nidfrio:~$ ping oger
PING oger (192.168.2.19) 56(84) bytes of data.
64 bytes from oger (192.168.2.19): icmp_req=1 ttl=64 time=0.266 ms
64 bytes from oger (192.168.2.19): icmp_req=2 ttl=64 time=0.276 ms
64 bytes from oger (192.168.2.19): icmp_req=3 ttl=64 time=0.275 ms
^C
--- oger ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.266/0.272/0.276/0.014 ms

No entiendo que esta pasando, reviso documentación y se supone que esta
bien, pero la resolución de nombres local no funciona.

¿Alguien ve lo que se me esta escapando?

Gracias.

Alejandro Aller

unread,
Jun 13, 2014, 2:57:57 AM6/13/14
to tcos-u...@googlegroups.com
Me parece que en el /etc/resolv.conf deberías poner solo la dirección de
locahost (127.0.0.1), para que todos tus servicios usen al dnsmasq como
dns primero.

Suerte.

Alejandro.


El 12/06/14 10:58, Rubén Gómez Antolí escribió:

Rubén Gómez Antolí

unread,
Jun 13, 2014, 5:33:28 AM6/13/14
to tcos-u...@googlegroups.com
Hola:

El 13/06/14 02:49, Alejandro Aller escribió:
> Me parece que en el /etc/resolv.conf deberías poner solo la dirección de
> locahost (127.0.0.1), para que todos tus servicios usen al dnsmasq como
> dns primero.

Justo eso.

No entiendo la diferencia entre utilizar la dirección IP y la dirección
127.0.0.1, pero si, ahora funciona:


$ nslookup barrapunto.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: barrapunto.com
Address: 46.105.111.22

$ nslookup oger
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: oger
Address: 192.168.2.19

Y, claro, ahora tcos-devices-ng también funciona.

> Suerte.
>
> Alejandro.

Muchas gracias.
Reply all
Reply to author
Forward
0 new messages