Page 1 of 1

Empty package list

Published: October 22, 2018 - 10:59 AM
by Patrice_minagri
Hello,

WAPT version: 1.4.3.2.

On approximately 2000 workstations with the WAPT agent installed, an increasing number of computers are finding themselves with an empty package list (suddenly, I might add).

The method I use to solve this problem is a complete uninstallation (normal uninstallation + deletion of the c:\wapt directory) and reinstallation of the agent.

A simple uninstallation is not enough to restore everything to normal. You will understand that in the case of a mass application deployment, there are many computers on which it does not work. Therefore, a case-by-case approach is necessary.

How can this problem be explained? What is causing the issue? And how can this problem be resolved without having to delete the local WAPT database, which is responsible for future updates to the workstation?

Thank you in advance.

Patrice

Re: Empty package list

Published: October 22, 2018 - 12:34 PM
by htouvet
Perhaps Office 2016... and its excessively long list of uninstallation keys.

On the server (if Debian):

Code: Select all

cd /opt/wapt; sudo -u wapt psql -d wapt -c "ALTER TABLE hostpackagesstatus ALTER COLUMN uninstall_key TYPE varchar(2000);"

Re: Empty package list

Published: October 22, 2018 - 12:43
by Patrice_minagri
Hi Hubert,

Actually, this is independent of Office 2016. It's been happening for many months now, and our user support team frequently encounters this recurring problem.

A few weeks ago, I came across a machine where everything was working fine. The package list was available on the web interface. Then, for no apparent reason, a few days later the list was empty, even though no WAPT installation had been performed.

What does the command you mentioned do?

Re: Empty package list

Published: October 22, 2018 - 1:55 PM
by htouvet
The command increases the size of the `uninstall_key` field in the database (Wapt >= 1.6).
This field is declared as a `varcha(255)` and should be a list.
In Wapt 1.7, it is now a list.
However, in the meantime, you can work around the problem by increasing the field size.

This can generate the bug described in your case, as it prevents the list of deployed packages from being updated in the server's database.

Re: Empty package list

Published: October 22, 2018 - 1:57 PM
by Patrice_minagri
Thanks so much!

I'm on CentOS 7. I imagine the principle is the same as on Debian!

However, I have version 1.4.3.2. So the command you wrote probably won't work?

I'm using MongoDB, right?

Re: Empty package list

Published: October 22, 2018 - 2:45 PM
by htouvet
You are using PostgreSQL but in version 1.4, this field does not exist, so it is not the source of your problem.

Re: Empty package list

Published: July 28, 2020 - 10:53 AM
by tienou
Hello,

I have the same problem, so I'm taking the liberty of reviving this thread.
However, I'm on a Windows server (Version 1.8.2.72.65)
and ALL workstations have an empty package list.

PS: The workstations are on their second WAPT server (formerly server 2008, now server 2019).