Pagina 1 di 1

Impossibile registrare una nuova posizione.

Pubblicato: 25 settembre 2020 - 08:26
di Plegrand
Buongiorno,
Utilizzo Wapt su un server Debian.
Versione del server WAPT: 1.8.2
Versione dell'agente WAPT: 1.8.0.6641
Versione di installazione WAPT: 1.8.2.7267
Versione di distribuzione WAPT: 1.8.2.7267
Stato del database: OK (1.8.2.0)

Questa configurazione ha sempre funzionato, ma da un po' di tempo (non so esattamente quando) non riesco più a registrare nuove macchine; non vengono visualizzate nella console e nei log ricevo messaggi come questo:

Codice: Seleziona tutto

Sep 25 08:20:49 wapt waptserver[16335]: 2020-09-25 08:20:49,258 [waptws         ] WARNING Application rejected connection
Sep 25 08:21:03 wapt waptserver[16335]: 2020-09-25 08:21:03,125 [waptserver     ] CRITICAL Get_websocket_auth_token failed EWaptAuthenticationFailure(u'Unknown host UUID 4C4C4544-0033-3110-8036-C2C04F335A32. Please register first.',)
Sep 25 08:21:03 wapt waptserver[16335]: 2020-09-25 08:21:03,185 [waptws         ] WARNING SocketIO connection refused for uuid 4C4C4544-0033-3110-8036-C2C04F335A32, sid 379abcf3e67946b294732b48f4cd9467: SocketIO connection not authorized, invalid token: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand., instance
Sep 25 08:21:03 wapt waptserver[16335]: 2020-09-25 08:21:03,192 [waptws         ] WARNING Application rejected connection
Sep 25 08:21:17 wapt waptserver[16335]: 2020-09-25 08:21:17,002 [waptserver     ] CRITICAL update_host failed EWaptMissingCertificate(u'You try to update status of an unknown host 4C4C4544-0033-3110-8036-C2C04F335A32 (gim-cm-129-01.iut-chartres.lan). Please register first.',)
Sep 25 08:21:23 wapt waptserver[16335]: 2020-09-25 08:21:23,991 [waptserver     ] WARNING Unauthenticated registration for gim-cm-129-01.iut-chartres.lan
Sep 25 08:21:24 wapt waptserver[16335]: 2020-09-25 08:21:24,517 [waptdb         ] CRITICAL Error updating data for 4C4C4544-0033-3110-8036-C2C04F335A32 : OSError: [Errno 13] Permission denied: '/var/www/ssl'
Sep 25 08:21:24 wapt waptserver[16335]: 2020-09-25 08:21:24,519 [waptserver     ] CRITICAL add_host failed OSError(13, 'Permission denied')
Sep 25 08:22:03 wapt waptserver[16335]: 2020-09-25 08:22:03,279 [waptserver     ] CRITICAL Get_websocket_auth_token failed EWaptAuthenticationFailure(u'Unknown host UUID 4C4C4544-0033-3110-8036-C2C04F335A32. Please register first.',)
Sep 25 08:22:03 wapt waptserver[16335]: 2020-09-25 08:22:03,334 [waptws         ] WARNING SocketIO connection refused for uuid 4C4C4544-0033-3110-8036-C2C04F335A32, sid f27011798b2541f9b0fb6dc44872fa5d: SocketIO connection not authorized, invalid token: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand., instance
Sep 25 08:22:03 wapt waptserver[16335]: 2020-09-25 08:22:03,336 [waptws         ] WARNING Application rejected connection
Sep 25 08:22:32 wapt waptserver[16335]: 2020-09-25 08:22:32,946 [waptws         ] WARNING Invalid session None
Sep 25 08:22:43 wapt waptserver[16335]: 2020-09-25 08:22:42,999 [waptws         ] WARNING Invalid session None
Sep 25 08:23:03 wapt waptserver[16335]: 2020-09-25 08:23:03,434 [waptserver     ] CRITICAL Get_websocket_auth_token failed EWaptAuthenticationFailure(u'Unknown host UUID 4C4C4544-0033-3110-8036-C2C04F335A32. Please register first.',)
Sep 25 08:23:03 wapt waptserver[16335]: 2020-09-25 08:23:03,487 [waptws         ] WARNING SocketIO connection refused for uuid 4C4C4544-0033-3110-8036-C2C04F335A32, sid 17bab681c3c244e890177a04a38877df: SocketIO connection not authorized, invalid token: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand., instance
Sep 25 08:23:03 wapt waptserver[16335]: 2020-09-25 08:23:03,488 [waptws         ] WARNING Application rejected connection
Sep 25 08:24:03 wapt waptserver[16335]: 2020-09-25 08:24:03,570 [waptserver     ] CRITICAL Get_websocket_auth_token failed EWaptAuthenticationFailure(u'Unknown host UUID 4C4C4544-0033-3110-8036-C2C04F335A32. Please register first.',)
Sep 25 08:24:03 wapt waptserver[16335]: 2020-09-25 08:24:03,629 [waptws         ] WARNING SocketIO connection refused for uuid 4C4C4544-0033-3110-8036-C2C04F335A32, sid f808cb633f794c96ba85bdad7353224e: SocketIO connection not authorized, invalid token: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand., instance
Sep 25 08:24:03 wapt waptserver[16335]: 2020-09-25 08:24:03,630 [waptws         ] WARNING Application rejected connection
Sep 25 08:25:03 wapt waptserver[16335]: 2020-09-25 08:25:03,725 [waptserver     ] CRITICAL Get_websocket_auth_token failed EWaptAuthenticationFailure(u'Unknown host UUID 4C4C4544-0033-3110-8036-C2C04F335A32. Please register first.',)
Sep 25 08:25:03 wapt waptserver[16335]: 2020-09-25 08:25:03,777 [waptws         ] WARNING SocketIO connection refused for uuid 4C4C4544-0033-3110-8036-C2C04F335A32, sid cbb4ec75deae44c9bd42147db89bc621: SocketIO connection not authorized, invalid token: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand., instance
Sep 25 08:25:03 wapt waptserver[16335]: 2020-09-25 08:25:03,778 [waptws         ] WARNING Application rejected connection
Potresti aiutarmi a risolvere questo problema?
Grazie per l'aiuto.

Re: Impossibile registrare un nuovo post.

Pubblicato: 25 settembre 2020 - 09:26
di Plegrand
Un leggero miglioramento in seguito alle seguenti azioni:
Non ricordo di aver aggiornato WAPT sul server, ma ho comunque eseguito il seguente comando:

Codice: Seleziona tutto

/opt/wapt/waptserver/scripts/postconf.sh

Ho aggiornato la console e poi ho rigenerato un agente aggiornato:
Versione del server WAPT: 1.8.2
Versione dell'agente WAPT: 1.8.2.7267
Versione di installazione WAPT: 1.8.2.7267
Versione di distribuzione WAPT: 1.8.2.7267
Stato del database: OK (1.8.2.0)

Quindi sono riuscito a installare l'agente su una nuova macchina e ora appare correttamente sulla console.

Tuttavia, continuo a ricevere strani messaggi nei registri:

Codice: Seleziona tutto

Sep 25 09:25:54 wapt waptserver[17103]: 2020-09-25 09:25:54,593 [waptserver     ] CRITICAL Get_websocket_auth_token failed EWaptAuthenticationFailure(u"Request signature verification failed: SSL signature verification failed for certificate {'commonName': u'03000200-0400-0500-0006-000700080009'} issued by wapt.iut-chartres.lan",)
Sep 25 09:25:54 wapt waptserver[17103]: 2020-09-25 09:25:54,891 [waptws         ] WARNING SocketIO connection refused for uuid 03000200-0400-0500-0006-000700080009, sid 5b5515c9b5304a05951244a34c7a401b: SocketIO connection not authorized, invalid token: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand., instance
Sep 25 09:25:54 wapt waptserver[17103]: 2020-09-25 09:25:54,892 [waptws         ] WARNING Application rejected connection

Hai idea da dove potrebbe derivare il problema?

Grazie ancora per il tuo aiuto