[ZBX-19750] Newer dependencies not recognised in Fedora 34 Created: 2021 Jul 30  Updated: 2021 Aug 02

Status: Reopened
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I), Packages (C)
Affects Version/s: 5.4.3
Fix Version/s: None

Type: Problem report Priority: Major
Reporter: Aidan Burnett Assignee: Jurijs Klopovskis
Resolution: Unresolved Votes: 0
Labels: packaging
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Fedora 34 Server Edition



 Description   

Upon following the instructions on [this page|https://www.zabbix.com/download?zabbix=5.4&os_distribution=red_hat_enterprise_linux&os_version=8&db=mysql&ws=apache,] I have found that it is not possible to install Zabbix server version 5.4.3 on a fresh installation of Fedora 34 Server Edition.

The installation seeks old versions of libevent and libnetsnmp specifically for packages zabbix-server-mysql or zabbix-server-pgsql. Newer versions of the libraries are already installed and so I would have expected the Zabbix server package to require a minimum version as opposed to a maximum version. The results are as follows:

 

[admin@lonmon01 ~]$ sudo dnf install zabbix-server-mysql-5.4.3-1.el8.x86_64
Last metadata expiration check: 0:46:12 ago on Thu 29 Jul 2021 20:42:49 BST.
Error: 
 Problem: conflicting requests
  - nothing provides libevent-2.1.so.6()(64bit) needed by zabbix-server-mysql-5.4.3-1.el8.x86_64
  - nothing provides libnetsnmp.so.35()(64bit) needed by zabbix-server-mysql-5.4.3-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages)
[admin@lonmon01 ~]$ sudo dnf install zabbix-server-pgsql-5.4.3-1.el8.x86_64
Last metadata expiration check: 0:46:17 ago on Thu 29 Jul 2021 20:42:49 BST.
Error: 
 Problem: conflicting requests
  - nothing provides libevent-2.1.so.6()(64bit) needed by zabbix-server-pgsql-5.4.3-1.el8.x86_64
  - nothing provides libnetsnmp.so.35()(64bit) needed by zabbix-server-pgsql-5.4.3-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages)
[admin@lonmon01 ~]$ ls -la /lib64/libevent-2.1.so.7
lrwxrwxrwx. 1 root root 21 Jan 27  2021 /lib64/libevent-2.1.so.7 -> libevent-2.1.so.7.0.1
[admin@lonmon01 ~]$ ls -la /lib64/libnetsnmp.so.40
lrwxrwxrwx. 1 root root 20 Jun  1 08:02 /lib64/libnetsnmp.so.40 -> libnetsnmp.so.40.1.0

 



 Comments   
Comment by Aleksey Volodin [ 2021 Aug 02 ]

Terribly sorry for the mess - i added comment before page update, and have not seen your comments.

Comment by Aidan Burnett [ 2021 Aug 02 ]

Hello Aleksey,

Thank you for advising, however one of the reasons I was trying to install Zabbix Server 5.4.3 was because 5.0.10 fails for different reasons. I can explain these here although please let me know if I should open a different problem ticket for it.

The instructions found at this link do not specify the zabbix-sql-scripts package as you have, as it does not exist in either the updates or official Zabbix repository. The result is that the following file does not exist to be used to set up the database:

/usr/share/doc/zabbix-server-mysql*/create.sql.gz

Install output as follows:

[root@lonmon01 admin]# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-agent
Fedora 34 - x86_64                                                                                                                                                                     40 kB/s |  26 kB     00:00    
Fedora Modular 34 - x86_64                                                                                                                                                            151 kB/s |  25 kB     00:00    
Fedora 34 - x86_64 - Updates                                                                                                                                                           43 kB/s |  22 kB     00:00    
Fedora 34 - x86_64 - Updates                                                                                                                                                          2.3 MB/s | 4.3 MB     00:01    
Fedora Modular 34 - x86_64 - Updates                                                                                                                                                   55 kB/s |  24 kB     00:00    
Fedora Modular 34 - x86_64 - Updates                                                                                                                                                  224 kB/s | 253 kB     00:01    
No match for argument: zabbix-apache-conf
No match for argument: zabbix-sql-scripts
Error: Unable to find a match: zabbix-apache-conf zabbix-sql-scripts
[root@lonmon01 admin]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
Retrieving https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
warning: /var/tmp/rpm-tmp.MsHlF7: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:zabbix-release-5.0-1.el8         ################################# [100%]
[root@lonmon01 admin]# dnf clean all 
42 files removed
[root@lonmon01 admin]# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-agent
Fedora 34 - x86_64                                                                                                                                                                    4.0 MB/s |  74 MB     00:18    
Fedora 34 openh264 (From Cisco) - x86_64                                                                                                                                              1.7 kB/s | 2.5 kB     00:01    
Fedora Modular 34 - x86_64                                                                                                                                                            1.8 MB/s | 4.9 MB     00:02    
Fedora 34 - x86_64 - Updates                                                                                                                                                          3.7 MB/s |  21 MB     00:05    
Fedora Modular 34 - x86_64 - Updates                                                                                                                                                  3.1 MB/s | 4.6 MB     00:01    
Zabbix Official Repository - x86_64                                                                                                                                                   155 kB/s | 163 kB     00:01    
Zabbix Official Repository non-supported - x86_64                                                                                                                                     1.9 kB/s | 1.2 kB     00:00    
No match for argument: zabbix-sql-scripts
Error: Unable to find a match: zabbix-sql-scripts
[root@lonmon01 admin]# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent
Last metadata expiration check: 0:01:26 ago on Mon 02 Aug 2021 10:59:51 BST.
Dependencies resolved. Problem: package zabbix-web-deps-5.0.14-1.el8.x86_64 requires zabbix-web = 5.0.14-1.el8, but none of the providers can be installed
  - cannot install both zabbix-web-5.0.14-1.el8.noarch and zabbix-web-1:5.0.10-1.fc34.noarch
  - package zabbix-apache-conf-5.0.14-1.el8.noarch requires zabbix-web-deps = 5.0.14-1.el8, but none of the providers can be installed
  - package zabbix-web-mysql-1:5.0.10-1.fc34.noarch requires zabbix-web = 1:5.0.10-1.fc34, but none of the providers can be installed
  - cannot install the best candidate for the job

[...]

Complete!
[root@lonmon01 admin]# ls /usr/share/doc/zabbix
zabbix/         zabbix-agent/   zabbix-release/ zabbix-server/  

Best regards,

Aidan.

Comment by Jurijs Klopovskis [ 2021 Aug 02 ]

Hi, AWBbox

In 5.0 and older versions, sql files are shipped in server and proxy packages. Separate zabbix-sql-scripts package was introduced in later versions.

# rpm -qlp zabbix-server-mysql-5.0.14-1.el8.x86_64.rpm
...
/usr/share/doc/zabbix-server-mysql/create.sql.gz
/usr/share/doc/zabbix-server-mysql/double.sql
...
Comment by Aidan Burnett [ 2021 Aug 02 ]

Hi @Jurijs Klopovskis

Packages from the updates repo do not appear to include the sql files:

root@lonmon01 admin]# rpm -qa | grep zabbix
zabbix-release-5.0-1.el8.noarch
zabbix-dbfiles-mysql-5.0.10-1.fc34.noarch
zabbix-selinux-5.0.10-1.fc34.noarch
zabbix-5.0.10-1.fc34.x86_64
zabbix-web-mysql-5.0.10-1.fc34.noarch
zabbix-web-5.0.10-1.fc34.noarch
zabbix-server-5.0.10-1.fc34.noarch
zabbix-server-mysql-5.0.10-1.fc34.x86_64
zabbix-apache-conf-5.0.3-1.el8.noarch
zabbix-agent-5.0.10-1.fc34.x86_64
root@lonmon01 admin]# ls /usr/share/doc/zabbix
zabbix/         zabbix-agent/   zabbix-release/ zabbix-server/  

And packages from the official Zabbix repo cannot be installed for the same reason I opened this problem ticket:

[root@lonmon01 admin]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
Retrieving https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
warning: /var/tmp/rpm-tmp.81c0cw: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:zabbix-release-5.0-1.el8         ################################# [100%]
[root@lonmon01 admin]# dnf clean all 
42 files removed
[root@lonmon01 admin]# dnf install zabbix-server-mysql-5.0.14-1.el8.x86_64.rpm zabbix-web-mysql-5.0.14-1.el8.noarch.rpm zabbix-apache-conf-5.0.14-1.el8.noarch.rpm zabbix-agent-5.0.14-1.el8.x86_64.rpm
Fedora 34 - x86_64                                                                                                                                                                    3.8 MB/s |  74 MB     00:19    
Fedora 34 openh264 (From Cisco) - x86_64                                                                                                                                              1.6 kB/s | 2.5 kB     00:01    
Fedora Modular 34 - x86_64                                                                                                                                                            2.9 MB/s | 4.9 MB     00:01    
Fedora 34 - x86_64 - Updates                                                                                                                                                          3.7 MB/s |  21 MB     00:05    
Fedora Modular 34 - x86_64 - Updates                                                                                                                                                  1.9 MB/s | 4.6 MB     00:02    
Zabbix Official Repository - x86_64                                                                                                                                                   142 kB/s | 163 kB     00:01    
Zabbix Official Repository non-supported - x86_64                                                                                                                                     1.7 kB/s | 1.2 kB     00:00    
Can not load RPM file: zabbix-server-mysql-5.0.14-1.el8.x86_64.rpm.
Can not load RPM file: zabbix-web-mysql-5.0.14-1.el8.noarch.rpm.
Can not load RPM file: zabbix-apache-conf-5.0.14-1.el8.noarch.rpm.
Can not load RPM file: zabbix-agent-5.0.14-1.el8.x86_64.rpm.
Could not open: zabbix-server-mysql-5.0.14-1.el8.x86_64.rpm zabbix-web-mysql-5.0.14-1.el8.noarch.rpm zabbix-apache-conf-5.0.14-1.el8.noarch.rpm zabbix-agent-5.0.14-1.el8.x86_64.rpm
[root@lonmon01 admin]# dnf install zabbix-server-mysql-5.0.14-1.el8.x86_64 zabbix-web-mysql-5.0.14-1.el8.noarch zabbix-apache-conf-5.0.14-1.el8.noarch zabbix-agent-5.0.14-1.el8.x86_64
Last metadata expiration check: 0:01:12 ago on Mon 02 Aug 2021 11:51:30 BST.
Error: 
 Problem: conflicting requests
  - nothing provides libevent-2.1.so.6()(64bit) needed by zabbix-server-mysql-5.0.14-1.el8.x86_64
  - nothing provides libnetsnmp.so.35()(64bit) needed by zabbix-server-mysql-5.0.14-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages)
[root@lonmon01 admin]# 
[root@lonmon01 admin]# 
[root@lonmon01 admin]# dnf install zabbix-server-mysql-5.0.10-1.el8.x86_64 zabbix-web-mysql-5.0.10-1.el8.noarch zabbix-apache-conf-5.0.10-1.el8.noarch zabbix-agent-5.0.10-1.el8.x86_64
Last metadata expiration check: 0:07:00 ago on Mon 02 Aug 2021 11:51:30 BST.
Error: 
 Problem: conflicting requests
  - nothing provides libevent-2.1.so.6()(64bit) needed by zabbix-server-mysql-5.0.10-1.el8.x86_64
  - nothing provides libnetsnmp.so.35()(64bit) needed by zabbix-server-mysql-5.0.10-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages)

 

Best regards,

Aidan.

Comment by Jurijs Klopovskis [ 2021 Aug 02 ]

What if you run ls -R /usr/share/doc/zabbix ?

Comment by Aidan Burnett [ 2021 Aug 02 ]
[root@lonmon01 admin]# ls -R /usr/share/doc/zabbix
/usr/share/doc/zabbix:
AUTHORS  ChangeLog  NEWS  README  zabbix-fedora-epel.README

 

Though I have found a solution to install 5.0! I will explain it here in case anyone has the same problem in future:

There are .sql files in the following directory:

root@lonmon01 admin]# ls -l /usr/share/zabbix-mysql/
total 13064
-rw-r--r--. 1 root root 11231380 Apr 21 23:28 data.sql
-rw-r--r--. 1 root root      282 Mar 29 10:02 double.sql
-rw-r--r--. 1 root root  1978341 Mar 29 09:33 images.sql
-rw-r--r--. 1 root root   156239 Mar 29 10:02 schema.sql

Which the following documentation shows how to install, and provide the initial database instead of /usr/share/doc/zabbix-server-mysql*/create.sql.gz

After that, this documentation works except zabbix-server should be substituted for zabbix-server-mysql in systemctl and the following SELinux configuration is required to allow the HTTP daemon to connect to Zabbix, and for Zabbix to connect to TCP ports itself:

setsebool -P httpd_can_connect_zabbix 1

setsebool -P zabbix_can_network 1
Generated at Fri Jun 13 07:06:16 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.