Upgrading php to 8.1
Posted: Tue Jan 10, 2023 7:49 pm
First, is there any kind of documentation on how to upgrade php (ex 7.4 to 8.1) and still have a functioning XI system?
I'm running XI 5.9.2 on RHEL 8
Secondly, I tried it myself without really knowing what I'm doing, and everything seems almost normal, except the Database Maintenance status is Red. I see the following messages in the dbmaint.log:
SQL: DELETE FROM xi_cmp_scheduledreports_log WHERE report_run < FROM_UNIXTIME(1641860735)
PHP Fatal error: Uncaught mysqli_sql_exception: Table 'nagiosxi.xi_cmp_scheduledreports_log' doesn't exist in /app/nagios/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php:788
Stack trace:
#0 /app/nagios/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php(788): mysqli_query()
#1 /app/nagios/nagiosxi/html/db/adodb/adodb.inc.php(1268): ADODB_mysqli->_query()
#2 /app/nagios/nagiosxi/html/db/adodb/adodb.inc.php(1246): ADOConnection->_Execute()
#3 /app/nagios/nagiosxi/html/includes/db.inc.php(542): ADOConnection->Execute()
#4 /app/nagios/nagiosxi/cron/dbmaint.php(331): exec_sql_query()
#5 /app/nagios/nagiosxi/cron/dbmaint.php(197): clean_db_table()
#6 /app/nagios/nagiosxi/cron/dbmaint.php(27): do_dbmaint_jobs()
#7 {main}
thrown in /app/nagios/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php on line 788
I'm running XI 5.9.2 on RHEL 8
Secondly, I tried it myself without really knowing what I'm doing, and everything seems almost normal, except the Database Maintenance status is Red. I see the following messages in the dbmaint.log:
SQL: DELETE FROM xi_cmp_scheduledreports_log WHERE report_run < FROM_UNIXTIME(1641860735)
PHP Fatal error: Uncaught mysqli_sql_exception: Table 'nagiosxi.xi_cmp_scheduledreports_log' doesn't exist in /app/nagios/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php:788
Stack trace:
#0 /app/nagios/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php(788): mysqli_query()
#1 /app/nagios/nagiosxi/html/db/adodb/adodb.inc.php(1268): ADODB_mysqli->_query()
#2 /app/nagios/nagiosxi/html/db/adodb/adodb.inc.php(1246): ADOConnection->_Execute()
#3 /app/nagios/nagiosxi/html/includes/db.inc.php(542): ADOConnection->Execute()
#4 /app/nagios/nagiosxi/cron/dbmaint.php(331): exec_sql_query()
#5 /app/nagios/nagiosxi/cron/dbmaint.php(197): clean_db_table()
#6 /app/nagios/nagiosxi/cron/dbmaint.php(27): do_dbmaint_jobs()
#7 {main}
thrown in /app/nagios/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php on line 788