[SOLVED] Waptserver logrotate is not working.

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
lelongg
Messages: 13
Registration: Sep 22, 2022 - 4:06 p.m.

October 18, 2022 - 1:11 PM

Hello,

my server's logrotate isn't creating archives, and the /var/log/waptserver.log file is always empty. It logs to the last file dated last Friday (/var/log/waptserver.log-20221014 for this week) and doesn't compress older logs. The folder fills up (file system full), and I have to empty it manually. Other logs, like secure and spooler, work fine.

How can I get it working normally again?

WAPT Server: 1.8.2 Community
Red Hat Advanced Server 7.

Thank you for your help.

Best regards

PS: Here is part of the content of /var/log

-rw------- 1 root root 4595325 08:58:46 Oct 18, 2022 secure
-rw------- 1 root root 4752909 04:06:40 Aug 14, 2022 secure-20220814
-rw------- 1 root root 4708077 03:31:43 Aug 21, 2022 secure-20220821
-rw------- 1 root root 4762051 03:42:12 Aug 28, 2022 secure-20220828
-rw------- 1 root root 4718835 03:16:17 Sep 4 2022 secure-20220904
-rw------- 1 root root 279136 03:58:04 Sep 18, 2022 secure-20220918.gz
-rw------- 1 root root 278330 03:35:01 Sep 25, 2022 secure-20220925.gz
-rw------- 1 root root 277270 03:14:27 02 Oct 2022 secure-20221002.gz
-rw------- 1 root root 270420 04:00:02 09 Oct 2022 secure-20221009.gz
-rw------- 1 root root 0 04:00:51 09 Oct 2022 spooler
-rw------- 1 root root 0 03:12:00 07 Aug 2022 spooler-20220814
-rw------- 1 root root 0 04:10:32 14 Aug 2022 spooler-20220821
-rw------- 1 root root 0 03:31:57 Aug 21, 2022 spooler-20220828
-rw------- 1 root root 0 03:44:17 Aug 28, 2022 spooler-20220904
-rw------- 1 root root 20 03:46:27 Sep 11 2022 spooler-20220918.gz
-rw------- 1 root root 20 03:58:17 Sep 18, 2022 spooler-20220925.gz
-rw------- 1 root root 20 03:36:31 Sep 25, 2022 spooler-20221002.gz
-rw------- 1 root root 20 03:15:45 02 Oct 2022 spooler-20221009.gz
drwxr-x---. 2 sssd sssd 4096 03:39:08 Oct 18, 2022 sssd
-rw-------. 1 root root 64192 12:15:14 04 Jan 2022 tallylog
drwxr-xr-x. 2 root root 23 22:32:42 Dec 14 2020 tuned
-rw------- 1 root root 757 13:44:04 25 Aug 2022 vmware-network.1.log
-rw------- 1 root root 723 08:35:15 02 Mar 2022 vmware-network.2.log
-rw------- 1 root root 723 08:27:08 02 Mar 2022 vmware-network.3.log
-rw------- 1 root root 735 13:45:51 Aug 25, 2022 vmware-network.log
-rw------- 1 root root 9546 13:45:51 Aug 25, 2022 vmware-vgauthsvc.log.0
-rw------- 1 root root 22780 10:18:08 Oct 17, 2022 vmware-vmsvc-root.log
-rw------- 1 root root 1974 13:45:51 Aug 25, 2022 vmware-vmtoolsd-root.log
-rw-r----- 1 root root 0 03:52:05 Oct 14, 2022 waptserver.log
-rw-r----- 1 root root 205553151 02:55:14 Sep 4, 2022 waptserver.log-20220902
-rw-r----- 1 root root 190748543 03:44:18 Sep 11, 2022 waptserver.log-20220909
-rw-r----- 1 root root 197163252 03:57:59 Sep 18, 2022 waptserver.log-20220916
-rw-r----- 1 root root 222251393 03:35:37 Sep 25, 2022 waptserver.log-20220923
-rw-r----- 1 root root 208542839 03:15:42 02 Oct 2022 waptserver.log-20220930
-rw-r----- 1 root root 211027438 04:00:47 09 Oct 2022 waptserver.log-20221007
-rw-r----- 1 root root 246020418 09:00:32 Oct 18, 2022 waptserver.log-20221014
-rw------- 1 root root 2360994 08:00:53 Oct 18, 2022 wapttasks.log
-rw-rw-r-- 1 root utmp 10408320 08:58:46 18 Oct 2022 wtmp
-rw-rw-r-- 1 root utmp 22304256 03:27:32 01 Sep 2022 wtmp-20220901
-rw-rw-r-- 1 root utmp 665823 04:09:28 01 Oct 2022 wtmp-20221001.gz
-rw------- 1 root root 6460 20:46:28 13 Sep 2022 yum.log
-rw-------. 1 root root 15416 00:18:02 Dec 27 2021 yum.log-20220101
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

November 16, 2022 - 12:04 PM

Hi Gilles,

there must be a missing service restart in the log rotate configuration. That said, version 1.8.2 is no longer maintained, so I strongly advise you to upgrade.

As mentioned in the forum rules above, this forum is intended only for maintained versions of WAPT. If you want to resume maintenance of version 1.8.2, you can fork the repository on GitHub and submit issues there.

I'm marking this topic as resolved.

Best regards,

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
Locked