RESTORE: ndo2db is not running but subsystem locked
Posted: Tue May 28, 2019 7:56 am
Hi,
It´s wanted to execute the procedure of a Restore on a different server and with another S.O and give error of: ndo2db is not running. (subsystem locked)
The backup of NagiosXI 5.4.13 was successfully performed on a Centos 6.9 server
Restore has been performed on a Redhat 7.6 server previously installed on NagiosXi 5.4.13
a) /usr/local/nagiosxi/scripts/restore_xi.sh b) wget https://assets.nagios.com/downloads/nag ... _repair.sh (log attached in restore_repair.sh.txt)
c) ./restore_repair.sh (log attached) Now I show the output of some commands:
root@nagiosxi var]# rm /usr/local/nagios/var/ndo2db.lock
rm: ¿ delete the empty regular file «/usr/local/nagios/var/ndo2db.lock»? (s/n) y
[root@nagiosxi var]# rm /usr/local/nagios/var/ndo2db.lock
rm: it can not be deleted «/usr/local/nagios/var/ndo2db.lock»: The file or directory doesn´t exist
[root@nagiosxi var]# service ndo2db restart
Restarting ndo2db (via systemctl): [ OK ]
[root@nagiosxi var]# service ndo2db status
ndo2db is not running but subsystem locked
[root@nagiosxi subsys]# netstat -apn |grep 5668
tcp6 0 0 ::1:56686 ::1:5432 TIME_WAIT -
tcp6 0 0 ::1:56684 ::1:5432 TIME_WAIT -
tcp6 0 0 ::1:56682 ::1:5432 TIME_WAIT -
tcp6 0 0 ::1:56688 ::1:5432 TIME_WAIT -
tcp6 0 0 ::1:56680 ::1:5432 TIME_WAIT -
[root@nagiosxi subsys]# /etc/init.d/ndo2db status
ndo2db is not running but subsystem locked
[root@nagiosxi subsys]# ps -aef | grep ndo2db
root 23741 16133 0 14:30 pts/0 00:00:00 grep --color=auto ndo2db
[root@nagiosxi subsys]# service ndo2db status
ndo2db is not running but subsystem locked
[root@nagiosxi subsys]# service nagios status
nagios (pid 18732) is running...
Could it be that the Restore procedure has not been performed correctly? Thanks and regards
It´s wanted to execute the procedure of a Restore on a different server and with another S.O and give error of: ndo2db is not running. (subsystem locked)
The backup of NagiosXI 5.4.13 was successfully performed on a Centos 6.9 server
Restore has been performed on a Redhat 7.6 server previously installed on NagiosXi 5.4.13
a) /usr/local/nagiosxi/scripts/restore_xi.sh b) wget https://assets.nagios.com/downloads/nag ... _repair.sh (log attached in restore_repair.sh.txt)
c) ./restore_repair.sh (log attached) Now I show the output of some commands:
root@nagiosxi var]# rm /usr/local/nagios/var/ndo2db.lock
rm: ¿ delete the empty regular file «/usr/local/nagios/var/ndo2db.lock»? (s/n) y
[root@nagiosxi var]# rm /usr/local/nagios/var/ndo2db.lock
rm: it can not be deleted «/usr/local/nagios/var/ndo2db.lock»: The file or directory doesn´t exist
[root@nagiosxi var]# service ndo2db restart
Restarting ndo2db (via systemctl): [ OK ]
[root@nagiosxi var]# service ndo2db status
ndo2db is not running but subsystem locked
[root@nagiosxi subsys]# netstat -apn |grep 5668
tcp6 0 0 ::1:56686 ::1:5432 TIME_WAIT -
tcp6 0 0 ::1:56684 ::1:5432 TIME_WAIT -
tcp6 0 0 ::1:56682 ::1:5432 TIME_WAIT -
tcp6 0 0 ::1:56688 ::1:5432 TIME_WAIT -
tcp6 0 0 ::1:56680 ::1:5432 TIME_WAIT -
[root@nagiosxi subsys]# /etc/init.d/ndo2db status
ndo2db is not running but subsystem locked
[root@nagiosxi subsys]# ps -aef | grep ndo2db
root 23741 16133 0 14:30 pts/0 00:00:00 grep --color=auto ndo2db
[root@nagiosxi subsys]# service ndo2db status
ndo2db is not running but subsystem locked
[root@nagiosxi subsys]# service nagios status
nagios (pid 18732) is running...
Could it be that the Restore procedure has not been performed correctly? Thanks and regards