RESTORING NOM SNAPSHOT - Failure
Posted: Wed Nov 07, 2018 8:50 am
We have just upgraded to NagiosXI from 5.2.3 to 5.5.3, and when we run an apply config, and it fails we get the error message and it says that is is rolling back to the last good checkpoint, but it does not.
I tailed the /usr/local/nagiosxi/var/cmdsubsys.log file and see these errors:
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1541597570.tar.gz
tar: usr/local/nagios/etc/services: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/services: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/hosts_backup: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/hosts_backup: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/static: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/static: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/services_backup: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/services_backup: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/import: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/import: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/nggf/services: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/nggf/services: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/nggf/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/nggf/hosts: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/nggf: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/nggf: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/externalView: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/externalView: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
I have run the /usr/local/nagiosxi/scripts/reset_config_perms.sh script, but that has not fixed the issue. What should our next step be?
I tailed the /usr/local/nagiosxi/var/cmdsubsys.log file and see these errors:
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1541597570.tar.gz
tar: usr/local/nagios/etc/services: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/services: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/hosts_backup: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/hosts_backup: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/static: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/static: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/services_backup: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/services_backup: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/import: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/import: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/nggf/services: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/nggf/services: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/nggf/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/nggf/hosts: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/nggf: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/nggf: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/externalView: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/externalView: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
I have run the /usr/local/nagiosxi/scripts/reset_config_perms.sh script, but that has not fixed the issue. What should our next step be?