XI upgrade fails after upgrading to php 7.4 on RHEL8 system
Posted: Sat Jun 12, 2021 1:38 pm
This is related to my recent question regarding how to upgrade php to 7.4, which is now locked:
https://support.nagios.com/forum/viewto ... 16&t=62768
After successfully upgrading to php 7.4, I attempted my first upgrade today. It failed due to what looks like problems with dependencies related to either the repos and/or the php version. Here is the log:
fatal: [shire]: FAILED! => changed=true
cmd: cd /tmp/nagiosxi; ./upgrade -n
delta: '0:00:14.953593'
end: '2021-06-12 11:07:59.790947'
msg: non-zero return code
rc: 1
start: '2021-06-12 11:07:44.837354'
stderr: |-
PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /tmp/nagiosxi/nagiosxi/basedir/html/includes/phpmailer/PHPMailerAutoload.php on line 45
PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utils.inc.php on line 262
PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /tmp/nagiosxi/nagiosxi/basedir/html/includes/components/ldap_ad_integration/adLDAP/src/classes/adLDAPUsers.php on line 520
PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utils.inc.php on line 262
Error:
Problem: package php-imap-7.2.11-1.el8.x86_64 requires php-common < 7.3, but none of the providers can be installed
- conflicting requests
- package php-common-7.2.11-1.module+el8+2561+1aca3413.x86_64 is filtered out by modular filtering
- package php-common-7.2.11-2.module+el8.1.0+3202+af5476b9.x86_64 is filtered out by modular filtering
- package php-common-7.2.11-4.module+el8.1.0+4555+f5cb8e18.x86_64 is filtered out by modular filtering
- package php-common-7.2.24-1.module+el8.2.0+4601+7c76a223.x86_64 is filtered out by modular filtering
stderr_lines: <omitted>
stdout: |-
Nagios XI Upgrade Log
==========================
DATE: Sat Jun 12 11:07:45 PDT 2021
DISTRO INFO:
RedHatEnterpriseServer
8.4
x86_64
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.7.4.lin
Sourceguardian extension found for PHP version 7.4
Sourceguardian extension already in php.ini
Checking required prereqs...
Please wait...
OLD VERSION: 5803
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStre 30 MB/s | 30 MB 00:00
Red Hat CodeReady Linux Builder for RHEL 8 x86_ 12 MB/s | 5.3 MB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS 55 MB/s | 33 MB 00:00
Red Hat Enterprise Linux 8 for x86_64 - Supplem 40 kB/s | 3.8 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:05 ago on Sat 12 Jun 2021 11:07:52 AM PDT.
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
More info:
[root@shire:~]# php -v
PHP 7.4.6 (cli) (built: May 12 2020 08:09:15) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.6, Copyright (c), by Zend Technologies
[root@shire:~]# rpm -qa |grep php
php-common-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-gd-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-fpm-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-odbc-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-xml-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-mysqlnd-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-opcache-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-pgsql-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-process-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-json-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-devel-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-pear-1.10.12-1.module+el8.3.0+6678+b09f589e.noarch
php-pdo-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-ldap-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-cli-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-mbstring-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-snmp-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
https://support.nagios.com/forum/viewto ... 16&t=62768
After successfully upgrading to php 7.4, I attempted my first upgrade today. It failed due to what looks like problems with dependencies related to either the repos and/or the php version. Here is the log:
fatal: [shire]: FAILED! => changed=true
cmd: cd /tmp/nagiosxi; ./upgrade -n
delta: '0:00:14.953593'
end: '2021-06-12 11:07:59.790947'
msg: non-zero return code
rc: 1
start: '2021-06-12 11:07:44.837354'
stderr: |-
PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /tmp/nagiosxi/nagiosxi/basedir/html/includes/phpmailer/PHPMailerAutoload.php on line 45
PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utils.inc.php on line 262
PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /tmp/nagiosxi/nagiosxi/basedir/html/includes/components/ldap_ad_integration/adLDAP/src/classes/adLDAPUsers.php on line 520
PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utils.inc.php on line 262
Error:
Problem: package php-imap-7.2.11-1.el8.x86_64 requires php-common < 7.3, but none of the providers can be installed
- conflicting requests
- package php-common-7.2.11-1.module+el8+2561+1aca3413.x86_64 is filtered out by modular filtering
- package php-common-7.2.11-2.module+el8.1.0+3202+af5476b9.x86_64 is filtered out by modular filtering
- package php-common-7.2.11-4.module+el8.1.0+4555+f5cb8e18.x86_64 is filtered out by modular filtering
- package php-common-7.2.24-1.module+el8.2.0+4601+7c76a223.x86_64 is filtered out by modular filtering
stderr_lines: <omitted>
stdout: |-
Nagios XI Upgrade Log
==========================
DATE: Sat Jun 12 11:07:45 PDT 2021
DISTRO INFO:
RedHatEnterpriseServer
8.4
x86_64
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.7.4.lin
Sourceguardian extension found for PHP version 7.4
Sourceguardian extension already in php.ini
Checking required prereqs...
Please wait...
OLD VERSION: 5803
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStre 30 MB/s | 30 MB 00:00
Red Hat CodeReady Linux Builder for RHEL 8 x86_ 12 MB/s | 5.3 MB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS 55 MB/s | 33 MB 00:00
Red Hat Enterprise Linux 8 for x86_64 - Supplem 40 kB/s | 3.8 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:05 ago on Sat 12 Jun 2021 11:07:52 AM PDT.
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
More info:
[root@shire:~]# php -v
PHP 7.4.6 (cli) (built: May 12 2020 08:09:15) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.6, Copyright (c), by Zend Technologies
[root@shire:~]# rpm -qa |grep php
php-common-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-gd-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-fpm-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-odbc-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-xml-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-mysqlnd-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-opcache-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-pgsql-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-process-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-json-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-devel-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-pear-1.10.12-1.module+el8.3.0+6678+b09f589e.noarch
php-pdo-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-ldap-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-cli-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-mbstring-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64
php-snmp-7.4.6-4.module+el8.3.0+7002+2eb69d76.x86_64