cp: cannot create regular file `/usr/local/nagiosxi/var/':

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jquen7
Posts: 2
Joined: Tue Jan 10, 2017 4:06 pm

cp: cannot create regular file `/usr/local/nagiosxi/var/':

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: cp: cannot create regular file `/usr/local/nagiosxi/var/

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
jquen7
Posts: 2
Joined: Tue Jan 10, 2017 4:06 pm

Re: cp: cannot create regular file `/usr/local/nagiosxi/var/

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: cp: cannot create regular file `/usr/local/nagiosxi/var/

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked