[SOLVED] apt update / upgrade on Linux agents

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
eglyn18
Messages: 3
Registration: February 9, 2021 - 1:41 PM

August 16, 2023 - 2:44 PM

WAPT ENTERPRISE: 2.4

Hello everyone,

We centralize the management of updates for Debian workstations via WAPT.

I created a very simple package that checks for updates and launches the upgrades.
We also have a package that audits updates and lists those that need to be deployed.
We then install the update management package "by force," and it installs correctly.

EXCEPT:

when the WAPT agent update is among the updates, it crashes and throws an error.
And if we connect to the Debian machine, it asks us to run `dpkg --configure -a` to correct the installation problems.

Initially, I suspected that the forced restart of the syslog service after the WAPT agent installation, even if the service isn't present, was causing an error (no prior check for service existence).

So, I created a package that simply runs the command: `dpkg --configure -a`, and outputs all the errors. But this package doesn't work either, and outputs nothing.
I ran the same package in debug mode via VS Code over SSH, and it works fine there.

The only unusual thing is that the WAPT agent service restarts after installation.

I have the impression that the console can't handle this restart and crashes the installation.

So I can't find a solution, except for now to do without WAPT for managing Debian updates and go back to Ansible.

If anyone has any ideas on how to solve this problem, :)

thank you!
Last edited by eglyn18 on August 16, 2023 - 3:57 PM, edited 1 time.
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

August 16, 2023 - 3:34 PM

Hello,
We can try putting the tis-waptagent package on hold on debian and use the WAPT waptupgrade package for the agent update.
eglyn18
Messages: 3
Registration: February 9, 2021 - 1:41 PM

August 16, 2023 - 3:56 PM

Yes, it works perfectly, thank you for your solution!
Locked