[SOLVED] Error message when opening the console

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
Christophe0110
Messages: 53
Registration: June 11, 2019 - 12:04

August 26, 2020 - 3:55 PM

Hello,

Starting today, when I open the WAPT console (Enterprise version), I get the following error message:

Unable to get hosts list: Error on server:
InternalError('ERROR: missing chunk number 0 for toast value 5546857 in pg_toast_16387\n',)

Clicking OK doesn't display the list of machines.
However, if I click on one of the Active Directory subfolders, the machines appear...
So the problem only occurs when I select "(All)"...

Do you have any ideas?
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

August 27, 2020 - 11:58

The TOAST tables in Postgres store BLOBs, which are large strings of characters like JSON inventory reports. The standard Postgres database tables (i.e., the non-TOAST tables) reference the objects stored in the TOAST tables. And here, the message clearly implies an inconsistent reference... which is more of a Postgres issue than a WAPT issue.

Was there a sudden outage that could have corrupted the database? Is this on a Windows or Linux server? What version of WAPT? What version of Postgres?

It's possible to clean up the corruption in question (see https://gist.github.com/supix/80f9a6111 ... b9dedf187a) , but the simplest solution is probably to restore a backup from the previous day. The workstations will automatically restore their inventory once the server is back online.

That said, it's really not normal for this to happen; the entire storage layer, starting with the filesystem, should be checked.

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

August 27, 2020 - 12:00

You can check this page to see if there's a condition that applies to your installation : https://wiki.postgresql.org/wiki/Corruption
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Christophe0110
Messages: 53
Registration: June 11, 2019 - 12:04

August 31, 2020 - 1:26 PM

Hello Denis,

Thank you for your reply.

I finally opted to restore the virtual machine on the Windows server hosting the WAPT server.

To answer your questions:
- Was there a sudden outage that could have corrupted the database?
No, not to my knowledge.
- Is it on a Windows server or a Linux server?
Windows server (Windows Server 2019)
- Which version of WAPT?
1.8.1.6756
- Which version of Postgres?
I have no idea where I found that. ;)

Thank you.
Christophe.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

August 31, 2020 - 7:28 PM

Okay, but it's really not normal that the Postgres database has become corrupted... There must be something strange going on, probably at the OS and/or virtualization level.
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Christophe0110
Messages: 53
Registration: June 11, 2019 - 12:04

September 1, 2020 - 9:26 AM

Yes, especially since this is the second time this kind of problem has occurred...

We have no issues with our other 14 servers (including database servers).

Before the restore, what's most surprising is that the machine list displayed correctly if I went into each of the subdirectories in the left-hand list... The error only appeared if I selected the "(All)" view... Yet I have the impression that it's simply a different way of displaying the machines...
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

September 1, 2020 - 9:46 AM

Nevertheless, the error message refers to a Postgres corruption, which WAPT can do little about... Otherwise, you would need to consult a Postgres expert.
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked