Page 1 of 1

Error: Cannot retrieve repository metadata (repomd.xml)

Posted: Mon Feb 03, 2020 11:54 am
by exidesupport
Hi All,

When upgrading NAGIOS via web GUI or terminal we are getting below error:
---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
tar: /usr/local/nagios/share/perfdata/WINFILESRV12.inside.exide.ad: file changed as we read it
tar: /usr/local/nagios/share/perfdata/SPCARTUJA1.inside.exide.ad: file changed as we read it
tar: /usr/local/nagios/share/perfdata/DEBUPRO01.inside.exide.ad/Ping.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/DEBUPRO01.inside.exide.ad: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up PostgresQL databases...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...

===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/autoupgrade_backup..tar.gz

---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
Downloading Latest Nagios XI Tarball...
No entry for terminal type "unknown";
using dumb terminal settings.
Nagios XI Upgrade Log
==========================
DATE: Mon Feb 3 10:23:34 EST 2020

DISTRO INFO:
CentOS
6.6
x86_64


No entry for terminal type "unknown";
using dumb terminal settings.
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
No entry for terminal type "unknown";
using dumb terminal settings.
Checking required prereqs...
Please wait...

OLD VERSION: 414
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel-debuginfo. Please verify its path and try again
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: Peer cert cannot be verified or peer cert invalid

---------------------------------------------------------------------------------------------------------------------------------------

Latest Available Version: 5.6.10
Installed Version: 2014R2.5
Last Update Check: 2020-02-02 21:48:01

Thanks in advance for your help!

Exidesupport

Re: Error: Cannot retrieve repository metadata (repomd.xml)

Posted: Mon Feb 03, 2020 2:08 pm
by benjaminsmith
Hi @exidesupport,

Thanks for posting the log. It not able to connect to the epel repo over SSL. Try changing the connection for the yum repository from https to http.

Code: Select all

cd /etc/yum.repos.d/
#make a backup of the file before changing
cp epel.repo epel.repo.backup
vi epel.repo
Edit the metalink= definition from https to http and let me know if you're able to upgrade. If not please, upload the log again with errors.

See:
https://my.esecuredata.com/index.php?/k ... itory-epel

Re: Error: Cannot retrieve repository metadata (repomd.xml)

Posted: Mon Feb 03, 2020 2:13 pm
by benjaminsmith
Hello,

I noticed you have a ticket open for this issue. If you're still having trouble, please post this to the ticket. Thanks.

Re: Error: Cannot retrieve repository metadata (repomd.xml)

Posted: Mon Feb 03, 2020 2:36 pm
by exidesupport
Hi benjaminsmith,

I have removed the s from the https metalink and also added the contents epel.repo on the ticket.

Still getting error. I have added the error log on the ticket.

Thanks
exidesupport

Re: Error: Cannot retrieve repository metadata (repomd.xml)

Posted: Mon Feb 03, 2020 3:13 pm
by benjaminsmith
Hello exidesupport,

Thank you. I'll close this post and we'll follow up in the ticket shortly.