Page 1 sur 1

Impossible d'enregistrer un nouveau poste.

Publié : 25 sept. 2020 - 08:26
par plegrand
Bonjour,
j'utilise wapt sur un serveur Debian.
Version WAPT Server : 1.8.2
Version WAPT Agent : 1.8.0.6641
version WAPT Setup : 1.8.2.7267
Version WAPT Deploy : 1.8.2.7267
Statut de la base : OK (1.8.2.0)

Cette installation a toujours fonctionné mais depuis un moment (j'ignore exactement depuis quand), il m'est impossible d'enregistrer de nouvelles machines, celle-ci n'apparaissent pas dans la console et j'ai ce genre de message dans les logs :

Code : Tout sélectionner

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
Pourriez-vous m'aider à résoudre ce soucis ?
Merci pour votre aide.

Re: Impossible d'enregistrer un nouveau poste.

Publié : 25 sept. 2020 - 09:26
par plegrand
Une petite amélioration suite aux actions suivantes :
Je ne me rappelle pas d'avoir mis à jour WAPT sur le serveur mais j'ai tout de même relancé la commande suivante :

Code : Tout sélectionner

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

J'ai mis à jour la console puis regénéré un agent à jour:
Version WAPT Server : 1.8.2
Version WAPT Agent : 1.8.2.7267
version WAPT Setup : 1.8.2.7267
Version WAPT Deploy : 1.8.2.7267
Statut de la base : OK (1.8.2.0)

J'ai donc réussi à installer l'agent sur une nouvelle machien et celle-ci apparaît bien sur la console.

Cependant j'ai toujours des messages étranges dans les logs :

Code : Tout sélectionner

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

Une idée d'où pourrait venir le problème ?

Merci encore pour votre aide