Page 1 of 1

upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Posted: Thu Jun 19, 2025 7:56 am
by CBoekhuis
Hi,

just ran the upgrdae from 2024R1.3.3 to 2024R1.3.4 on our test cluster. During the upgrade I get a php fatal error in /var/www/html/nagioslogserver/application/controllers/Install.php. Odly the cluster still seems to work and shows the new version number.
However, I'm not confident to do the upgrade on our production server without an explanation.

RHEL9
php 8.0.30-3.el9_6

upgrade.log shows no errors, but the following is from the commandline:

Code: Select all

> ./upgrade 
Upgrading on RedHatEnterpriseServer 9.6
Nagios Log Server Upgrade Log
==========================
DATE: Thu Jun 19 02:31:56 PM CEST 2025

DISTRO INFO:
RedHatEnterpriseServer
9.6
x86_64

Old Version: 3303
New Version: 3304

Updating Subscription Management repositories.
Last metadata expiration check: 1:13:47 ago on Thu 19 Jun 2025 01:18:11 PM CEST.
Package php-devel-8.0.30-3.el9_6.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Archive:  sourceguardian/loaders.linux-x86_64.zip
  inflating: /usr/lib64/php/modules/ixed.8.0.lin  
Sourceguardian extension found for PHP version 8.0
Sourceguardian extension already in php.ini
PHP Warning:  Undefined array key "HTTP_HOST" in /var/www/html/nagioslogserver/application/config/config.local.php on line 12
Setting Elasticsearch to allow shard reallocation
Synchronizing state of elasticsearch.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable elasticsearch
Upgrading Kibana...
Kibana upgraded OK
PHP Warning:  Undefined array key "HTTP_HOST" in /var/www/html/nagioslogserver/application/config/config.local.php on line 12
PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/nagioslogserver/application/controllers/Install.php:0
Stack trace:
#0 /var/www/html/nagioslogserver/system/core/CodeIgniter.php(532): Install->upgrade()
#1 /var/www/html/nagioslogserver/www/index.php(315): require_once('...')
#2 {main}
  thrown in /var/www/html/nagioslogserver/application/controllers/Install.php on line 0
Am I now in a corrupted state or is this ignorable?

Kind regards,
Hans Blom

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Posted: Tue Jun 24, 2025 2:23 pm
by jmichaelson
You should be good; that's the last step in the upgrade process and its upgrading any schema changes to the data. there haven't been any for quite a while.

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Posted: Wed Jun 25, 2025 4:43 am
by CBoekhuis
Thanks Jason :D

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Posted: Thu Jun 26, 2025 4:10 pm
by jmichaelson
No problem. Let us know if you do end up having problems.

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Posted: Fri Jul 11, 2025 3:46 am
by rhassing
I had the same error, but I'm not able to log in anymore :-(

Re: upgrade 2024R1.3.3 to 2024R1.3.4 throws php fatal error

Posted: Wed Jul 16, 2025 4:38 pm
by jmichaelson
Hi, Rob. Do you happen to have the log file from your upgrade?