Page 1 of 1

Unable to upgrade to most current version of Nagios.

Posted: Tue Nov 27, 2012 12:41 am
by smthomas23
Hello ALL new to the forum...

I am running Ubuntu 12.04 and running v 3.2.3 and am trying to upgrade to v 3.4.1

Here is what I have done thus far:

Downloaded the tar ball and extracted it to my Desktop.

cd /home/username/desktop - I can see the file there... I have also followed the upgrade guide from the site.

But whenever I attempt to complete the upgrade here is the error I am getting:

Error reads: Cannot open: No such file or directory

Error is NOT recoverable: exiting now

Child returned status 2


I am @ a loss as the file has been downloaded locally to my Ubuntu host but I am unable to upgrade.

Please help! Thx much!

Re: Unable to upgrade to most current version of Nagios.

Posted: Tue Nov 27, 2012 2:39 pm
by agriffin
smthomas23 wrote:But whenever I attempt to complete the upgrade here is the error I am getting:

Error reads: Cannot open: No such file or directory

Error is NOT recoverable: exiting now

Child returned status 2
What command did you run to get this error?

Re: Unable to upgrade to most current version of Nagios.

Posted: Tue Nov 27, 2012 5:00 pm
by smthomas23
I have tried this two ways... I have tried to install the update from the extracted file on my desktop.



2nd attempt...

root@sthomas-VirtualBox:~# tar xzf nagios-3.4.1.tar.gz
tar (child): nagios-3.4.1.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now


I have even done the above command from the desktop (I did the change directorydesktop command)

Still nothing...

Re: Unable to upgrade to most current version of Nagios.

Posted: Tue Nov 27, 2012 5:32 pm
by agriffin
This seems like a permission issue. Can you post the output of the following command for me?

Code: Select all

$ ls -ld /home/username/desktop{,nagios-3.4.1.tar.gz}

Re: Unable to upgrade to most current version of Nagios.

Posted: Tue Nov 27, 2012 6:48 pm
by smthomas23
I am running these commands as root. (sudo -i)

Here is the output:

The file is on the Desktop.

root@sthomas-VirtualBox:/home/sthomas/Desktop# ls
nagios nagios-3.4.1(1).tar.gz

Below is the suggested command and the results.

root@sthomas-VirtualBox:/home/sthomas/Desktop# ls -ld /home/username/desktop{,nagios-3.4.1.tar.gz}
ls: cannot access /home/username/desktop: No such file or directory
ls: cannot access /home/username/desktopnagios-3.4.1.tar.gz: No such file or directory

Re: Unable to upgrade to most current version of Nagios.

Posted: Wed Nov 28, 2012 1:18 pm
by slansing
Do you have access to a SSH terminal? I suggest upgrading this way as it is the easiest and cleanest, it is also prescribed in our upgrade guide:

http://nagios.sourceforge.net/docs/3_0/upgrading.html

Re: Unable to upgrade to most current version of Nagios.

Posted: Tue Dec 04, 2012 3:32 pm
by smthomas23
I managed to cd to the desktop and extracted the file there and was able to uprade to v3.4.1

Re: Unable to upgrade to most current version of Nagios.

Posted: Tue Dec 04, 2012 4:49 pm
by slansing
Sounds good, thanks for letting us know that was the solution.