Containers management with Systemd

Pedro Goofy

New Member
Mar 8, 2023
2
0
1
Hello,

facing for some time now unexpected stops of containers, I have finally found that it is happening when needrestart tries to restart them with systemctl calls.
And indeed, it looks that systemctl start pve-container@xxx.service systematically fails with:

Code:
Mar 09 11:27:19 proxmox systemd[1]: Started PVE LXC Container: 102.
Mar 09 11:27:20 proxmox systemd[1]: pve-container@102.service: Main process exited, code=exited, status=1/FAILURE
Mar 09 11:27:20 proxmox systemd[1]: pve-container@102.service: Failed with result 'exit-code'.
Mar 09 11:27:20 proxmox systemd[1]: pve-container@102.service: Consumed 1.489s CPU time.

It happens with all the containers I have tested on an up to date Debian 11 + Proxmox 7.3-6 (pveversion attached). The debug mode (pre-container-debug) doesn't provide further information.

Any idea of the root cause?
 

Attachments

you should definitely exclude pve-container@ from needrestart (and probably also some other things that should be left alone or reloaded instead of restarted).
 

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!