Http error 500 after restore from Centos 7 to Centos Stream 9

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
flobasso
Posts: 1
Joined: Wed Jul 30, 2014 8:44 am

Http error 500 after restore from Centos 7 to Centos Stream 9

Post by flobasso »

Hi team, after a restore XI 2025 1.1.5 from Centos 7 to Centos stream, 9 (https://answerhub.nagios.com/support/s/ ... 4-b36feda0) , without any kind of error, I get an error 500 after auth with "nagiosadmin" user.
here http log

[Thu Aug 22 12:30:39.605987 2024] [proxy_fcgi:error] [pid 4990:tid 5146] [client 192.168.xx.xx:55271] AH01071: Got error 'PHP message: PHP Notice: unserialize(): Error at offset 381 of 608 bytes in /usr/local/nagiosxi/html/includes/utils-reports.inc.php on line 967PHP message: PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /usr/local/nagiosxi/html/includes/utils-menu.inc.php:1134\nStack trace:\n#0 /usr/local/nagiosxi/html/includes/utils-menu.inc.php(555): init_reports_menu()\n#1 /usr/local/nagiosxi/html/includes/utilsl.inc.php(0): init_menus()\n#2 /usr/local/nagiosxi/html/index.php(15): check_prereqs()\n#3 {main}\n thrown in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 1134', referer: http://192.168.xx.xx/nagiosxi/login.php

I already tried, without success to
do a db repair
do a restore_repair.sh
update to 1.2

## EDIT
I can login as LDAP user (with Admin role) but not as nagiosadmin user (error 500)
with LDAP user I did the 1.2 upg

how can I fix it?
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: Http error 500 after restore from Centos 7 to Centos Stream 9

Post by lgute »

Hi @flobasso, thanks for reaching out.

This issue is probably outside of the scope of assistance we can provide in the forum. I would advise putting in a ticket with support https://answerhub.nagios.com/support/s/.

The forum is officially community-based support, and while Nagios staffers are active here, you can get dedicated help from your Nagios CSM, or open a ticket with support. Besides, support tickets have an official SLA and forum posts do not.
Please let us know if you have any other questions or concerns.

-Laura
cnorell
Developer
Posts: 141
Joined: Mon Nov 27, 2017 3:08 pm

Re: Http error 500 after restore from Centos 7 to Centos Stream 9

Post by cnorell »

flobasso,

I agree with @lgute, it is going to be very difficult to determine what is happening on this forum.

That said, One thing you can do to potentially get some more insight is to turn on debug level logging in Apache. To do this on a standard XI system on CentOS, modify the file: /etc/httpd/conf/httpd.conf and change the LogLevel directive to debug. This may give you more detailed error messages and stack traces to help troubleshoot.

Best Regards,

Cory Norell
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
otisjame
Posts: 12
Joined: Mon Sep 18, 2023 11:54 pm

Re: Http error 500 after restore from Centos 7 to Centos Stream 9

Post by otisjame »

The HTTP 500 error after migrating from CentOS 7 to CentOS Stream 9 and restoring Nagios XI seems related to PHP compatibility issues and potentially corrupted serialized data in the database or session files. Block Blast Puzzle
Post Reply