Page 1 of 1
cp: cannot create regular file `/usr/local/nagiosxi/var/':
Posted: Tue Jan 14, 2020 1:54 pm
by jquen7
I am trying to upgrade from 5.6.8 to the latest version. I am following the manual update instructions found here (
https://assets.nagios.com/downloads/nag ... ctions.pdf) however I am getting the following error after running the last step < ./upgrade >
cp: cannot create regular file `/usr/local/nagiosxi/var/': No such file or directory
Any help would be appreciated.
Thanks
Re: cp: cannot create regular file `/usr/local/nagiosxi/var/
Posted: Tue Jan 14, 2020 3:16 pm
by lmiltchev
Is this a "default" (vanilla) setup? Are you using custom paths, proxy, etc.?
Can you post the entire
/tmp/nagiosxi/upgrade.log file?
Also, run the following commands and show the output:
Code: Select all
ls -la -d /usr/local /usr/local/nagiosxi /usr/local/nagiosxi/var
grep full /usr/local/nagiosxi/var/xiversion
Re: cp: cannot create regular file `/usr/local/nagiosxi/var/
Posted: Wed Jan 15, 2020 12:42 pm
by jquen7
Disregard.
We were connecting to the wrong nagios server. We have an old nagios server and were running the upgrade commands on that server and it obviously wasn't working. When I ran the upgrade on the proper server there were no issues.
Thanks
Re: cp: cannot create regular file `/usr/local/nagiosxi/var/
Posted: Wed Jan 15, 2020 12:46 pm
by lmiltchev
I am glad your issue has been resolved! I will be locking this topic now. If you have any further questions/issues, please start a new thread. Thank you!