Database Error after migration from CentOS to Ubuntu
Posted: Wed Oct 14, 2020 6:43 am
Hello,
I am trying to migrate an installation of nagios XI from CentOS 6.9 to a freshly set up Ubuntu 20.04 Server.
The version of both installations 5.7.3.
Both are VMs running in Hyper-V on the same server.
I tried the migration by doing the following steps:
1. I upgraded the current prod installation on the CentOS Server to 5.7.3 last Thursday
2. the configuration from the CentOS machine gets backed up by FTP every friday - the backup from last friday is the basis for my migration
3. I installed Nagios XI on the Ubunut Server acc. quick-installation in https://assets.nagios.com/downloads/nag ... -Linux.pdf
4. I copied the backup .tar from to the ubuntu server and tried to restore it acc. https://assets.nagios.com/downloads/nag ... ios-XI.pdf
5. I also executed the repair script mentioned in "After The Restore" as operating system is different
The problem is now, that if I try to access the nagios XI at the Ubuntu server, I get the following error:
Database Error
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
I already tried the repair_database script - but I still get the same error.
All the scripts above run through successfully.
Thank you very much in advance,
Andreas
I am trying to migrate an installation of nagios XI from CentOS 6.9 to a freshly set up Ubuntu 20.04 Server.
The version of both installations 5.7.3.
Both are VMs running in Hyper-V on the same server.
I tried the migration by doing the following steps:
1. I upgraded the current prod installation on the CentOS Server to 5.7.3 last Thursday
2. the configuration from the CentOS machine gets backed up by FTP every friday - the backup from last friday is the basis for my migration
3. I installed Nagios XI on the Ubunut Server acc. quick-installation in https://assets.nagios.com/downloads/nag ... -Linux.pdf
4. I copied the backup .tar from to the ubuntu server and tried to restore it acc. https://assets.nagios.com/downloads/nag ... ios-XI.pdf
5. I also executed the repair script mentioned in "After The Restore" as operating system is different
The problem is now, that if I try to access the nagios XI at the Ubuntu server, I get the following error:
Database Error
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
I already tried the repair_database script - but I still get the same error.
All the scripts above run through successfully.
Thank you very much in advance,
Andreas