Page 1 of 1

Unable to register a new position.

Published: September 25, 2020 - 8:26 AM
by Plegrand
Good morning,
I use Wapt on a Debian server.
WAPT Server version: 1.8.2
WAPT Agent version: 1.8.0.6641
WAPT Setup version: 1.8.2.7267
WAPT Deploy version: 1.8.2.7267
Database status: OK (1.8.2.0)

This setup has always worked, but for a while now (I don't know exactly when), I haven't been able to register new machines; they don't appear in the console, and I get messages like this in the logs:

Code: Select all

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
Could you help me solve this problem?
Thank you for your help.

Re: Unable to register a new post.

Published: September 25, 2020 - 09:26
by Plegrand
A slight improvement following the following actions:
I don't recall updating WAPT on the server, but I still ran the following command:

Code: Select all

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

I updated the console and then regenerated an up-to-date agent:
WAPT Server version: 1.8.2
WAPT Agent version: 1.8.2.7267
WAPT Setup version: 1.8.2.7267
WAPT Deploy version: 1.8.2.7267
Database status: OK (1.8.2.0)

So I managed to install the agent on a new machine and it appears correctly on the console.

However, I'm still getting strange messages in the logs:

Code: Select all

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

Any idea where the problem might be coming from?

Thank you again for your help