[ZBX-21124] Zabbix server won't shutdown, hang at "A Stop job is running for Zabbix Server" Created: 2022 May 27  Updated: 2024 Apr 08  Resolved: 2022 May 30

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 6.0.4
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: David Assignee: Zabbix Support Team
Resolution: Fixed Votes: 0
Labels: patch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. Install Zabbix with Postgres v14 on Rocky Linux 8.6
  2. try to poweroff

Result:

Stay at the message "A Stop job is running for Zabbix Server" indefinitely

Expected:

Need to stop the postgres service after zabbix server

Need this value in the zabbix-server service :

After=postgresql-14.service

 

 



 Comments   
Comment by Jurijs Klopovskis [ 2022 May 30 ]

Fixed in pre: 5.0.24 , 6.0.5, 6.2.0rc1

Comment by Stephan A. Klein [ 2024 Feb 03 ]

Same Problem with Zabbix Proxy (6.4.11) on Ubuntu 22.04 in combination with mariadb. If the DB is gone, the proxy process will hang forever (even in the service restart / reload cycle after package updates).

Comment by Jurijs Klopovskis [ 2024 Feb 05 ]

I'll check the unit files and update them if needed.

What's the exact service name for mariadab on your system, stephan2 ?

Comment by Stephan A. Klein [ 2024 Feb 05 ]

It's  mariadb.service

Comment by Javier Ros [ 2024 Apr 08 ]

The same here using mariadb (mariadb.service is the service name).

 

We have activated the daily apt update and upgrade, the problem come when the updating or upgrading require service restarting, if the system restart zabbix when mariadb is stopped ... hangs the process, zabbix is active but no database found due to mariadb is stopping.

 

All weekend without working due to it.

 

Perhaps  'TimeoutSec=240s' in zabbix service declaration helps ... not sure.

 

we are running Zabbix 6.4.11

Generated at Wed Apr 30 06:39:23 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.