Pagina 1 di 1

[RISOLTO] Errore su Raspberry Pi 3+

Pubblicato: 19 dicembre 2022 - 11:47
di haxo_914
Ciao,

ho appena installato l'agente WAPT su un Raspberry Pi 3+ con l'obiettivo di configurarlo come repository secondario.
Ma quando eseguo `sudo wapt-get register`,

ricevo il seguente errore

: ERRORE FATALE: EWaptException: Impossibile registrare: waptserver https://xxx.xxx.xxx.xxx non disponibile.

Avete qualche idea di quale potrebbe essere il problema?
Ho cercato la documentazione per installare WAPT ma non l'ho trovata, quindi l'ho adattata da https://www.wapt.fr/en/doc-2.3/wapt-dep ... macos.html.

Grazie

. Cordiali saluti.

Re: Errore su Raspberry Pi 3+

Pubblicato: 21 dicembre 2022 - 12:28
di dcardon
Ciao,

che versione di WAPT stai usando? Che versione di Linux stai usando sul tuo Raspberry Pi 3? I pacchetti ARM di Debian sono attualmente compilati solo per Debian 10. Potresti usare Debian 11?

Cordiali saluti,

Denis

Re: Errore su Raspberry Pi 3+

Pubblicato: 21 dicembre 2022 - 13:35
di haxo_914
Ciao,
non sono riuscito a completare tutti i miei compiti. :)

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 installato da deb https://wapt.tranquil.it/debian/wapt-2.2/buster main" > /etc/apt/sources.list.d/wapt.list

Quindi, versione 2.2 dell'agente.

Grazie per l'aiuto

Cordiali saluti

Re: Errore su Raspberry Pi 3+

Pubblicato: 26 dicembre 2022 - 17:33
di dcardon
Buongiorno,

Grazie per le informazioni aggiuntive. Esiste un proxy o un firewall che filtra il traffico tra l'agente e il server? Potresti provare a eseguire il registro in modalità debug?

Codice: Seleziona tutto

wapt-get -l debug register
Sinceramente,

Denis

Re: Errore su Raspberry Pi 3+

Pubblicato: 27 dicembre 2022 - 08:18
di haxo_914
Buongiorno,

Al momento non esiste alcun FW e/o proxy tra l'agente e il server.
Per i miei test, entrambi si trovano nella stessa rete, sullo stesso switch e sulla stessa VLAN.

Ecco il risultato del comando.

Codice: Seleziona tutto

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
grazie per l'aiuto

Sinceramente

Re: Errore su Raspberry Pi 3+

Pubblicato: 27 dicembre 2022 - 09:24
di sfontenau
Ciao,

potresti per favore fornirmi il tuo file wapt-get.ini in modo che io possa controllare il valore di verify_cert?

Il messaggio indica:
CERTIFICATE_VERIFY_FAILED

Re: Errore su Raspberry Pi 3+

Pubblicato: 27 dicembre 2022 - 09:34
di haxo_914
Ciao,

dopo aver effettuato diversi test, avevo rimosso la riga `verify_cert=0`.

L'ho reinserita, ho riavviato il servizio e poi ho eseguito il comando `wapt-get -l debug register`.

E ora funziona.

Il problema è quindi risolto.

Grazie a tutti per l'aiuto.

Cordiali saluti.