[GH-ISSUE #11952] Update fails in Zabbix LXC due to wrong agent service #2510

Closed
opened 2026-02-26 12:52:41 +03:00 by kerem · 2 comments
Owner

Originally created by @lberrezoug on GitHub (Feb 15, 2026).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/11952

Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

📜 What is the name of the script you are using?

zabbix

📂 What was the exact command used to execute the script?

https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/zabbix.sh

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

debian 13

📈 Which Proxmox version are you on?

Virtual Environment 8.4

📝 Provide a clear and concise description of the issue.

When I run the update on my LXC using cli update, it fails with this error:
Stopping ServicesFailed to stop zabbix-agent.service: Unit zabbix-agent.service not loaded.
in line 46: exit code 5 (Unknown error)
On my system, only zabbix-agent2.service exists

Image Image

🔄 Steps to reproduce the issue.

Run the update script

Paste the full error output (if available).

cat /tmp/create-lxc-cd7b3a92.log
[2026-02-15 21:05:23] [INFO] Stopping Services
[2026-02-15 21:05:23] [ERROR] in line 46: exit code 5 (Unknown error): while executing command systemctl stop "$AGENT_SERVICE"
[2026-02-15 21:05:23] Full log: /tmp/create-lxc-cd7b3a92.log

🖼️ Additional context (optional).

No response

Originally created by @lberrezoug on GitHub (Feb 15, 2026). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/11952 ### ✅ Have you read and understood the above guidelines? yes ### 🔎 Did you run the script with verbose mode enabled? Yes, verbose mode was enabled and the output is included below ### 📜 What is the name of the script you are using? zabbix ### 📂 What was the exact command used to execute the script? https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/zabbix.sh ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? debian 13 ### 📈 Which Proxmox version are you on? Virtual Environment 8.4 ### 📝 Provide a clear and concise description of the issue. When I run the update on my LXC using cli update, it fails with this error: Stopping ServicesFailed to stop zabbix-agent.service: Unit zabbix-agent.service not loaded. in line 46: exit code 5 (Unknown error) On my system, only zabbix-agent2.service exists <img width="1299" height="384" alt="Image" src="https://github.com/user-attachments/assets/34b244b6-80d7-40dc-85d0-3b1cfee75f7a" /> <img width="1312" height="528" alt="Image" src="https://github.com/user-attachments/assets/51f82bf9-8e40-4fac-b789-f7a16d8ac76b" /> ### 🔄 Steps to reproduce the issue. Run the update script ### ❌ Paste the full error output (if available). cat /tmp/create-lxc-cd7b3a92.log [2026-02-15 21:05:23] [INFO] Stopping Services [2026-02-15 21:05:23] [ERROR] in line 46: exit code 5 (Unknown error): while executing command systemctl stop "$AGENT_SERVICE" [2026-02-15 21:05:23] Full log: /tmp/create-lxc-cd7b3a92.log ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:52:41 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@lberrezoug commented on GitHub (Feb 15, 2026):

Strangely, the script only works about half the time. Sometimes it stops services correctly and continues, other times it fails with the zabbix-agent.service not loaded error.

For example, right now the script successfully stopped services and prompted for the Zabbix version:

Image
<!-- gh-comment-id:3905105808 --> @lberrezoug commented on GitHub (Feb 15, 2026): Strangely, the script only works about half the time. Sometimes it stops services correctly and continues, other times it fails with the zabbix-agent.service not loaded error. For example, right now the script successfully stopped services and prompted for the Zabbix version: <img width="1301" height="266" alt="Image" src="https://github.com/user-attachments/assets/7d75ddc4-939a-4186-8b3f-e6353272ea31" />
Author
Owner

@MickLesk commented on GitHub (Feb 15, 2026):

Idk, its optimized many times. I dont have any Idea for this script

<!-- gh-comment-id:3905249400 --> @MickLesk commented on GitHub (Feb 15, 2026): Idk, its optimized many times. I dont have any Idea for this script
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#2510
No description provided.