La opción de TcosMonitor de enviar archivos no me funciona.

Foro para que los usuarios de MAX consulten las dudas que puedan tener.

Moderadores: daniel.esteban, victor.armendariz, ruben.garcia45, irene.olalla, dgonzalezarroyo

Responder
des_manolin
Mensajes: 17
Registrado: 22 Dic 2009, 12:24

¡HOLA!
La opción de TcosMonitor de enviar archivos no me funciona.
Los clientes tienen instalado Tcos autónomo.
Aparece el mensaje "TcosMonitor: FTP+TLS server is not running"
He copiado "/usr/share/doc/rsync/examples/rsyncd.conf" en "/etc/rsyncd.conf" (no existía), Añadiendo:
read only = no
use chroot = no
[tcos_share]
path = /tmp/tcos_share
comment = Tcos Share
He puesto la opción "RSYNC_ENABLE" de "/etc/init.d/rsync" a "true".
Además TcosMonitor no crea la carpeta "/tmp/tcos_share".
Si la creo no aparece el mensaje de error, guarda el archivo en "/tmp/tcos_share" y en el cliente aparece el mensaje de recepción pero ni se crea al carpeta profesor ni se copia el archivo.
Al cerrar TcosMonitor si se borra "/tmp/tcos_share".

La salia de tcosmonitor --debug hasta el error es:
profesor@e221:~$ tcosmonitor --debug
DEBUG ACTIVE
tcosmonitor::loadconf() conffile=/etc/tcos/tcosmonitor.conf
tcosmonitor::loadconf() found conf file /etc/tcos/tcosmonitor.conf
tcosmonitor::loadconf conf={'tcos-volume-manager': '1', 'check_tcosmonitor_user_group': '0', 'dont_show_users_in_group': '', 'tnc_only_ports': 'no', 'tcos-devices-ng': '1'}
tcosmonitor::Loading ui file...
tcosmonitor.TcosCommon::__init__()
tcosmonitor.TcosConf::__init__()
tcosmonitor.TcosConf::reset() reset data...
tcosmonitor.TcosConf::open_file() reading data from "/home/profesor/.tcosmonitor.conf"...
tcosmonitor.TcosConf::OpenFile() Found 39 vars
tcosmonitor.LocalData::__init__()
tcosmonitor.TcosXmlRpc::__init__()
tcosmonitor.TcosCommon::__init__()
tcosmonitor.TcosCommon::get_display() ip_mode=False
tcosmonitor.TcosCommon::get_display() running in local DISPLAY
tcosmonitor.TcosCommon::get_my_local_ip(), last=True, force=False
tcosmonitor.TcosCommon::GetAllNetworkInterfaces() ['eth2']
tcosmonitor.TcosCommon::get_ip_address() ifname=eth2
tcosmonitor.TcosCommon::get_my_local_ip() dev loop, found ip=192.168.102.21
tcosmonitor.TcosCommon::get_my_local_ip() self.vars={'display_hostname': '', 'display_host': '', 'display_ip': '', 'allnetworkinterfaces': ['eth2'], 'local_ip': ['192.168.102.21']}
tcosmonitor.TcosCommon::get_my_local_ip() last=True, returning [0]=192.168.102.21
tcosmonitor.TcosCommon::revlookup name=192.168.102.21
tcosmonitor.TcosCommon::get_display() ip_mode='False' display_host= display_hostname=192.168.102.21 display_ip=192.168.102.21
tcosmonitor.TcosCommon::get_display() ip_mode=True
tcosmonitor.TcosCommon::get_display() running in local DISPLAY
tcosmonitor.TcosCommon::get_my_local_ip(), last=True, force=False
tcosmonitor.TcosCommon::get_my_local_ip() self.vars={'display_hostname': '', 'display_host': '', 'display_ip': '', 'allnetworkinterfaces': ['eth2'], 'local_ip': ['192.168.102.21']}
tcosmonitor.TcosCommon::get_my_local_ip() last=True, returning [0]=192.168.102.21
tcosmonitor.TcosCommon::revlookup name=192.168.102.21
tcosmonitor.TcosCommon::get_display() ip_mode='True' display_host= display_hostname=192.168.102.21 display_ip=192.168.102.21
tcosmonitor.TcosXauth::display_host='192.168.102.21'
tcosmonitor.TcosXauth::display_ip='192.168.102.21'
tcosmonitor.TcosCommon::GetAllNetworkInterfaces() ['eth2']
tcosmonitor.TcosMenus::__init__()
tcosmonitor.TcosActions::__init__()
tcosmonitor.TcosListView::__init__()
tcosmonitor.TcosIconView::__init__()
tcosmonitor.TcosClassView::__init__()
tcosmonitor.TcosClassView::setting white background
tcosmonitor.TcosClassView::loadpos()
tcosmonitor.Initialize::__init__() starting
tcosmonitor.TcosStaticHosts::__init__ starting
tcosmonitor.TcosStaticHosts::init_statichostlist()
tcosmonitor.TcosConf::SetVar(show_donate)="0"
tcosmonitor.TcosConf::changing value 0 to 0 of show_donate
tcosmonitor.TcosConf::SaveToFile() len(self.vars)=39
tcosmonitor.TcosConf::SaveToFile() new settings SAVED!!!
tcosmonitor.Initialize::initbuttons()
tcosmonitor.TcosPreferences::set_active_in_select() default is ping, index 1
tcosmonitor.TcosPreferences::set_active_in_select() default is eth2, index 0
tcosmonitor.TcosPreferences::set_active_in_select() default is ffmpeg-MPEG4, index 0
tcosmonitor.TcosPreferences::set_active_in_select() default is list, index 0
tcosmonitor.TcosPreferences::visible_buttons_menus is not empty
tcosmonitor.TcosPreferences::visible_menus is not empty
tcosmonitor.TcosPreferences::visible_menu_items() {'menuone': [18, 16, 24, 13, 2, 3, 22, 23, 15, 4, 5, 20, 21, 7, 14, 12, 10, 11, 17, 8], 'menuall': [8, 11, 9, 18, 6, 0, 1, 16, 17, 2, 3, 14, 15, 7, 19, 5, 12, 10], 'names': ['demo', 'video', 'conference', 'exe', 'reboot', 'dpms', 'show', 'lock', 'net', 'vnc', 'text', 'livevnc', 'restartx', 'xorg', 'send', 'screenshots']}
tcosmonitor.TcosMenus::RightClickMenuOne() creating menu
tcosmonitor.TcosPreferences::populate_pref() done
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension dpms
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension sendfiles
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension audiortp
tcosmonitor.extensions.audiortp::init chat control
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension info
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension livevnc
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension restartxorg
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension lockscreen
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension vnc
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension videolan
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension logout
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension screenshot
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension tcospersonalize
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension tcosnetcontroller
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension clean
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension wakeonlan
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension remotessh
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension viewproc
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension italc
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension reboot
tcosmonitor.TcosExtensions::TcosExtLoader::__init__() registering extension appsmsg
tcosmonitor.TcosDBus::TcosDBusAction() starting action...
tcosmonitor.TcosDBus::TcosDBusClient() starting client
tcosmonitor.TcosIconView::clear() clean iconview
tcosmonitor.TcosClassView::clear() restore position to [10, 10]
tcosmonitor.LocalData::GetAllClients() using method "ping" in interface eth2
tcosmonitor.ping::__init__()
tcosmonitor.ping::get_ip_address() ifname=eth2
tcosmonitor.LocalData::GetAllClients() method=ping starting worker without dog iface=eth2 ip=192.168.102.21
tcosmonitor.shared::worker set_started() *****
tcosmonitor.ping::ping_iprange() ip=192.168.102.21
tcosmonitor.ping::get_server_ips() add interface eth2
tcosmonitor.ping::get_server_ips() iface=eth2 data=[{'broadcast': '192.168.255.255', 'netmask': '255.255.0.0', 'addr': '192.168.102.21', 'gateway': '192.168.0.11'}]
tcosmonitor.ping::Ping:: ip (192.168.102.21) is in server_ips(['192.168.102.21'])
tcosmonitor.ping::PingPort() host=192.168.102.5 port=8998
tcosmonitor.ping::PingPort()::__init__(host=192.168.102.5, port=8998 timeout=1.000000)
tcosmonitor.ping::192.168.102.5:8998 port is "OPEN"
tcosmonitor.TcosXmlRpc::isPortListening(192.168.102.5:8998) PinPort => OPEN
tcosmonitor.TcosXmlRpc::newhost() tcosxmlrpc running on http://192.168.102.5:8998/RPC2
tcosmonitor.TcosXmlRpc::{'ip': '192.168.102.5', 'ssl': False, 'port': 8998, 'conected': True}
tcosmonitor.ping::ping_iprange() host=192.168.102.5 ports 8998 or 8999 OPEN
tcosmonitor.ping::PingPort() host=192.168.102.31 port=8998
tcosmonitor.ping::PingPort()::__init__(host=192.168.102.31, port=8998 timeout=1.000000)
tcosmonitor.ping::192.168.102.31:8998 port is "CLOSED"
tcosmonitor.TcosXmlRpc::isPortListening(192.168.102.31:8998) PinPort => CLOSED
tcosmonitor.TcosXmlRpc::newhost() SSL disabled, trying to ping 8998 port
tcosmonitor.ping::ping_iprange() host=192.168.102.31 ports 8998 or 8999 closed
tcosmonitor.ping::ping_iprange() discovered host finished
tcosmonitor.shared::worker set_finished() *****
tcosmonitor.shared::worker set_started() *****
tcosmonitor.shared::start_watch_dog() starting watch dog...
tcosmonitor.TcosActions::populate_hostlist() init
tcosmonitor.TcosActions::populate_hostlist() clear list and start progressbar!!!
tcosmonitor.shared::watch_dog() __init__
tcosmonitor.LocalData::newhost(192.168.102.5)
tcosmonitor.ping::PingPort() host=192.168.102.5 port=8998
tcosmonitor.ping::PingPort()::__init__(host=192.168.102.5, port=8998 timeout=1.000000)
tcosmonitor.ping::192.168.102.5:8998 port is "OPEN"
tcosmonitor.TcosXmlRpc::isPortListening(192.168.102.5:8998) PinPort => OPEN
tcosmonitor.TcosXmlRpc::newhost() tcosxmlrpc running on http://192.168.102.5:8998/RPC2
tcosmonitor.TcosXmlRpc::{'ip': '192.168.102.5', 'ssl': False, 'port': 8998, 'conected': True}
tcosmonitor.TcosActions::populate_hostlist() => get username
tcosmonitor.TcosXmlRpc::IsStandalone() ip=192.168.102.5 TRUE
tcosmonitor.LocalData::GetUsername(192.168.102.5) standalone
tcosmonitor.TcosActions::***standalone***, get_exclude(192.168.102.5)=False
tcosmonitor.TcosActions::populate_hostlist() => get hostname
tcosmonitor.LocalData::GetHostname() ip=192.168.102.5
tcosmonitor.TcosCommon::revlookup name=192.168.102.5
tcosmonitor.LocalData::add_to_cache("192.168.102.5", "1", "e205.local")
tcosmonitor.TcosActions::populate_hostlist() => get num process
tcosmonitor.TcosActions::populate_hostlist() => get time logged
tcosmonitor.TcosActions::populate_hostlist() => get active connection
tcosmonitor.LocalData::IsActive(192.168.102.5)=True
tcosmonitor.TcosActions::populate_hostlist() => get is logged
tcosmonitor.LocalData::IsLogged() => Username=alumno
tcosmonitor.TcosActions::populate_hostlist() => get is blocked
tcosmonitor.TcosXmlRpc::isPortListening() not scanning again, using lastip=192.168.102.5 lastport=8998 OPEN
tcosmonitor.TcosXmlRpc::_ParseResult(0)
tcosmonitor.TcosXmlRpc::GetStatus() lockscreen is NOT running
tcosmonitor.TcosXmlRpc::_ParseResult(False)
tcosmonitor.TcosXmlRpc::lockscreen() False
tcosmonitor.LocalData::IsBlocked(ip=192.168.102.5) FALSE status=False
tcosmonitor.TcosActions::populate_hostlist() => get is blocked net
tcosmonitor.TcosXmlRpc::tnc() action=status username=alumno ports=None ip=None only-ports=no
tcosmonitor.TcosActions::populate_hostlist() => get status dpms
tcosmonitor.TcosXmlRpc::dpms() action=status ip=192.168.102.5
tcosmonitor.TcosActions::crono(), populate_host_list(192.168.102.5) get 0.811797 seconds
tcosmonitor.shared::worker set_finished() *****
tcosmonitor.TcosActions::crono(), populate_host_list(ALL) get 0.820590 seconds
tcosmonitor.shared::worker set_finished() *****
tcosmonitor.shared::watch_dog() FINISHED
tcosmonitor.TcosActions::on_allhostbutton_click() ....
tcosmonitor.LocalData::newhost(192.168.102.5)
tcosmonitor.LocalData::IsLogged() => Username=None
tcosmonitor.LocalData::GetUsername(192.168.102.5) standalone
tcosmonitor.LocalData::GetUsernameAndHost() => get username and host

¿Qué me falta?
Gracias.
des_mariodebian
Mensajes: 581
Registrado: 05 Ene 2008, 21:00
Contactar:

El nuevo TcosMonitor no usa RSYNC sino un FTP en modo seguro (TLS).

Comprueba que tengas la misma versión en alumnos y profesor.

El servidor FTP usa el puerto 8997, comprueba que no esté en uso.

Las últimas líneas antes de pulsar nada cuando carga tcosmonitor en modo debug deberían ser estas:

Código: Seleccionar todo

tcosmonitor.TcosDBus::TcosDBusAction() starting action...
tcosmonitor.TcosDBus::TcosDBusClient() starting client
info: M2Crypto (Medusa) FTP/TLS server started at Thu Jun  9 17:39:52 2011
	Authz: <medusa.ftp_server.anon_authorizer instance at 0x2c08a70>
	Hostname: thinkpad
	Port: 8997
des_manolin
Mensajes: 17
Registrado: 22 Dic 2009, 12:24

Muchas gracias por contestarme tan deprisa.
Las líneas:
Authz: <medusa.ftp_server.anon_authorizer instance at 0x2c08a70>
Hostname: thinkpad
Port: 8997[/code][/quote]
no aparecían, por lo que pensé que el problema estaba en el ordenador de profesor.
Instalé TcosMonitor con el paquete "max-tcos-profesor"
Después de mucho enredar descubrí que profesor no estaba incluido en el grupo tcos.
Como todas las demás opciones funcionaban no pensé en ello.
Siento haberte molestado por algo tan trivial.
Muchas gracias de nuevo.
Responder