Page 1 of 2

Upgrade Failing Primary DB Update

Posted: Wed Jun 22, 2016 1:35 pm
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!

Re: Upgrade Failing Primary DB Update

Posted: Wed Jun 22, 2016 2:07 pm
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.

Re: Upgrade Failing Primary DB Update

Posted: Wed Jun 22, 2016 2:19 pm
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 -

Re: Upgrade Failing Primary DB Update

Posted: Wed Jun 22, 2016 2:45 pm
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

Re: Upgrade Failing Primary DB Update

Posted: Wed Jun 22, 2016 3:00 pm
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

Re: Upgrade Failing Primary DB Update

Posted: Wed Jun 22, 2016 3:44 pm
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

Re: Upgrade Failing Primary DB Update

Posted: Wed Jun 22, 2016 4:03 pm
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

Re: Upgrade Failing Primary DB Update

Posted: Thu Jun 23, 2016 8:15 am
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?

Re: Upgrade Failing Primary DB Update

Posted: Thu Jun 23, 2016 10:17 am
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.

Re: Upgrade Failing Primary DB Update

Posted: Thu Jun 23, 2016 1:33 pm
by CarlWedu
web re-login hadnt worked and the service restart did not either