Page 1 of 1

Migrate Server is Hung

Posted: Wed Aug 02, 2023 3:47 pm
by gregbeyer
Hello, I attempted to use the Admin/Migrate Server tool. After upon entering SSH credentials to our Nagios Core server the process began, but has been running for over two days. It seems to be hung, see image attached. The wheelie images on all four lines are spinning.
Migrate_Server.png
I have attempted cycling nagios, mariadb and ran /usr/local/nagiosxi/scripts/repair_databases.sh

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg. come back OK.

When first I installed XI, I had no problems, but now I notice I have localhost errors, not sure if this is related. How can I resolve this apparent hang. Surely it cannot take days to migrate an Core server to XI?

Re: Migrate Server is Hung

Posted: Tue Aug 15, 2023 11:09 am
by sgardil
Hey @gregbeyer, thanks for reaching out.

You are right, the migration process shouldn't hang for that long of a period. If you haven't reverted yet or would like to attempt the migration again and get stuck again, you can look at these log files to find potential issues:
Directory: /usr/local/nagiosxi/scripts/migrate/jobs/<random#IdOfJob>
Potentially useful files to review:
<random#idofjob>.yml
ansible.cfg
errors.txt
hosts
output.json

Hope this helps, I attached a document going into the migration process a bit more in-depth if you would like to take a read.

Related documents:
https://support.nagios.com/kb/article/a ... i-878.html