Zabbix LXC script error #250

Closed
opened 2025-11-20 04:45:42 -05:00 by saavagebueno · 6 comments
Owner

Originally created by @Fragment7436 on GitHub (Dec 28, 2024).

Have you read and understood the above guidelines?

yes

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

Zabbix LXC

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

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/zabbix.sh)"

📝 Provide a clear and concise description of the issue.

Script returns an error when running the "Setting up PostgreSQL" step and stops the script.

gzip: /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz: No such file or directory
[ERROR] in line 42: exit code 0: while executing command sudo -u $DB_USER psql $DB_NAME &> /dev/null

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Script returns same error every time. Tested on three different ProxmoxVEs. Two with default settings and one with advanced settings.

Paste the full error output (if available).

No other errors shown in verbose mode other than the below.

gzip: /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz: No such file or directory
[ERROR] in line 42: exit code 0: while executing command sudo -u $DB_USER psql $DB_NAME &> /dev/null

🖼️ Additional context (optional).

No response

Originally created by @Fragment7436 on GitHub (Dec 28, 2024). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Zabbix LXC ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/zabbix.sh)" ### 📝 Provide a clear and concise description of the issue. Script returns an error when running the "Setting up PostgreSQL" step and stops the script. gzip: /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz: No such file or directory [ERROR] in line 42: exit code 0: while executing command sudo -u $DB_USER psql $DB_NAME &> /dev/null ### ⚙️ What settings are you using? - [X] Default Settings - [X] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Script returns same error every time. Tested on three different ProxmoxVEs. Two with default settings and one with advanced settings. ### ❌ Paste the full error output (if available). No other errors shown in verbose mode other than the below. gzip: /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz: No such file or directory [ERROR] in line 42: exit code 0: while executing command sudo -u $DB_USER psql $DB_NAME &> /dev/null ### 🖼️ Additional context (optional). _No response_
Author
Owner

@MickLesk commented on GitHub (Dec 28, 2024):

Cant reproduce this.

Can you Check too? @michelroegl-brunner

@MickLesk commented on GitHub (Dec 28, 2024): Cant reproduce this. Can you Check too? @michelroegl-brunner
Author
Owner

@michelroegl-brunner commented on GitHub (Dec 28, 2024):

image
Same error on three of my nodes.

@michelroegl-brunner commented on GitHub (Dec 28, 2024): ![image](https://github.com/user-attachments/assets/dba58b1b-64ce-4567-a0b1-5d8927c7dd7b) Same error on three of my nodes.
Author
Owner

@MickLesk commented on GitHub (Dec 28, 2024):

please report issue to zabbix.
https://www.zabbix.com/download?zabbix=7.2&os_distribution=debian&os_version=12&components=server_frontend_agent&db=pgsql&ws=apache

the file dont exists in 7.2

@MickLesk commented on GitHub (Dec 28, 2024): please report issue to zabbix. https://www.zabbix.com/download?zabbix=7.2&os_distribution=debian&os_version=12&components=server_frontend_agent&db=pgsql&ws=apache the file dont exists in 7.2
Author
Owner

@roswitina commented on GitHub (Dec 28, 2024):

I get the same error message during installation

 ⠼gzip: /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz: No such file or directory

[ERROR] in line 42: exit code 0: while executing command sudo -u $DB_USER psql $DB_NAME &> `/dev/null`

The path seems to be wrong. In the Zabbix - LXC container it is

/usr/share/zabbix/sql-scripts/postgresql/server.sql.gz

@roswitina commented on GitHub (Dec 28, 2024): I get the same error message during installation ``` ⠼gzip: /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz: No such file or directory [ERROR] in line 42: exit code 0: while executing command sudo -u $DB_USER psql $DB_NAME &> `/dev/null` ``` The path seems to be wrong. In the Zabbix - LXC container it is `/usr/share/zabbix/sql-scripts/postgresql/server.sql.gz`
Author
Owner

@MickLesk commented on GitHub (Dec 28, 2024):

idiots.. ^^ okay, fix in the next 30min

@MickLesk commented on GitHub (Dec 28, 2024): idiots.. ^^ okay, fix in the next 30min
Author
Owner

@MickLesk commented on GitHub (Dec 28, 2024):

merged

@MickLesk commented on GitHub (Dec 28, 2024): merged
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#250