Http error 500 after restore from Centos 7 to Centos Stream 9
Posted: Thu Aug 22, 2024 5:51 am
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?
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?