Unable to upgrade to most current version of Nagios.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
smthomas23
Posts: 6
Joined: Tue Nov 27, 2012 12:27 am

Unable to upgrade to most current version of Nagios.

Post 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!
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

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

Post 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?
smthomas23
Posts: 6
Joined: Tue Nov 27, 2012 12:27 am

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

Post 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...
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

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

Post 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}
smthomas23
Posts: 6
Joined: Tue Nov 27, 2012 12:27 am

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

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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
smthomas23
Posts: 6
Joined: Tue Nov 27, 2012 12:27 am

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

Post by smthomas23 »

I managed to cd to the desktop and extracted the file there and was able to uprade to v3.4.1
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post by slansing »

Sounds good, thanks for letting us know that was the solution.
Locked