[ZBX-20451] zabbix-sql-scripts package missing when install Zabbix Proxy on rpm based OS Created: 2022 Jan 18 Updated: 2024 Apr 10 Resolved: 2022 Nov 01 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Installation (I) |
Affects Version/s: | 5.4.9 |
Fix Version/s: | 6.0.11rc1, 6.2.5rc1, 6.4.0beta3, 6.4 (plan) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Aleksey Volodin | Assignee: | Jurijs Klopovskis |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||||||
Team: | |||||||||||||
Sprint: | Sprint 84 (Jan 2022), Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022), Sprint 93 (Oct 2022) | ||||||||||||
Story Points: | 0.5 |
Description |
Steps to reproduce:
Result: File /usr/share/doc/zabbix-sql-scripts/mysql/schema.sql.gz missing Expected: Package zabbix-sql-scripts will by install automatically as part of zabbix-proxy-mysql package installation.
Also this can be fixed by just adding mention of this package in proxy installation documentation. |
Comments |
Comment by Luca Carangelo [ 2022 Jul 13 ] |
This problem is present on zabbix proxy 6.2 fresh installation too. Using the official procedure on ubuntu server 22.04 : DB installation script is absent in the path : /usr/share/doc/zabbix-proxy-mysql the only two present files are :
Please let me know ASAP how to fix this installation.
|
Comment by Zach van Rijn [ 2022 Jul 29 ] |
The issue is in Debian's apt configuration, not in the Zabbix the .deb packages. I was able to reproduce the issue using a Debian Docker image. In this case, the file /etc/dpkg/dpkg.cfg.d/docker (yours may differ) contains a line path-exclude /usr/share/doc/* which causes all files not explicitly whitelisted later in that file (e.g. path-include ...) to not be installed. Removing that line:
sed -i /etc/dpkg/dpkg.cfg.d/docker \
-e '\@path-exclude /usr/share/doc/*@d'
Then reinstalling the package solved the issue. root@32f1da10474f:~# ls -l /usr/share/doc/zabbix-sql-scripts/postgresql/ root@32f1da10474f:~# sed -i /etc/dpkg/dpkg.cfg.d/docker -e '\@path-exclude /usr/share/doc/*@d' root@32f1da10474f:~# apt-get -qy reinstall zabbix-sql-scripts Reading package lists... Building dependency tree... Reading state information... 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 7039 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 https://repo.zabbix.com/zabbix/6.2/debian bullseye/main amd64 zabbix-sql-scripts all 1:6.2.1-1+debian11 [7039 kB] Fetched 7039 kB in 3s (2812 kB/s) debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 12827 files and directories currently installed.) Preparing to unpack .../zabbix-sql-scripts_1%3a6.2.1-1+debian11_all.deb ... Unpacking zabbix-sql-scripts (1:6.2.1-1+debian11) over (1:6.2.1-1+debian11) ... Setting up zabbix-sql-scripts (1:6.2.1-1+debian11) ... root@32f1da10474f:~# ls -l /usr/share/doc/zabbix-sql-scripts/postgresql/ total 3568 -rw-r--r-- 1 root root 413 Jul 14 11:12 double.sql -rw-r--r-- 1 root root 2432 Jul 14 11:12 history_pk_prepare.sql -rw-r--r-- 1 root root 169198 Jul 14 11:12 proxy.sql -rw-r--r-- 1 root root 3469265 Jul 14 11:12 server.sql.gz -rw-r--r-- 1 root root 3437 Jul 14 11:12 timescaledb.sql I haven't checked the .rpm files but I'd imagine it to be a similar issue. |
Comment by Oleg Gawriloff [ 2022 Sep 14 ] |
Have the same issue on Ubuntu 22.04 LTS. /etc/dpkg/dpkg.cfg.d/excludes contains path-exclude=/usr/share/doc/* |
Comment by Jurijs Klopovskis [ 2022 Oct 31 ] |
Fixed together with |
Comment by ghislain [ 2022 Dec 22 ] |
just installed zabbix 6.2 on debian bullseye and have the very same issue:
not a single script to create the database...
: dpkg -l 'zabb*'|grep ii ii zabbix-agent 1:6.2.6-1+debian11 amd64 Zabbix network monitoring solution - agent ii zabbix-frontend-php 1:6.2.6-1+debian11 all Zabbix network monitoring solution - PHP front-end ii zabbix-get 1:6.2.6-1+debian11 amd64 Zabbix network monitoring solution - get ii zabbix-release 1:6.2-4+debian11 all Zabbix official repository configuration ii zabbix-sender 1:6.2.6-1+debian11 amd64 Zabbix network monitoring solution - sender ii zabbix-server-mysql 1:6.2.6-1+debian11 amd64 Zabbix network monitoring solution - server (MySQL) nothing name server.sql.gz or server.sql
: find /usr/share/doc/zabbix-* /usr/share/doc/zabbix-agent /usr/share/doc/zabbix-agent/changelog.Debian.gz /usr/share/doc/zabbix-agent/changelog.gz /usr/share/doc/zabbix-agent/copyright /usr/share/doc/zabbix-agent/userparameter_mysql.conf /usr/share/doc/zabbix-frontend-php /usr/share/doc/zabbix-frontend-php/changelog.Debian.gz /usr/share/doc/zabbix-frontend-php/changelog.gz /usr/share/doc/zabbix-frontend-php/copyright /usr/share/doc/zabbix-get /usr/share/doc/zabbix-get/changelog.Debian.gz /usr/share/doc/zabbix-get/changelog.gz /usr/share/doc/zabbix-get/copyright /usr/share/doc/zabbix-release /usr/share/doc/zabbix-release/README.Debian /usr/share/doc/zabbix-release/changelog.Debian /usr/share/doc/zabbix-release/copyright /usr/share/doc/zabbix-sender /usr/share/doc/zabbix-sender/changelog.Debian.gz /usr/share/doc/zabbix-sender/changelog.gz /usr/share/doc/zabbix-sender/copyright /usr/share/doc/zabbix-server-mysql /usr/share/doc/zabbix-server-mysql/changelog.Debian.gz /usr/share/doc/zabbix-server-mysql/changelog.gz /usr/share/doc/zabbix-server-mysql/copyright no special dpkg config it seems:
: find /etc/dpkg/ -type f -exec cat {} \; # dpkg configuration file # # This file can contain default options for dpkg. All command-line # options are allowed. Values can be specified by putting them after # the option, separated by whitespace and/or an `=' sign. ## Do not enable debsig-verify by default; since the distribution is not using # embedded signatures, debsig-verify would reject all packages. no-debsig# Log status changes and actions to a file. log /var/log/dpkg.log Vendor: Debian Vendor-URL: https://www.debian.org/ Bugs: debbugs://bugs.debian.org
best regards, Ghislain.
|
Comment by Anthony [ 2023 Jul 19 ] |
Hi There, was there a how-to to fix the mentioned issue? I have just installed Zabbix on Unbuntu and getting the same gzip: /usr/share/doc/zabbix-server-mysql*/create.sql.gz: No such file or directory Any help or guidance will be applicated
|
Comment by ghislain [ 2023 Jul 21 ] |
by installing zabbix-sql-scripts
apt-get install zabbix-sql-scripts
|
Comment by Anthony [ 2023 Jul 21 ] |
Hi there
Thank you for the feedback But even after the suggested install that I had already did I still get
gzip: /usr/share/doc/zabbix-server-mysql*/create.sql.gz: No such file or directory
Thank you |
Comment by Jurijs Klopovskis [ 2023 Jul 21 ] |
89east, what's the output of apt search zabbix ? Are you using the official Zabbix repo? |
Comment by Anthony [ 2023 Jul 21 ] |
Hi
the search returns with
apt search zabbix nagstamon/jammy,jammy 3.8.0-1 all octopussy/jammy,jammy 1.0.6-0ubuntu2 all pcp-export-pcp2zabbix/jammy 5.3.6-1build1 amd64 pcp-export-zabbix-agent/jammy 5.3.6-1build1 amd64 python3-protobix/jammy,jammy 1.0.2-8 all python3-pyzabbix/jammy,jammy 0.8.2-1 all resource-agents-extra/jammy-updates 1:4.7.0-1ubuntu7.1 amd64 uwsgi-core/jammy 2.0.20-4 amd64 yowsup-cli/jammy,jammy 3.2.3-2 all zabbix-agent/jammy,now 1:6.4.4-1+ubuntu22.04 amd64 [installed] zabbix-agent-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-agent2/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-agent2-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-agent2-plugin-mongodb/jammy 0:6.4.4-1+ubuntu22.04 amd64 zabbix-agent2-plugin-postgresql/jammy 0:6.4.4-1+ubuntu22.04 amd64 zabbix-apache-conf/jammy,now 1:6.4.4-1+ubuntu22.04 all [installed] zabbix-frontend-php/jammy,now 1:6.4.4-1+ubuntu22.04 all [installed] zabbix-get/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-get-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-java-gateway/jammy 1:6.4.4-1+ubuntu22.04 all zabbix-js/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-js-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-nginx-conf/jammy 1:6.4.4-1+ubuntu22.04 all zabbix-proxy-mysql/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-proxy-mysql-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-proxy-pgsql/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-proxy-pgsql-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-proxy-sqlite3/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-proxy-sqlite3-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-release/jammy,now 1:6.4-1+ubuntu22.04 all [installed] zabbix-sender/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-sender-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-server-mysql/jammy,now 1:6.4.4-1+ubuntu22.04 amd64 [installed] zabbix-server-mysql-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-server-pgsql/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-server-pgsql-dbgsym/jammy 1:6.4.4-1+ubuntu22.04 amd64 zabbix-sql-scripts/jammy,now 1:6.4.4-1+ubuntu22.04 all [installed] zabbix-web-service/jammy 1:6.4.4-1+ubuntu22.04 amd64
Additionally, I did a fresh install on a new Vm and went ok second time round!
|