Unable to register a new position.

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
plegrand
Messages: 16
Registration: Sep 08, 2015 - 09:03

September 25, 2020 - 08:26

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.
plegrand
Messages: 16
Registration: Sep 08, 2015 - 09:03

September 25, 2020 - 09:26

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
Locked