Página 1 de 1

[RESUELTO] Error en Raspberry Pi 3+

Publicado: 19 de diciembre de 2022 - 11:47
por haxo_914
Hola,

acabo de instalar el agente WAPT en una Raspberry Pi 3+ con el objetivo de configurarlo como repositorio secundario.
Pero al ejecutar `sudo wapt-get register`,

obtengo el siguiente error

: ERROR FATAL: EWaptException: No se puede registrar: el servidor wapt https://xxx.xxx.xxx.xxx no está disponible.

¿Tienen alguna idea de cuál podría ser el problema?
Busqué la documentación para instalar WAPT pero no la encontré, así que la adapté de https://www.wapt.fr/en/doc-2.3/wapt-dep ... macos.html.

Gracias

. Saludos cordiales.

Re: Error en Raspberry Pi 3+

Publicado: 21 de diciembre de 2022 - 12:28
por dcardon
Hola, ¿

qué versión de WAPT estás usando? ¿Qué versión de Linux estás usando en tu Raspberry Pi 3? Los paquetes Debian ARM actualmente solo se compilan para Debian 10. ¿Podrías estar usando Debian 11?

Saludos,

Denis

Re: Error en Raspberry Pi 3+

Publicado: 21 de diciembre de 2022 - 13:35
por haxo_914
Hola,
efectivamente no he podido completar toda mi tarea. :)

root@raspberrypi:~# cat /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian

Agente instalado desde deb https://wapt.tranquil.it/debian/wapt-2.2/buster main" > /etc/apt/sources.list.d/wapt.list

Entonces, versión 2.2 del agente.

Gracias por su ayuda

Atentamente

Re: Error en Raspberry Pi 3+

Publicado: 26 de diciembre de 2022 - 17:33
por dcardon
Buen día,

Gracias por la información adicional. ¿Existe algún proxy o firewall que filtre el tráfico entre el agente y el servidor? ¿Podrías intentar ejecutar el registro en modo de depuración?

Código: Seleccionar todo

wapt-get -l debug register
Atentamente,

Denis

Re: Error en Raspberry Pi 3+

Publicado: 27 de diciembre de 2022 - 08:18
por haxo_914
Buen día,

No hay ningún FW y/o proxy entre el agente y el servidor en este momento.
Para mis pruebas, ambos están en la misma red y en el mismo conmutador y VLAN.

Aquí está el resultado del comando.

Código: Seleccionar todo

2022-12-27 08:13:27,196 DEBUG Default encoding : utf-8
2022-12-27 08:13:27,196 DEBUG Caller: ['/opt/wapt/wapt-get.py', '-l', 'debug', 'register']
2022-12-27 08:13:27,197 DEBUG Python path ['/opt/wapt', '/opt/wapt', '/opt/wapt/lib/python38.zip', '/opt/wapt/lib/python3.8', '/opt/wapt/lib/python3.8/lib-dynload', '/opt/wapt/lib/python3.8/site-packages']
2022-12-27 08:13:27,197 INFO Using local waptservice configuration /opt/wapt/wapt-get.ini
2022-12-27 08:13:27,198 DEBUG Config file: /opt/wapt/wapt-get.ini
2022-12-27 08:13:27,208 DEBUG Thread 1995895808 is connecting to wapt db
2022-12-27 08:13:27,212 DEBUG DB Start transaction
2022-12-27 08:13:27,213 DEBUG DB commit
Using config file: /opt/wapt/wapt-get.ini
2022-12-27 08:13:27,363 DEBUG Using host certificate /opt/wapt/private/raspberrypi.pem for repo global auth
2022-12-27 08:13:27,364 INFO User Groups:[]
2022-12-27 08:13:27,366 INFO WAPT base directory : /opt/wapt
2022-12-27 08:13:27,367 INFO Package cache dir : /opt/wapt/cache
2022-12-27 08:13:27,367 INFO WAPT DB Structure version: 20210420
Registering host against server: https://10.xxx.xxx.xxx
2022-12-27 08:13:27,369 DEBUG Loading ssl context with cert /opt/wapt/private/raspberrypi.crt and key /opt/wapt/private/raspberrypi.pem
2022-12-27 08:13:27,379 DEBUG Starting new HTTPS connection (1): 10.xxx.xxx.xxx:443
2022-12-27 08:13:27,434 DEBUG Wapt server https://10.xxx.xxx.xxx unavailable (SSLError: HTTPSConnectionPool(host='10xxx.xxx.xxx', port=443): Max retries exceeded with url: /ping (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1131)'))))
FATAL ERROR : EWaptException: Unable to register: waptserver https://10.xxx.xxx.xxx not available
Traceback (most recent call last):
  File "/opt/wapt/wapt-get.py", line 1647, in <module>
    main()
  File "/opt/wapt/wapt-get.py", line 1341, in main
    result['register'] = mywapt.register_computer(
  File "/opt/wapt/common.py", line 5908, in register_computer
    raise EWaptException('Unable to register: waptserver %s not available' % self.waptserver.server_url)
waptpackage.EWaptException: Unable to register: waptserver https://10.xxx.xxx.xxx not available
gracias por su ayuda

Atentamente

Re: Error en Raspberry Pi 3+

Publicado: 27 de diciembre de 2022 - 09:24
por sfonteneau
Hola,

¿podrías proporcionarme tu archivo wapt-get.ini para que pueda comprobar el valor de verify_cert?

El mensaje indica:
CERTIFICATE_VERIFY_FAILED

Re: Error en Raspberry Pi 3+

Publicado: 27 de diciembre de 2022 - 09:34
por haxo_914
Hola,

después de realizar varias pruebas, eliminé la línea `verify_cert=0`.

La volví a agregar, reinicié el servicio y luego ejecuté el comando `wapt-get -l debug register`.

Ahora funciona.

Por lo tanto, el problema está resuelto.

Gracias a todos por su ayuda.

Atentamente.