Upgrade from 5.4.0 to 5.8.4 fails on a mysql.h test
Posted: Fri Jun 11, 2021 3:33 pm
Mysql isn't installed since at some point in the past it was renamed to mariadb, but I'd expect the upgrade to still succeed. I upgraded a system in another environment yesterday to 5.8.3 from 5.6 or .7 something w/o errors.
I thought maybe this was an offline install, which might be the case, but from what I was told in the past about how to tell if it's an offline install conflicts somewhat with what I see when testing. Can you have a look at the output below and point me in the right direction?
Thanks!
# ./upgrade
IMPORTANT: Before upgrading, verify you have both a valid system backup as well as a configuration backup
of Nagios XI before continuing! More information about backing up and restoring Nagios XI can be found here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
NOTICE: Your Nagios XI license includes a test environment instance that allows you to verify successful upgrade and configuration
changes before applying them to your production environment. As a best practice for ensuring the reliability of your monitoring systems,
we advise you to upgrade your test environment before upgrading any production instances. More information on licensing can be found here:
https://assets.nagios.com/handouts/nagi ... Policy.pdf
Are you sure you want to continue? [y/N] y
Proceeding with upgrade...
Nagios XI Upgrade Log
==========================
DATE: Fri Jun 11 19:48:33 UTC 2021
DISTRO INFO:
RedHatEnterpriseServer
7.8
x86_64
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Checking required prereqs...
Please wait...
OLD VERSION: 5400
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
: disabled-repos, subscription-manager
Package php-imap-5.4.16-9.el7.x86_64 already installed and latest version
Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
: disabled-repos, subscription-manager
Package git-1.8.3.1-23.el7_8.x86_64 already installed and latest version
Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
UPGRADE: NDO is being upgraded...
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for string.h... (cached) yes
checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... configure: error: Can't locate mysql headers
no
checking for mysql/mysql.h... no
# locate mysql.h
# find / -name mysql.h
find: ‘/proc/22009’: No such file or directory
find: ‘/proc/22384’: No such file or directory
find: ‘/proc/22385’: No such file or directory
find: ‘/proc/22392’: No such file or directory
find: ‘/proc/22393’: No such file or directory
# rpm -qa | grep nagiosxi
nagiosxi-nrpe-5-4.0.2.el7.x86_64
nagiosxi-nagiosql-5-4.0.2.el7.x86_64
nagiosxi-nagioscore-5-4.0.2.el7.x86_64
nagiosxi-nrds-5-4.0.2.el7.x86_64
nagiosxi-nagiosmobile-5-4.0.2.el7.x86_64
nagiosxi-nagiosplugins-5-4.0.2.el7.x86_64
nagiosxi-ndoutils-5-4.0.2.el7.x86_64
nagiosxi-mrtg-5-4.0.2.el7.x86_64
nagiosxi-wmic-5-4.0.2.el7.x86_64
nagiosxi-nagvis-5-4.0.2.el7.x86_64
nagiosxi-ajaxterm-5-4.0.2.el7.x86_64
nagiosxi-nsca-5-4.0.2.el7.x86_64
nagiosxi-wkhtmltox-5-4.0.2.el7.x86_64
nagiosxi-pnp-5-4.0.2.el7.x86_64
#
I thought maybe this was an offline install, which might be the case, but from what I was told in the past about how to tell if it's an offline install conflicts somewhat with what I see when testing. Can you have a look at the output below and point me in the right direction?
Thanks!
# ./upgrade
IMPORTANT: Before upgrading, verify you have both a valid system backup as well as a configuration backup
of Nagios XI before continuing! More information about backing up and restoring Nagios XI can be found here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
NOTICE: Your Nagios XI license includes a test environment instance that allows you to verify successful upgrade and configuration
changes before applying them to your production environment. As a best practice for ensuring the reliability of your monitoring systems,
we advise you to upgrade your test environment before upgrading any production instances. More information on licensing can be found here:
https://assets.nagios.com/handouts/nagi ... Policy.pdf
Are you sure you want to continue? [y/N] y
Proceeding with upgrade...
Nagios XI Upgrade Log
==========================
DATE: Fri Jun 11 19:48:33 UTC 2021
DISTRO INFO:
RedHatEnterpriseServer
7.8
x86_64
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Checking required prereqs...
Please wait...
OLD VERSION: 5400
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
: disabled-repos, subscription-manager
Package php-imap-5.4.16-9.el7.x86_64 already installed and latest version
Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
: disabled-repos, subscription-manager
Package git-1.8.3.1-23.el7_8.x86_64 already installed and latest version
Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
UPGRADE: NDO is being upgraded...
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for string.h... (cached) yes
checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... configure: error: Can't locate mysql headers
no
checking for mysql/mysql.h... no
# locate mysql.h
# find / -name mysql.h
find: ‘/proc/22009’: No such file or directory
find: ‘/proc/22384’: No such file or directory
find: ‘/proc/22385’: No such file or directory
find: ‘/proc/22392’: No such file or directory
find: ‘/proc/22393’: No such file or directory
# rpm -qa | grep nagiosxi
nagiosxi-nrpe-5-4.0.2.el7.x86_64
nagiosxi-nagiosql-5-4.0.2.el7.x86_64
nagiosxi-nagioscore-5-4.0.2.el7.x86_64
nagiosxi-nrds-5-4.0.2.el7.x86_64
nagiosxi-nagiosmobile-5-4.0.2.el7.x86_64
nagiosxi-nagiosplugins-5-4.0.2.el7.x86_64
nagiosxi-ndoutils-5-4.0.2.el7.x86_64
nagiosxi-mrtg-5-4.0.2.el7.x86_64
nagiosxi-wmic-5-4.0.2.el7.x86_64
nagiosxi-nagvis-5-4.0.2.el7.x86_64
nagiosxi-ajaxterm-5-4.0.2.el7.x86_64
nagiosxi-nsca-5-4.0.2.el7.x86_64
nagiosxi-wkhtmltox-5-4.0.2.el7.x86_64
nagiosxi-pnp-5-4.0.2.el7.x86_64
#