SQL Error [nagiosxi] : Table 'nagiosxi.xi_cmp_favorites' doesn't exist

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kmsharma
Posts: 33
Joined: Thu Jul 13, 2023 10:38 pm

SQL Error [nagiosxi] : Table 'nagiosxi.xi_cmp_favorites' doesn't exist

Post by kmsharma »

I was migrating my nagiosxi from ubuntu22.04 to debian10
after moving the backup form old to new server and running restoring script ,I was getting error ,then I ran restore_repair.sh then I was getting database error on browser
"A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh"
then i ran the above told script ,then it is giving me an error
"nagios database repair succeeded
nagiosxi database repair FAILED, please check output above!
"/usr/local/nagiosxi/scripts/repairmysql.sh: line 112: pushd: /var/lib/mysql/nagiosxi: No such file or directory
ERROR: Could not change to dir: /var/lib/mysql/nagiosxi""
then i created the given dir structure
and again ran the database repair script
now script output is restored successfully but on browser it is saying
"SQL Error [nagiosxi] : Table 'nagiosxi.xi_cmp_favorites' doesn't exist"
what to do now?
kmsharma
Posts: 33
Joined: Thu Jul 13, 2023 10:38 pm

Re: SQL Error [nagiosxi] : Table 'nagiosxi.xi_cmp_favorites' doesn't exist

Post by kmsharma »

kmsharma wrote: Fri Aug 18, 2023 10:43 pm I was migrating my nagiosxi from ubuntu22.04 to debian10
after moving the backup form old to new server and running restoring script ,I was getting error ,then I ran restore_repair.sh then I was getting database error on browser
"A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh"
then i ran the above told script ,then it is giving me an error
"nagios database repair succeeded
nagiosxi database repair FAILED, please check output above!
"/usr/local/nagiosxi/scripts/repairmysql.sh: line 112: pushd: /var/lib/mysql/nagiosxi: No such file or directory
ERROR: Could not change to dir: /var/lib/mysql/nagiosxi""
then i created the given dir structure
and again ran the database repair script
now script output is restored successfully but on browser it is saying
"SQL Error [nagiosxi] : Table 'nagiosxi.xi_cmp_favorites' doesn't exist"
what to do now?
PLEASE HELP ME IN FINDING SOLUTION FOT THIS
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: SQL Error [nagiosxi] : Table 'nagiosxi.xi_cmp_favorites' doesn't exist

Post by kg2857 »

There are a ew posts about missing tables when converting. You might try a search.
kmsharma
Posts: 33
Joined: Thu Jul 13, 2023 10:38 pm

Re: SQL Error [nagiosxi] : Table 'nagiosxi.xi_cmp_favorites' doesn't exist

Post by kmsharma »

kg2857 wrote: Sun Aug 20, 2023 1:39 am There are a ew posts about missing tables when converting. You might try a search.
I searched but havnt got the solution.
swolf

Re: SQL Error [nagiosxi] : Table 'nagiosxi.xi_cmp_favorites' doesn't exist

Post by swolf »

Hi @kmsharma,

It looks like this is the same problem as viewtopic.php?t=65867 - it doesn't help anyone if the details around your singular problem are spread out across 4-5 threads. I'm going to lock this thread; I recommend that you continue to update the thread that's already open.

-Sebastian Wolf
Locked