Mail Gateway 8.1.2 logrotate

abranca

Well-Known Member
Mar 6, 2017
49
5
48
38
hi guys,
I have a problem that has been occurring for a few days.
logrotate won't boot up and I don't receive or send emails until I manually restart it.

I tried to re-enable the service with systemd but i get the error i post below.
is anyone experiencing the same problem?

thanks everyone!

Error
Code:
root@posta:~# systemctl status logrotate
logrotate.service - Rotate log files
     Loaded: loaded (/lib/systemd/system/logrotate.service; static)
     Active: inactive (dead)
TriggeredBy: logrotate.timer
       Docs: man:logrotate(8)
             man:logrotate.conf(5)
root@posta:~# systemctl restart logrotate
root@posta:~# systemctl enable logrotate
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.
 
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.

PMG packages
Code:
Proxmox
Mail Gateway 8.1.2
()
proxmox-mailgateway-container: 8.1.0
pmg-api: 8.1.2
pmg-gui: 4.1.1
clamav-daemon: 1.0.5+dfsg-1~deb12u1
ifupdown: 0.8.41
libarchive-perl: 3.6.2
libjs-extjs: 7.0.0-4
libjs-framework7: 4.4.7-2
libproxmox-acme-perl: 1.5.1
libproxmox-acme-plugins: 1.5.1
libpve-apiclient-perl: 3.3.2
libpve-common-perl: 8.2.1
libpve-http-server-perl: 5.1.0
libxdgmime-perl: 1.1.0
lvm2: not correctly installed
pmg-docs: 8.1.1
pmg-i18n: 3.2.2
pmg-log-tracker: 2.5.0
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.6
proxmox-spamassassin: 4.0.1-1
proxmox-widget-toolkit: 4.2.3
pve-xtermjs: 5.3.0-3
 
On a hunch - is the container PMG runs in unprivileged (I assume it's running on a PVE) - if yes - make sure you have enabled nesting in the container options!
 
Forgive the lack, yes it is run in an LXC container on Proxmox VE.
Nesting is active.
I tried restoring a previous backup and everything is back up and running. I don't understand, however, what the problem might be due to.

1725269950488.png
 
Ok - so that's not the reason...

logrotate is started by sytemd-timer/cron ....

what's the output of:
`systemctl list-timers`
`systemctl status logrotate.timer`
`systemctl status logrotate.service`

also check the journal for messages that might explain why it's not working (`journalctl --since 2024-08-01` for the journal from August until today)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!