I Upgraded an 5.3.0 centos image to version 5.4.6 and the script ended with the following error:
sudo: unable to open /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
RESETTING CONFIG PERMS FAILED!\n
It appears that the upgrade was successful in the interface, how do I verify the installation?
Upgrade Error to 5.4.6
Re: Upgrade Error to 5.4.6
Did you run the upgrade script as the root user? If not, try that to be sure. Otherwise if you did run it as root, it would seem your system has undergone some sort of security tune-up which messed with root's ability to run certain commands. That will need to be addressed by your security/admin team as it is out of scope of what we can support.
Former Nagios employee
Re: Upgrade Error to 5.4.6
run as root and that particular machine is just using the ova which I haven't changed any configuration on outside of adding a ram disk per the documented process.
The tail of the upgrade.log file lists as follows:
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=n@gweb' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: https://localhost/nagiosxi/includes/components/ccm/
Array
(
[0] => xi_timeperiod_24x7.cfg
)
IMPORTING /usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg' -O nagiosql.import.monitoring
RESETTING CONFIG PERMS FAILED!\n
anyways you can close, it seems to be running at the new release, I will wait for the next update and hopefully that runs better.
The tail of the upgrade.log file lists as follows:
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=n@gweb' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: https://localhost/nagiosxi/includes/components/ccm/
Array
(
[0] => xi_timeperiod_24x7.cfg
)
IMPORTING /usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg' -O nagiosql.import.monitoring
RESETTING CONFIG PERMS FAILED!\n
anyways you can close, it seems to be running at the new release, I will wait for the next update and hopefully that runs better.
Re: Upgrade Error to 5.4.6
I will be closing this thread now. However, I would recommend that you double check a few things on your Nagios XI system:anyways you can close, it seems to be running at the new release, I will wait for the next update and hopefully that runs better.
- Is SELinux enabled
- Have you modified any of the permissions
- Have you modified the sudoers
- Haven you changed the "default" umask settings
If you run into similar issues in the future, please let us know ASAP, and post the entire "upgrade.log". Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!