[ZBX-21267] zabbix-sql-scripts installs nothing on arm64 ubuntu 22.04 Created: 2022 Jun 29  Updated: 2024 Apr 10  Resolved: 2022 Sep 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Packages (C)
Affects Version/s: None
Fix Version/s: 6.4.0alpha1, 6.4 (plan)

Type: Problem report Priority: Major
Reporter: Edgar Akhmetshin Assignee: Martins Valkovskis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 22.04 ARM64


Issue Links:
Duplicate
is duplicated by ZBXNEXT-7864 No server.sql.gz file is generated wh... Closed
is duplicated by ZBX-20451 zabbix-sql-scripts package missing wh... Closed
Team: Team B
Sprint: Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022)
Story Points: 0.5

 Description   

Steps to reproduce:

  1. install clean Ubuntu
  2. enable Zabbix repo from zabbix.com
  3. install zabbix-sql-scripts
    apt-cache policy
    Package files:
     100 /var/lib/dpkg/status
         release a=now
     500 https://repo.zabbix.com/zabbix/6.0/ubuntu-arm64 jammy/main arm64 Packages
         release v=22.04,o=Zabbix,a=jammy,n=jammy,l=zabbix,c=main,b=arm64
         origin repo.zabbix.com
    
    apt info zabbix-sql-scripts
    Package: zabbix-sql-scripts
    Version: 1:6.0.6-1+ubuntu22.04
    Priority: optional
    Section: net
    Source: zabbix
    Maintainer: Zabbix Packager <[email protected]>
    Installed-Size: 7442 kB
    Homepage: https://www.zabbix.com
    Download-Size: 6598 kB
    APT-Manual-Installed: yes
    APT-Sources: https://repo.zabbix.com/zabbix/6.0/ubuntu-arm64 jammy/main arm64 Packages
    
    dpkg -L zabbix-sql-scripts
    /.
    /usr
    /usr/share
    /usr/share/doc
    /usr/share/doc/zabbix-sql-scripts
    /usr/share/doc/zabbix-sql-scripts/changelog.Debian.gz
    /usr/share/doc/zabbix-sql-scripts/copyright
    /usr/share/doc/zabbix-sql-scripts/mysql
    /usr/share/doc/zabbix-sql-scripts/mysql/double.sql
    /usr/share/doc/zabbix-sql-scripts/mysql/history_pk_prepare.sql
    /usr/share/doc/zabbix-sql-scripts/mysql/proxy.sql
    /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz
    /usr/share/doc/zabbix-sql-scripts/postgresql
    /usr/share/doc/zabbix-sql-scripts/postgresql/double.sql
    /usr/share/doc/zabbix-sql-scripts/postgresql/history_pk_prepare.sql
    /usr/share/doc/zabbix-sql-scripts/postgresql/proxy.sql
    /usr/share/doc/zabbix-sql-scripts/postgresql/server.sql.gz
    /usr/share/doc/zabbix-sql-scripts/postgresql/timescaledb.sql
    /usr/share/doc/zabbix-sql-scripts/sqlite3
    /usr/share/doc/zabbix-sql-scripts/sqlite3/proxy.sql
     
    
    ls -la /usr/share/doc/zabbix-sql-scripts/postgresql/double.sql
    ls: cannot access '/usr/share/doc/zabbix-sql-scripts/postgresql/double.sql': No such file or directory
    

Result:
No files, just directories.

Expected:
SQL files.



 Comments   
Comment by Edgar Akhmetshin [ 2022 Jul 04 ]

The root cause if using minimal install:

This system has been minimized by removing packages and content that are not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

If execute 'unminimize' package and after install zabbix-sql-scripts it will install all the scripts. Package should not install files as docs.

Comment by Jurijs Klopovskis [ 2022 Jul 04 ]

path-exclude setting in /etc/dpkg/dpkg.cfg.d/excludes

https://raphaelhertzog.com/2010/11/15/save-disk-space-by-excluding-useless-files-with-dpkg/

Comment by dimir [ 2022 Jul 26 ]

This one is a known issue. Usually happens with docker containers. These guys have "exclude /usr/share/doc" rule in deb package manager configuration. So, basically, no matter what stuff a package has in /usr/share/doc the package manager will skip it.

Solution? Yeah, probably we should find another place for our SQL files (I wouldn't make an exception only for deb).

Comment by Jurijs Klopovskis [ 2022 Jul 26 ]

Yeah, probably we should find another place for our SQL files (I wouldn't make an exception only for deb).

Since /usr/share/zabbix is already taken by frontend, I'm thinking about someting like /usr/share/zabbix-sql-scripts

Comment by Martins Valkovskis [ 2022 Sep 22 ]

Updated documentation in "What's new" for 6.0.9 and 6.2.3. Additionally, all instances referring to "/usr/share/doc" in documentation have been converted to "/usr/share".

Generated at Fri Mar 14 13:29:43 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.