Upgrade Failing Primary DB Update

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
CarlWedu
Posts: 51
Joined: Fri Aug 21, 2015 8:17 am

Upgrade Failing Primary DB Update

Post by CarlWedu »

sorry for the multiple threads, but having another issue during the upgrade process:

./upgrade
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: problem making ssl connection
* base: mirror.cs.pitt.edu
* epel: mirror.cs.pitt.edu
* extras: repo1.ash.innoscale.net
* updates: mirror.cs.pitt.edu
updates | 3.4 kB 00:00
updates/primary_db | 743 kB 00:00
Error: database disk image is malformed

[root@nagiosna nagiosna]# yum clean dbcache
Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
6 sqlite files removed


./upgrade
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: problem making ssl connection
* base: mirror.cs.pitt.edu
* epel: mirror.cs.pitt.edu
* extras: repo1.ash.innoscale.net
* updates: mirror.cs.pitt.edu
base/primary_db | 4.7 MB 00:00
http://mirror.cs.pitt.edu/epel/6/x86_64 ... sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.

...

Error: failure: repodata/8eb7c99cc002cd29a3b17434790759dd400f1f3fc5984697b1baf0a86cf9704a-primary.sqlite.bz2 from epel: [Errno 256] No more mirrors to try.


thank you!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade Failing Primary DB Update

Post by tgriep »

Try running a

Code: Select all

 yum clean all
to clear out everything and try it again.
Some times you have to clean everything.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Upgrade Failing Primary DB Update

Post by bwallace »

If issue persists after tgriep's suggestion, can you let us know what version of CentOS you're running?
cat /etc/centos-release

And, is this by any chance an i386 system?
I ask as I came across this forum:
https://www.centos.org/forums/viewtopic.php?f=13&t=1587

- thanks -
Be sure to check out the Knowledgebase for helpful articles and solutions!
CarlWedu
Posts: 51
Joined: Fri Aug 21, 2015 8:17 am

Re: Upgrade Failing Primary DB Update

Post by CarlWedu »

# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors


[root@nagiosna nagiosna]# ./upgrade
Loaded plugins: fastestmirror
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

[root@nagiosna nagiosna]# cat /etc/centos-release
CentOS release 6.5 (Final)



server is i386
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Upgrade Failing Primary DB Update

Post by bwallace »

Thanks - I think were getting close. Can you post the output of these two cmds?

Code: Select all

cat /etc/yum.repos.d/epel.repo
yum repolist
Be sure to check out the Knowledgebase for helpful articles and solutions!
CarlWedu
Posts: 51
Joined: Fri Aug 21, 2015 8:17 am

Re: Upgrade Failing Primary DB Update

Post by CarlWedu »

np, always appreciate the help!


[root@nagiosna nagiosna]# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metal ... =$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/e ... arch/debug
mirrorlist=https://mirrors.fedoraproject.org/metal ... =$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metal ... =$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1


[root@nagiosna nagiosna]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade Failing Primary DB Update

Post by tgriep »

If could be other issues like a proxy server or that the system is being blocked by a firewall, do you know if that is true?

Also, take a look at this link for more ideas you can try and resolve the issue.
http://stackoverflow.com/questions/2673 ... y-its-path
Be sure to check out our Knowledgebase for helpful articles and solutions!
CarlWedu
Posts: 51
Joined: Fri Aug 21, 2015 8:17 am

Re: Upgrade Failing Primary DB Update

Post by CarlWedu »

this worked:


vi /etc/yum.repos.d/epel.repo

change urls from: mirrorlist=https://mirrors.fedora... to: mirrorlist=http://mirrors.fedora...



afterwards, i started the upgrade process and it seemed to complete, but the web interface is still the same version?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade Failing Primary DB Update

Post by tgriep »

Did you log out of the web interface and re-login to see if the version updated?

One thing to try is to restart the NagiosNA backend to see if it updates.
Login as root to the NA server and run the following to do that.

Code: Select all

service nagiosna restart
Let us know if this works.
Be sure to check out our Knowledgebase for helpful articles and solutions!
CarlWedu
Posts: 51
Joined: Fri Aug 21, 2015 8:17 am

Re: Upgrade Failing Primary DB Update

Post by CarlWedu »

web re-login hadnt worked and the service restart did not either
Locked