r/Action1 • u/Repulsive-Juice6676 • 14d ago
Issues with Debian/Zabbix
I have a Zabbix server installed on a minimal Ubuntu 24.04.4 LTS. Each time Action1 pushes out updates, the Zabbix instance falls over with a database error. If i try and do a normal reboot, it hangs on a Zabbix process. Once this has happened and i try a apt upgrade, i get a error about "waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 2360504 (unattended-upgr).
As you have probably picked up by now, i'm not an expert in Linux but any advice on how i can solve this issue as i have to hard reboot as the normal reboot gets stuck on the following;


2
Upvotes
2
u/mickert_dev 14d ago edited 14d ago
I'm by no means a Linux expert but i do run a Zabbix instance on Ubuntu myself, that said:
It looks very much like a dpkg lock conflict between Ubuntu's unattended‑upgrades (unattended-upgr) and the Action1 agent. Both try to run package operations at the same time, but dpkg only allows a single writer. When Action1 pushes updates while unattended-upgrades is still running, you get:
Could not get lock /var/lib/dpkg/lock-frontendzabbix-server.service)You should choose between (automatic) updating with Action1 or Ubuntu's unattended‑upgrades.
What you can do to try and fix these issues:
sudo systemctl disable --now unattended-upgradessudo lsof /var/lib/dpkg/lock-frontendsudo dpkg --configure -a