Update fails
Update fails
While trying to update from Nagios Home Page, I receive following error message:
****************************************************************************************************
The update did not complete successfully. Please try updating manually.
---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
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/ts13.af.local: file changed as we read it
tar: /usr/local/nagios/share/perfdata/oss.af.local: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_NHRSD_WIFI_17: file changed as we read it
tar: /usr/local/nagios/share/perfdata/N_Haven_SW01_128.05: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_AC_02: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_NHRSD_05: file changed as we read it
tar: /usr/local/nagios/share/perfdata/apt-lwcore-02.af.local: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_NHRSD_08: file changed as we read it
tar: /usr/local/nagios/share/perfdata/ts05.af.local: file changed as we read it
tar: /usr/local/nagios/share/perfdata/N-HAVEN-CORE-128.2: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_WestHaven_MDFSW01: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
tar: /usr/local/nagiosxi/tmp/phpmailer.log: file changed as we read it
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up cronjobs for Apache...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/autoupgrade_backup.1509542506.tar.gz
---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
No entry for terminal type "unknown";
using dumb terminal settings.
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: 5410
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
**************************
Please guide me how to fix it.
****************************************************************************************************
The update did not complete successfully. Please try updating manually.
---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
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/ts13.af.local: file changed as we read it
tar: /usr/local/nagios/share/perfdata/oss.af.local: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_NHRSD_WIFI_17: file changed as we read it
tar: /usr/local/nagios/share/perfdata/N_Haven_SW01_128.05: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_AC_02: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_NHRSD_05: file changed as we read it
tar: /usr/local/nagios/share/perfdata/apt-lwcore-02.af.local: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_NHRSD_08: file changed as we read it
tar: /usr/local/nagios/share/perfdata/ts05.af.local: file changed as we read it
tar: /usr/local/nagios/share/perfdata/N-HAVEN-CORE-128.2: file changed as we read it
tar: /usr/local/nagios/share/perfdata/APT_WestHaven_MDFSW01: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
tar: /usr/local/nagiosxi/tmp/phpmailer.log: file changed as we read it
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up cronjobs for Apache...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/autoupgrade_backup.1509542506.tar.gz
---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
No entry for terminal type "unknown";
using dumb terminal settings.
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: 5410
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
**************************
Please guide me how to fix it.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Update fails
Is this system behind a proxy server?
If so make sure you have the following modifications specifically to the yum.conf
https://support.nagios.com/kb/article.php?id=147
If so make sure you have the following modifications specifically to the yum.conf
https://support.nagios.com/kb/article.php?id=147
Re: Update fails
No, it is not behind any proxy server, system is on it's separate infrastructure VLAN and did do successful update of December 2017 and no changes have been made to network since then.
Re: Update fails
I tried manual upgrade and received following message:
[root@nagios tmp]# tar xzf xi-latest.tar.gz
[root@nagios tmp]# cd nagiosxi
[root@nagios nagiosxi]# ./upgrade
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 ]
Checking required prereqs...
Please wait...
OLD VERSION: 5410
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
[root@nagios nagiosxi]#
[root@nagios tmp]# tar xzf xi-latest.tar.gz
[root@nagios tmp]# cd nagiosxi
[root@nagios nagiosxi]# ./upgrade
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 ]
Checking required prereqs...
Please wait...
OLD VERSION: 5410
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
[root@nagios nagiosxi]#
Re: Update fails
Are you connected to the network?
Please, run the following commands and show the output:
If you are having connectivity issues, try fixing them, then run:
After this, try upgrading Nagios XI from the command line by running:
Let us know if this helped.
Please, run the following commands and show the output:
Code: Select all
ip addr
ping google.com -c 3
ping 8.8.8.8 -c 3
ping mirrorlist.centos.org -c 3Code: Select all
yum clean all
yum update -yCode: Select all
cd /tmp/nagiosxi
./upgradeBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Update fails
Hi,
following are the test results requested:
****************************************************************************
Last login: Mon Mar 12 07:28:58 2018 from pc161101.af.local
[root@nagios ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:50:56:84:17:56 brd ff:ff:ff:ff:ff:ff
inet 10.100.0.50/16 brd 10.100.255.255 scope global eth0
inet6 fe80::250:56ff:fe84:1756/64 scope link
valid_lft forever preferred_lft forever
[root@nagios ~]#
[root@nagios ~]# ping google.com -c 3
PING google.com (172.217.11.14) 56(84) bytes of data.
64 bytes from lga25s60-in-f14.1e100.net (172.217.11.14): icmp_seq=1 ttl=55 time=11.3 ms
64 bytes from lga25s60-in-f14.1e100.net (172.217.11.14): icmp_seq=2 ttl=55 time=11.5 ms
64 bytes from lga25s60-in-f14.1e100.net (172.217.11.14): icmp_seq=3 ttl=55 time=11.5 ms
--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2013ms
rtt min/avg/max/mdev = 11.395/11.482/11.545/0.139 ms
[root@nagios ~]#
[root@nagios ~]# ping 8.8.8.8 -c 3
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=11.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=11.5 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=58 time=11.4 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2012ms
rtt min/avg/max/mdev = 11.413/11.462/11.503/0.129 ms
[root@nagios ~]#
[root@nagios ~]# ping mirrorlist.centos.org -c 3
PING mirrorlist.centos.org (212.69.166.138) 56(84) bytes of data.
64 bytes from babylon.castlegem.co.uk (212.69.166.138): icmp_seq=1 ttl=51 time=116 ms
64 bytes from babylon.castlegem.co.uk (212.69.166.138): icmp_seq=2 ttl=51 time=116 ms
64 bytes from babylon.castlegem.co.uk (212.69.166.138): icmp_seq=3 ttl=51 time=116 ms
--- mirrorlist.centos.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2118ms
rtt min/avg/max/mdev = 116.378/116.400/116.415/0.394 ms
You have new mail in /var/spool/mail/root
[root@nagios ~]#
[root@nagios ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base cr epel extras nagios-base nagiosxi-deps updates
Cleaning up Everything
[root@nagios ~]# yum update -y
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
Error: Cannot find a valid baseurl for repo: base
[root@nagios ~]#
[root@nagios ~]# cd /tmp/nagiosxi
[root@nagios nagiosxi]# ./upgrade
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 ]
Checking required prereqs...
Please wait...
OLD VERSION: 5410
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
[root@nagios nagiosxi]#
**********************************************************
following are the test results requested:
****************************************************************************
Last login: Mon Mar 12 07:28:58 2018 from pc161101.af.local
[root@nagios ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:50:56:84:17:56 brd ff:ff:ff:ff:ff:ff
inet 10.100.0.50/16 brd 10.100.255.255 scope global eth0
inet6 fe80::250:56ff:fe84:1756/64 scope link
valid_lft forever preferred_lft forever
[root@nagios ~]#
[root@nagios ~]# ping google.com -c 3
PING google.com (172.217.11.14) 56(84) bytes of data.
64 bytes from lga25s60-in-f14.1e100.net (172.217.11.14): icmp_seq=1 ttl=55 time=11.3 ms
64 bytes from lga25s60-in-f14.1e100.net (172.217.11.14): icmp_seq=2 ttl=55 time=11.5 ms
64 bytes from lga25s60-in-f14.1e100.net (172.217.11.14): icmp_seq=3 ttl=55 time=11.5 ms
--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2013ms
rtt min/avg/max/mdev = 11.395/11.482/11.545/0.139 ms
[root@nagios ~]#
[root@nagios ~]# ping 8.8.8.8 -c 3
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=11.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=11.5 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=58 time=11.4 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2012ms
rtt min/avg/max/mdev = 11.413/11.462/11.503/0.129 ms
[root@nagios ~]#
[root@nagios ~]# ping mirrorlist.centos.org -c 3
PING mirrorlist.centos.org (212.69.166.138) 56(84) bytes of data.
64 bytes from babylon.castlegem.co.uk (212.69.166.138): icmp_seq=1 ttl=51 time=116 ms
64 bytes from babylon.castlegem.co.uk (212.69.166.138): icmp_seq=2 ttl=51 time=116 ms
64 bytes from babylon.castlegem.co.uk (212.69.166.138): icmp_seq=3 ttl=51 time=116 ms
--- mirrorlist.centos.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2118ms
rtt min/avg/max/mdev = 116.378/116.400/116.415/0.394 ms
You have new mail in /var/spool/mail/root
[root@nagios ~]#
[root@nagios ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base cr epel extras nagios-base nagiosxi-deps updates
Cleaning up Everything
[root@nagios ~]# yum update -y
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
Error: Cannot find a valid baseurl for repo: base
[root@nagios ~]#
[root@nagios ~]# cd /tmp/nagiosxi
[root@nagios nagiosxi]# ./upgrade
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 ]
Checking required prereqs...
Please wait...
OLD VERSION: 5410
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
[root@nagios nagiosxi]#
**********************************************************
Re: Update fails
Are you using any local repos?
Can you run the following commands, and show the output in code wraps?
Note: running the above commands will give us some information about the distro/architecture of your system, and repos that you are using.
Can you run the following commands, and show the output in code wraps?
Code: Select all
uname -a
cat /etc/*release
ls -la /etc/yum.repos.d
yum repolist -v
cat /etc/yum.repos.d/CentOS-Base.repo
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Update fails
Here is results you requested:
login as: root
[email protected]'s password:
Last login: Wed Mar 14 04:46:06 2018 from pc161101.af.local
[root@nagios ~]# uname -a
Linux nagios.af.local 2.6.32-642.11.1.el6.x86_64 #1 SMP Fri Nov 18 19:25:05 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@nagios ~]# cat /etc/*release
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)
[root@nagios ~]# ls -la /etc/yum.repos.d
total 48
drwxr-xr-x. 2 root root 4096 Dec 14 2016 .
drwxr-xr-x. 87 root root 4096 Nov 1 19:14 ..
-rw-r--r-- 1 root root 1991 May 18 2016 CentOS-Base.repo
-rw-r--r-- 1 root root 509 Sep 25 2011 CentOS-CR.repo
-rw-r--r-- 1 root root 647 May 18 2016 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 289 May 18 2016 CentOS-fasttrack.repo
-rw-r--r-- 1 root root 630 May 18 2016 CentOS-Media.repo
-rw-r--r-- 1 root root 6259 May 18 2016 CentOS-Vault.repo
-rw-r--r-- 1 root root 957 Nov 4 2012 epel.repo
-rw-r--r-- 1 root root 1056 Nov 4 2012 epel-testing.repo
-rw-r--r-- 1 root root 301 Jan 19 2015 nagios-6.repo
[root@nagios ~]# yum repolist -v
Loading "fastestmirror" plugin
Config time: 0.020
Yum Version: 3.2.29
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
Error: Cannot find a valid baseurl for repo: base
[root@nagios ~]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[root@nagios ~]#
login as: root
[email protected]'s password:
Last login: Wed Mar 14 04:46:06 2018 from pc161101.af.local
[root@nagios ~]# uname -a
Linux nagios.af.local 2.6.32-642.11.1.el6.x86_64 #1 SMP Fri Nov 18 19:25:05 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@nagios ~]# cat /etc/*release
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)
[root@nagios ~]# ls -la /etc/yum.repos.d
total 48
drwxr-xr-x. 2 root root 4096 Dec 14 2016 .
drwxr-xr-x. 87 root root 4096 Nov 1 19:14 ..
-rw-r--r-- 1 root root 1991 May 18 2016 CentOS-Base.repo
-rw-r--r-- 1 root root 509 Sep 25 2011 CentOS-CR.repo
-rw-r--r-- 1 root root 647 May 18 2016 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 289 May 18 2016 CentOS-fasttrack.repo
-rw-r--r-- 1 root root 630 May 18 2016 CentOS-Media.repo
-rw-r--r-- 1 root root 6259 May 18 2016 CentOS-Vault.repo
-rw-r--r-- 1 root root 957 Nov 4 2012 epel.repo
-rw-r--r-- 1 root root 1056 Nov 4 2012 epel-testing.repo
-rw-r--r-- 1 root root 301 Jan 19 2015 nagios-6.repo
[root@nagios ~]# yum repolist -v
Loading "fastestmirror" plugin
Config time: 0.020
Yum Version: 3.2.29
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
14: PYCURL ERROR 22 - "The requested URL returned error: 401 Unauthorized"
Error: Cannot find a valid baseurl for repo: base
[root@nagios ~]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[root@nagios ~]#
Re: Update fails
The 401 message seems unlikely to be coming from the destination site since it doesn't seem to prompt for credentials when trying to acccess it in a browser. Are you able to open"http://mirrorlist.centos.org/?release=6 ... nfra=stock in a browser on your network? What is the output of:
curl "http://mirrorlist.centos.org/?release=6 ... nfra=stock" -v
?
curl "http://mirrorlist.centos.org/?release=6 ... nfra=stock" -v
?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Update fails
Following is the output you requested:
*********************************************************
The results of "http://mirrorlist.centos.org/?release=6 ... nfra=stock" running in Browser.
http://centos.mirror.constant.com/6.9/os/x86_64/
http://mirror.sesp.northwestern.edu/cen ... os/x86_64/
http://mirror.nodesdirect.com/centos/6.9/os/x86_64/
http://mirror.vtti.vt.edu/centos/6.9/os/x86_64/
http://mirror.atlantic.net/centos/6.9/os/x86_64/
http://mirror.web-ster.com/centos/6.9/os/x86_64/
http://mirror.lug.udel.edu/pub/centos/6.9/os/x86_64/
http://mirror.metrocast.net/centos/6.9/os/x86_64/
http://centos.vwtonline.net/centos/6.9/os/x86_64/
http://mirror.sfo12.us.leaseweb.net/cen ... os/x86_64/
while runnging on Nagios Centos Server console:
curl "http://mirrorlist.centos.org/?release=6 ... nfra=stock" -v
[root@nagios ~]# curl "http://mirrorlist.centos.org/?release=6 ... nfra=stock" -v
* About to connect() to mirrorlist.centos.org port 80 (#0)
* Trying 216.176.179.218... connected
* Connected to mirrorlist.centos.org (216.176.179.218) port 80 (#0)
> GET /?release=6&arch=x86_64&repo=os&infra=stock HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: mirrorlist.centos.org
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: squid/4.0.14-BZR
< Date: Mon, 26 Mar 2018 12:58:39 GMT
< Content-Length: 0
< Location: http://APTiPrism.AF.Local:80/auth-bin/n ... 2s%3d&PM=1
< X-Cache: MISS from 10.100.0.2
< X-Cache-Lookup: MISS from 10.100.0.2:3128
< Connection: keep-alive
<
* Connection #0 to host mirrorlist.centos.org left intact
* Closing connection #0
[root@nagios ~]#
*****************************************************************
*********************************************************
The results of "http://mirrorlist.centos.org/?release=6 ... nfra=stock" running in Browser.
http://centos.mirror.constant.com/6.9/os/x86_64/
http://mirror.sesp.northwestern.edu/cen ... os/x86_64/
http://mirror.nodesdirect.com/centos/6.9/os/x86_64/
http://mirror.vtti.vt.edu/centos/6.9/os/x86_64/
http://mirror.atlantic.net/centos/6.9/os/x86_64/
http://mirror.web-ster.com/centos/6.9/os/x86_64/
http://mirror.lug.udel.edu/pub/centos/6.9/os/x86_64/
http://mirror.metrocast.net/centos/6.9/os/x86_64/
http://centos.vwtonline.net/centos/6.9/os/x86_64/
http://mirror.sfo12.us.leaseweb.net/cen ... os/x86_64/
while runnging on Nagios Centos Server console:
curl "http://mirrorlist.centos.org/?release=6 ... nfra=stock" -v
[root@nagios ~]# curl "http://mirrorlist.centos.org/?release=6 ... nfra=stock" -v
* About to connect() to mirrorlist.centos.org port 80 (#0)
* Trying 216.176.179.218... connected
* Connected to mirrorlist.centos.org (216.176.179.218) port 80 (#0)
> GET /?release=6&arch=x86_64&repo=os&infra=stock HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: mirrorlist.centos.org
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: squid/4.0.14-BZR
< Date: Mon, 26 Mar 2018 12:58:39 GMT
< Content-Length: 0
< Location: http://APTiPrism.AF.Local:80/auth-bin/n ... 2s%3d&PM=1
< X-Cache: MISS from 10.100.0.2
< X-Cache-Lookup: MISS from 10.100.0.2:3128
< Connection: keep-alive
<
* Connection #0 to host mirrorlist.centos.org left intact
* Closing connection #0
[root@nagios ~]#
*****************************************************************