I have inherited centos 6.3 and 6.2 vms in an esxi environment. When I do
yum provides ntpd
on the 6.3 box I get a lot of errors like:
Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * base: mirror.unl.edu * extras: mirrors.cmich.edu * updates: mirror.steadfast.net http://mirror.unl.edu/centos/6.4/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" Trying other mirror. http://mirror.ash.fastserv.com/pub/linux/centos/6.4/os/x86_64/repodata/repom...: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror. http://mirrors.einstein.yu.edu/centos/6.4/updates/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.einstein.yu.edu/centos/6.4/updates/x86_64/repodata/repomd.xml: (28, 'connect() timed out!') Trying other mirror. http://mirrors.versaweb.com/centos/6.4/updates/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.versaweb.com/centos/6.4/updates/x86_64/repodata/repomd.xml: (28, 'connect() timed out!') Trying other mirror.
Why am I getting these errors? I installed 6.4 in virtualbox and the .repo files seem the same, except the 6.3 box didn’t have a fastback.repo file.
Also why is it looking at 6.4 repos above? When I see:
cat /etc/redhat-release CentOS release 6.3 (Final)
i.e., this box is 6.3. Shouldn’t it be looking for 6.3 repo info?
Thanks,
-wes
It should be looking at /6/ instead of a specific point release. We (CentOS) do not provide updates for individual point releases. You are several years behind in security and bug-fix updates. Once a specific minor version is expired, it is moved off the main mirrors and into the vault. The current iteration of the /6/ tree is 6.7, so everything below that is no longer available on the mirrors. Have you modified your repository files or are they stock?
I might suggest starting off with a 'yum clean all', then running your query again.
On 11/20/2015 11:21 AM, Wes James wrote:
I have inherited centos 6.3 and 6.2 vms in an esxi environment. When I do
yum provides ntpd
on the 6.3 box I get a lot of errors like:
Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile
- base: mirror.unl.edu
- extras: mirrors.cmich.edu
- updates: mirror.steadfast.net
http://mirror.unl.edu/centos/6.4/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" Trying other mirror. http://mirror.ash.fastserv.com/pub/linux/centos/6.4/os/x86_64/repodata/repom...: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror. http://mirrors.einstein.yu.edu/centos/6.4/updates/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.einstein.yu.edu/centos/6.4/updates/x86_64/repodata/repomd.xml: (28, 'connect() timed out!') Trying other mirror. http://mirrors.versaweb.com/centos/6.4/updates/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.versaweb.com/centos/6.4/updates/x86_64/repodata/repomd.xml: (28, 'connect() timed out!') Trying other mirror.
Why am I getting these errors? I installed 6.4 in virtualbox and the .repo files seem the same, except the 6.3 box didn’t have a fastback.repo file.
Also why is it looking at 6.4 repos above? When I see:
cat /etc/redhat-release CentOS release 6.3 (Final)
i.e., this box is 6.3. Shouldn’t it be looking for 6.3 repo info?
Thanks,
-wes _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Nov 20, 2015, at 10:41 AM, Jim Perrin jperrin@centos.org wrote:
It should be looking at /6/ instead of a specific point release. We (CentOS) do not provide updates for individual point releases. You are several years behind in security and bug-fix updates. Once a specific minor version is expired, it is moved off the main mirrors and into the vault. The current iteration of the /6/ tree is 6.7, so everything below that is no longer available on the mirrors. Have you modified your repository files or are they stock?
Not sure. I’m investigating now. Compared the /etc/yum.repos.d so far and that’s about it.
I might suggest starting off with a 'yum clean all', then running your query again.
OK Thanks. I try that.
On 11/20/2015 11:21 AM, Wes James wrote:
I have inherited centos 6.3 and 6.2 vms in an esxi environment. When I do
yum provides ntpd
on the 6.3 box I get a lot of errors like:
Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile
- base: mirror.unl.edu
- extras: mirrors.cmich.edu
- updates: mirror.steadfast.net
http://mirror.unl.edu/centos/6.4/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" Trying other mirror. http://mirror.ash.fastserv.com/pub/linux/centos/6.4/os/x86_64/repodata/repom...: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror. http://mirrors.einstein.yu.edu/centos/6.4/updates/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.einstein.yu.edu/centos/6.4/updates/x86_64/repodata/repomd.xml: (28, 'connect() timed out!') Trying other mirror. http://mirrors.versaweb.com/centos/6.4/updates/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.versaweb.com/centos/6.4/updates/x86_64/repodata/repomd.xml: (28, 'connect() timed out!') Trying other mirror.
Why am I getting these errors? I installed 6.4 in virtualbox and the .repo files seem the same, except the 6.3 box didn’t have a fastback.repo file.
Also why is it looking at 6.4 repos above? When I see:
cat /etc/redhat-release CentOS release 6.3 (Final)
i.e., this box is 6.3. Shouldn’t it be looking for 6.3 repo info?
Thanks,
-wes _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
-- Jim Perrin The CentOS Project | http://www.centos.org twitter: @BitIntegrity | GPG Key: FA09AD77 _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Nov 20, 2015, at 10:41 AM, Jim Perrin jperrin@centos.org wrote:
It should be looking at /6/ instead of a specific point release. We (CentOS) do not provide updates for individual point releases. You are several years behind in security and bug-fix updates. Once a specific minor version is expired, it is moved off the main mirrors and into the vault. The current iteration of the /6/ tree is 6.7, so everything below that is no longer available on the mirrors. Have you modified your repository files or are they stock?
I might suggest starting off with a 'yum clean all', then running your query again.
On 11/20/2015 11:21 AM, Wes James wrote:
I have inherited centos 6.3 and 6.2 vms in an esxi environment. When I do
yum provides ntpd
on the 6.3 box I get a lot of errors like:
Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile
- base: mirror.unl.edu
- extras: mirrors.cmich.edu
- updates: mirror.steadfast.net
http://mirror.unl.edu/centos/6.4/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 -
This is what happened:
yum clean all Loaded plugins: fastestmirror, presto Cleaning repos: base extras updates Cleaning up Everything Cleaning up list of fastest mirrors 8 delta-package files removed, by presto
yum provides ntpd Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os: (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
What next?
Actually, I think I have a firewall issue. I googled the error and someone suggest trying:
curl 'http://mirrorlist.centos.org/?release=6&arch=i386&repo=os' http://mirrorlist.centos.org/?release=6&arch=i386&repo=os'
So I tried that on my 6.4 virtualbox and it worked. I tried it on the esxi vm and it timed out.
Thanks,
-wes
On Nov 20, 2015, at 10:41 AM, Jim Perrin jperrin@centos.org wrote:
It should be looking at /6/ instead of a specific point release. We (CentOS) do not provide updates for individual point releases. You are several years behind in security and bug-fix updates. Once a specific minor version is expired, it is moved off the main mirrors and into the vault. The current iteration of the /6/ tree is 6.7, so everything below that is no longer available on the mirrors. Have you modified your repository files or are they stock?
I might suggest starting off with a 'yum clean all', then running your query again.
Odd. I did:
service iptables stop
just to check the curl command again and it timed out again????
iptables -L -n -v
shows no rules
service iptables start
iptables -L -n -v
shows rules again…
-wes
On Nov 20, 2015, at 10:41 AM, Jim Perrin jperrin@centos.org wrote:
It should be looking at /6/ instead of a specific point release. We (CentOS) do not provide updates for individual point releases. You are several years behind in security and bug-fix updates. Once a specific minor version is expired, it is moved off the main mirrors and into the vault. The current iteration of the /6/ tree is 6.7, so everything below that is no longer available on the mirrors. Have you modified your repository files or are they stock?
I might suggest starting off with a 'yum clean all', then running your query again.
On 11/20/2015 11:21 AM, Wes James wrote:
I have inherited centos 6.3 and 6.2 vms in an esxi environment. When I do
yum provides ntpd
on the 6.3 box I get a lot of errors like:
Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile
- base: mirror.unl.edu
- extras: mirrors.cmich.edu
- updates: mirror.steadfast.net
http://mirror.unl.edu/centos/6.4/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22
I fixed the problem for now by editing /etc/yum.repos.d/CentOS-Base.repy, commenting out:
mirrorlist=
then finding a local university that has /6/ repo data and uncommenting and using:
baseurl=
I’m not sure why this box was having issues reaching mirrorlist.centos.org or even tracerouting to it???? It kept getting a different trace than my 6.4 virtualbox.
Thanks,
-wes
On Nov 20, 2015, at 11:55 AM, Wes James comptekki@me.com wrote:
On Nov 20, 2015, at 10:41 AM, Jim Perrin jperrin@centos.org wrote:
It should be looking at /6/ instead of a specific point release. We (CentOS) do not provide updates for individual point releases. You are several years behind in security and bug-fix updates. Once a specific minor version is expired, it is moved off the main mirrors and into the vault. The current iteration of the /6/ tree is 6.7, so everything below that is no longer available on the mirrors. Have you modified your repository files or are they stock?
I might suggest starting off with a 'yum clean all', then running your query again.
On 11/20/2015 11:21 AM, Wes James wrote:
I have inherited centos 6.3 and 6.2 vms in an esxi environment. When I do
yum provides ntpd
on the 6.3 box I get a lot of errors like:
Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile
- base: mirror.unl.edu
- extras: mirrors.cmich.edu
- updates: mirror.steadfast.net
http://mirror.unl.edu/centos/6.4/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22
I fixed the problem for now by editing /etc/yum.repos.d/CentOS-Base.repy, commenting out:
mirrorlist=
then finding a local university that has /6/ repo data and uncommenting and using:
baseurl=
I’m not sure why this box was having issues reaching mirrorlist.centos.org http://mirrorlist.centos.org/ or even tracerouting to it???? It kept getting a different trace than my 6.4 virtualbox.
I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get:
----
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
——
I thought updating to 6.7 might fix something, but it didn’t help. Any ideas why it is doing this?
If I go to:
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock
in a browser, it shows a list of repos.
Thanks,
wes
On Dec 7, 2015, at 8:03 PM, Wes James comptekki@me.com wrote:
<snip>
I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get:
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
——
I thought updating to 6.7 might fix something, but it didn’t help. Any ideas why it is doing this?
If I go to:
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>
in a browser, it shows a list of repos.
I just noticed on a stock install of 6.7 (from 6.4 doing a test), doing yum update shows this:
Loaded plugins: fastestmirror, refresh-packagekit, security
But on the box I just updated it shows:
Loaded plugins: fastestmirror, presto
So maybe the presto plugin is causing the problem. Anyone else using presto plugin??
-wes
On Dec 7, 2015, at 8:23 PM, Wes James comptekki@me.com wrote:
On Dec 7, 2015, at 8:03 PM, Wes James comptekki@me.com wrote:
<snip>
I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get:
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
——
I thought updating to 6.7 might fix something, but it didn’t help. Any ideas why it is doing this?
If I go to:
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>
in a browser, it shows a list of repos.
I just noticed on a stock install of 6.7 (from 6.4 doing a test), doing yum update shows this:
Loaded plugins: fastestmirror, refresh-packagekit, security
But on the box I just updated it shows:
Loaded plugins: fastestmirror, presto
So maybe the presto plugin is causing the problem. Anyone else using presto plugin??
-wes
That wasn’t it. I disabled presto then both with (and got the following error):
yum update --disableplugin=presto,fast* Setting up Update Process Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: (28, 'connect() timed out!') Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
—
Not sure what to try next. Other than my previous fix of not using a mirror list, but a known local repo that works fine for updates.
-wes
On Dec 7, 2015, at 8:37 PM, Wes James comptekki@me.com wrote:
On Dec 7, 2015, at 8:23 PM, Wes James <comptekki@me.com mailto:comptekki@me.com> wrote:
On Dec 7, 2015, at 8:03 PM, Wes James comptekki@me.com wrote:
<snip>
I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get:
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:> (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
——
I thought updating to 6.7 might fix something, but it didn’t help. Any ideas why it is doing this?
If I go to:
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>>
in a browser, it shows a list of repos.
I just noticed on a stock install of 6.7 (from 6.4 doing a test), doing yum update shows this:
Loaded plugins: fastestmirror, refresh-packagekit, security
But on the box I just updated it shows:
Loaded plugins: fastestmirror, presto
So maybe the presto plugin is causing the problem. Anyone else using presto plugin??
-wes
That wasn’t it. I disabled presto then both with (and got the following error):
yum update --disableplugin=presto,fast* Setting up Update Process Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!') Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
—
Not sure what to try next. Other than my previous fix of not using a mirror list, but a known local repo that works fine for updates.
-wes
Poking around I found:
/etc/yum/pluginconf.d and now I see where presto comes from. I noticed in the fastmirror.conf there is a line
hostfile-timedhosts.txt
On my test box it has several lines of hosts with a number.
On the box I’m have yum update issues, it is blank. ??
-wes
Wes James wrote:
On Dec 7, 2015, at 8:37 PM, Wes James comptekki@me.com wrote:
On Dec 7, 2015, at 8:23 PM, Wes James <comptekki@me.com mailto:comptekki@me.com> wrote:
On Dec 7, 2015, at 8:03 PM, Wes James comptekki@me.com wrote:
<snip>
I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get:
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:> (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
——
I thought updating to 6.7 might fix something, but it didn’t help. Any ideas why it is doing this?
If I go to:
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>>
in a browser, it shows a list of repos.
I just noticed on a stock install of 6.7 (from 6.4 doing a test), doing yum update shows this:
Loaded plugins: fastestmirror, refresh-packagekit, security
But on the box I just updated it shows:
Loaded plugins: fastestmirror, presto
So maybe the presto plugin is causing the problem. Anyone else using presto plugin??
-wes
That wasn’t it. I disabled presto then both with (and got the following error):
yum update --disableplugin=presto,fast* Setting up Update Process Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!') Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
—
Not sure what to try next. Other than my previous fix of not using a mirror list, but a known local repo that works fine for updates.
-wes
Poking around I found:
/etc/yum/pluginconf.d and now I see where presto comes from. I noticed in the fastmirror.conf there is a line
hostfile-timedhosts.txt
On my test box it has several lines of hosts with a number.
On the box I’m have yum update issues, it is blank. ??
-wes
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Hi,
I wasn't sure if I should reply to you as you seem to be doing a pretty good job of helping your self here :-D.
But jokes aside, can you do a couple of checks?
Firstly, let's make sure this machine actually has a network connection I've actually seen people spend hours trying to fix issues like yours only to find they had no outside network connection..
$ ping 8.8.8.8
Do you get a ping response? If not, check network settings. If you do, move on..
$ ping google.com
Does the domain resolve correctly? If not, check DNS settings. If you do, move on..
Assuming both of those have worked, can you do the following:
$ mkdir temporary $ cd temporary $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr..."
(Don't miss those quotes on the url, they are needed to ensure the &'s do not confuse BASH/ZSH)
Now, what happened? Did it connect and download correctly? If so do the following:
$ cat index.html?release=6&arch=x86_64&repo=os&infra=stock
You should basically get the mirror list:
http://mirrors.coreix.net/centos/6.7/os/x86_64/ http://centos.serverspace.co.uk/centos/6.7/os/x86_64/ http://mirrors.melbourne.co.uk/sites/ftp.centos.org/centos/6.7/os/x86_64/ http://mirrors.vooservers.com/centos/6.7/os/x86_64/ http://mirror.mhd.uk.as44574.net/mirror.centos.org/6.7/os/x86_64/ http://www.mirrorservice.org/sites/mirror.centos.org/6.7/os/x86_64/ http://mirrors.clouvider.net/CentOS/6.7/os/x86_64/ http://mirrors.ukfast.co.uk/sites/ftp.centos.org/6.7/os/x86_64/ http://mirror.cov.ukservers.com/centos/6.7/os/x86_64/ http://mirror.as29550.net/mirror.centos.org/6.7/os/x86_64/
With all of the above checks did you get expecting results including domain resolution, ping response and the mirror list contents?
Kind Regards, Jake Shipton (JakeMS) Twitter: @CrazyLinuxNerd GPG Key: 0xE3C31D8F GPG Fingerprint: 7515 CC63 19BD 06F9 400A DE8A 1D0B A5CF E3C3 1D8F
On Dec 7, 2015, at 10:02 PM, Jake Shipton jakems@fedoraproject.org wrote:
Wes James wrote:
On Dec 7, 2015, at 8:37 PM, Wes James comptekki@me.com wrote:
On Dec 7, 2015, at 8:23 PM, Wes James <comptekki@me.com mailto:comptekki@me.com> wrote:
On Dec 7, 2015, at 8:03 PM, Wes James comptekki@me.com wrote:
<snip>
I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get:
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:> (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
——
I thought updating to 6.7 might fix something, but it didn’t help. Any ideas why it is doing this?
If I go to:
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>>
in a browser, it shows a list of repos.
I just noticed on a stock install of 6.7 (from 6.4 doing a test), doing yum update shows this:
Loaded plugins: fastestmirror, refresh-packagekit, security
But on the box I just updated it shows:
Loaded plugins: fastestmirror, presto
So maybe the presto plugin is causing the problem. Anyone else using presto plugin??
-wes
That wasn’t it. I disabled presto then both with (and got the following error):
yum update --disableplugin=presto,fast* Setting up Update Process Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!') Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
—
Not sure what to try next. Other than my previous fix of not using a mirror list, but a known local repo that works fine for updates.
-wes
Poking around I found:
/etc/yum/pluginconf.d and now I see where presto comes from. I noticed in the fastmirror.conf there is a line
hostfile-timedhosts.txt
On my test box it has several lines of hosts with a number.
On the box I’m have yum update issues, it is blank. ??
-wes
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Hi,
I wasn't sure if I should reply to you as you seem to be doing a pretty good job of helping your self here :-D.
But jokes aside, can you do a couple of checks?
Firstly, let's make sure this machine actually has a network connection I've actually seen people spend hours trying to fix issues like yours only to find they had no outside network connection..
$ ping 8.8.8.8
Do you get a ping response? If not, check network settings. If you do, move on..
$ ping google.com
Does the domain resolve correctly? If not, check DNS settings. If you do, move on..
Assuming both of those have worked, can you do the following:
$ mkdir temporary $ cd temporary $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr..."
(Don't miss those quotes on the url, they are needed to ensure the &'s do not confuse BASH/ZSH)
Now, what happened? Did it connect and download correctly? If so do the following:
$ cat index.html?release=6&arch=x86_64&repo=os&infra=stock
You should basically get the mirror list:
http://mirrors.coreix.net/centos/6.7/os/x86_64/ http://centos.serverspace.co.uk/centos/6.7/os/x86_64/ http://mirrors.melbourne.co.uk/sites/ftp.centos.org/centos/6.7/os/x86_64/ http://mirrors.vooservers.com/centos/6.7/os/x86_64/ http://mirror.mhd.uk.as44574.net/mirror.centos.org/6.7/os/x86_64/ http://www.mirrorservice.org/sites/mirror.centos.org/6.7/os/x86_64/ http://mirrors.clouvider.net/CentOS/6.7/os/x86_64/ http://mirrors.ukfast.co.uk/sites/ftp.centos.org/6.7/os/x86_64/ http://mirror.cov.ukservers.com/centos/6.7/os/x86_64/ http://mirror.as29550.net/mirror.centos.org/6.7/os/x86_64/
With all of the above checks did you get expecting results including domain resolution, ping response and the mirror list contents?
Kind Regards, Jake Shipton (JakeMS) Twitter: @CrazyLinuxNerd GPG Key: 0xE3C31D8F GPG Fingerprint: 7515 CC63 19BD 06F9 400A DE8A 1D0B A5CF E3C3 1D8F _______________________________________________
Yes dns works. If I change this file
/etc/yum.repos.d/CentOS-Base.repo
to this:
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep... baseurl=http://some.mirror.in.my.state/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
it works to do updates (and the other baseurl lines in that file). It fails with the mirror list option.
I have a centos 6.2 box here that is working just fine with updates and it looks very similar to this 6.7 box - updated from 6.3). I even tried going from static IP to dhcp assigned IP but no go.
I just check /var/log/yum.log, but that doesn’t show any errors, just successful updates.
-wes
On 12/08/2015 06:50 PM, Wes James wrote:
On Dec 7, 2015, at 10:02 PM, Jake Shipton jakems@fedoraproject.org wrote:
Wes James wrote:
On Dec 7, 2015, at 8:37 PM, Wes James comptekki@me.com wrote:
On Dec 7, 2015, at 8:23 PM, Wes James <comptekki@me.com mailto:comptekki@me.com> wrote:
On Dec 7, 2015, at 8:03 PM, Wes James comptekki@me.com wrote:
<snip>
I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get:
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:> (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
——
I thought updating to 6.7 might fix something, but it didn’t help. Any ideas why it is doing this?
If I go to:
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>>
in a browser, it shows a list of repos.
I just noticed on a stock install of 6.7 (from 6.4 doing a test), doing yum update shows this:
Loaded plugins: fastestmirror, refresh-packagekit, security
But on the box I just updated it shows:
Loaded plugins: fastestmirror, presto
So maybe the presto plugin is causing the problem. Anyone else using presto plugin??
-wes
That wasn’t it. I disabled presto then both with (and got the following error):
yum update --disableplugin=presto,fast* Setting up Update Process Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!') Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
—
Not sure what to try next. Other than my previous fix of not using a mirror list, but a known local repo that works fine for updates.
-wes
Poking around I found:
/etc/yum/pluginconf.d and now I see where presto comes from. I noticed in the fastmirror.conf there is a line
hostfile-timedhosts.txt
On my test box it has several lines of hosts with a number.
On the box I’m have yum update issues, it is blank. ??
-wes
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Hi,
I wasn't sure if I should reply to you as you seem to be doing a pretty good job of helping your self here :-D.
But jokes aside, can you do a couple of checks?
Firstly, let's make sure this machine actually has a network connection I've actually seen people spend hours trying to fix issues like yours only to find they had no outside network connection..
$ ping 8.8.8.8
Do you get a ping response? If not, check network settings. If you do, move on..
$ ping google.com
Does the domain resolve correctly? If not, check DNS settings. If you do, move on..
Assuming both of those have worked, can you do the following:
$ mkdir temporary $ cd temporary $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr..."
(Don't miss those quotes on the url, they are needed to ensure the &'s do not confuse BASH/ZSH)
Now, what happened? Did it connect and download correctly? If so do the following:
$ cat index.html?release=6&arch=x86_64&repo=os&infra=stock
You should basically get the mirror list:
http://mirrors.coreix.net/centos/6.7/os/x86_64/ http://centos.serverspace.co.uk/centos/6.7/os/x86_64/ http://mirrors.melbourne.co.uk/sites/ftp.centos.org/centos/6.7/os/x86_64/ http://mirrors.vooservers.com/centos/6.7/os/x86_64/ http://mirror.mhd.uk.as44574.net/mirror.centos.org/6.7/os/x86_64/ http://www.mirrorservice.org/sites/mirror.centos.org/6.7/os/x86_64/ http://mirrors.clouvider.net/CentOS/6.7/os/x86_64/ http://mirrors.ukfast.co.uk/sites/ftp.centos.org/6.7/os/x86_64/ http://mirror.cov.ukservers.com/centos/6.7/os/x86_64/ http://mirror.as29550.net/mirror.centos.org/6.7/os/x86_64/
With all of the above checks did you get expecting results including domain resolution, ping response and the mirror list contents?
Kind Regards, Jake Shipton (JakeMS) Twitter: @CrazyLinuxNerd GPG Key: 0xE3C31D8F GPG Fingerprint: 7515 CC63 19BD 06F9 400A DE8A 1D0B A5CF E3C3 1D8F _______________________________________________
Yes dns works. If I change this file
/etc/yum.repos.d/CentOS-Base.repo
to this:
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep...
finally something I can check for you my 6.x machine does not have the trailing &infra=$infra suggest you remove and try again
baseurl=http://some.mirror.in.my.state/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
it works to do updates (and the other baseurl lines in that file). It fails with the mirror list option.
I have a centos 6.2 box here that is working just fine with updates and it looks very similar to this 6.7 box - updated from 6.3). I even tried going from static IP to dhcp assigned IP but no go.
I just check /var/log/yum.log, but that doesn’t show any errors, just successful updates.
-wes
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Dec 7, 2015, at 10:57 PM, Rob Kampen rkampen@kampensonline.com wrote:
<snip>
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep...
finally something I can check for you my 6.x machine does not have the trailing &infra=$infra suggest you remove and try again
That didn’t help. FYI, My virtualbox stock centos 6.x install has the infra= stuff.
baseurl=http://some.mirror.in.my.state/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
it works to do updates (and the other baseurl lines in that file). It fails with the mirror list option.
I have a centos 6.2 box here that is working just fine with updates and it looks very similar to this 6.7 box - updated from 6.3). I even tried going from static IP to dhcp assigned IP but no go.
I just check /var/log/yum.log, but that doesn’t show any errors, just successful updates.
-wes
Another option I tried was
service iptables stop
just to see if there was a firewall rule causing an issue. But yum update still fails:
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
On 12/07/2015 11:50 PM, Wes James wrote:
On Dec 7, 2015, at 10:02 PM, Jake Shipton jakems@fedoraproject.org wrote:
Wes James wrote:
On Dec 7, 2015, at 8:37 PM, Wes James comptekki@me.com wrote:
On Dec 7, 2015, at 8:23 PM, Wes James <comptekki@me.com mailto:comptekki@me.com> wrote:
On Dec 7, 2015, at 8:03 PM, Wes James comptekki@me.com wrote:
<snip>
I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get:
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:> (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
——
I thought updating to 6.7 might fix something, but it didn’t help. Any ideas why it is doing this?
If I go to:
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>>
in a browser, it shows a list of repos.
I just noticed on a stock install of 6.7 (from 6.4 doing a test), doing yum update shows this:
Loaded plugins: fastestmirror, refresh-packagekit, security
But on the box I just updated it shows:
Loaded plugins: fastestmirror, presto
So maybe the presto plugin is causing the problem. Anyone else using presto plugin??
-wes
That wasn’t it. I disabled presto then both with (and got the following error):
yum update --disableplugin=presto,fast* Setting up Update Process Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!') Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
—
Not sure what to try next. Other than my previous fix of not using a mirror list, but a known local repo that works fine for updates.
-wes
Poking around I found:
/etc/yum/pluginconf.d and now I see where presto comes from. I noticed in the fastmirror.conf there is a line
hostfile-timedhosts.txt
On my test box it has several lines of hosts with a number.
On the box I’m have yum update issues, it is blank. ??
-wes
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Hi,
I wasn't sure if I should reply to you as you seem to be doing a pretty good job of helping your self here :-D.
But jokes aside, can you do a couple of checks?
Firstly, let's make sure this machine actually has a network connection I've actually seen people spend hours trying to fix issues like yours only to find they had no outside network connection..
$ ping 8.8.8.8
Do you get a ping response? If not, check network settings. If you do, move on..
$ ping google.com
Does the domain resolve correctly? If not, check DNS settings. If you do, move on..
Assuming both of those have worked, can you do the following:
$ mkdir temporary $ cd temporary $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr..."
(Don't miss those quotes on the url, they are needed to ensure the &'s do not confuse BASH/ZSH)
Now, what happened? Did it connect and download correctly? If so do the following:
$ cat index.html?release=6&arch=x86_64&repo=os&infra=stock
You should basically get the mirror list:
http://mirrors.coreix.net/centos/6.7/os/x86_64/ http://centos.serverspace.co.uk/centos/6.7/os/x86_64/ http://mirrors.melbourne.co.uk/sites/ftp.centos.org/centos/6.7/os/x86_64/ http://mirrors.vooservers.com/centos/6.7/os/x86_64/ http://mirror.mhd.uk.as44574.net/mirror.centos.org/6.7/os/x86_64/ http://www.mirrorservice.org/sites/mirror.centos.org/6.7/os/x86_64/ http://mirrors.clouvider.net/CentOS/6.7/os/x86_64/ http://mirrors.ukfast.co.uk/sites/ftp.centos.org/6.7/os/x86_64/ http://mirror.cov.ukservers.com/centos/6.7/os/x86_64/ http://mirror.as29550.net/mirror.centos.org/6.7/os/x86_64/
With all of the above checks did you get expecting results including domain resolution, ping response and the mirror list contents?
Kind Regards, Jake Shipton (JakeMS) Twitter: @CrazyLinuxNerd GPG Key: 0xE3C31D8F GPG Fingerprint: 7515 CC63 19BD 06F9 400A DE8A 1D0B A5CF E3C3 1D8F _______________________________________________
Yes dns works. If I change this file
/etc/yum.repos.d/CentOS-Base.repo
to this:
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep... baseurl=http://some.mirror.in.my.state/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
it works to do updates (and the other baseurl lines in that file). It fails with the mirror list option.
I have a centos 6.2 box here that is working just fine with updates and it looks very similar to this 6.7 box - updated from 6.3). I even tried going from static IP to dhcp assigned IP but no go.
I just check /var/log/yum.log, but that doesn’t show any errors, just successful updates.
-wes
What about the other thing he asked you to do:
wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr..."
Or even:
nslookup mirrorlist.centos.org
This sounds like you can not connect to the mirrorlist server or maybe you have a local dns name or an /etc/hosts entry that points to the wrong place.
On Dec 8, 2015, at 7:45 AM, Johnny Hughes johnny@centos.org wrote:
On 12/07/2015 11:50 PM, Wes James wrote:
On Dec 7, 2015, at 10:02 PM, Jake Shipton jakems@fedoraproject.org wrote:
Wes James wrote:
On Dec 7, 2015, at 8:37 PM, Wes James comptekki@me.com wrote:
On Dec 7, 2015, at 8:23 PM, Wes James <comptekki@me.com mailto:comptekki@me.com> wrote:
> On Dec 7, 2015, at 8:03 PM, Wes James comptekki@me.com wrote: >
<snip>
> I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get: > > ---- > > yum update > Loaded plugins: fastestmirror, presto > Setting up Update Process > Loading mirror speeds from cached hostfile > Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> error was > 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:<http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:> (28, 'connect() timed out!') > Error: Cannot find a valid baseurl for repo: base > > —— > > I thought updating to 6.7 might fix something, but it didn’t help. Any ideas why it is doing this? > > If I go to: > > http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>> > > in a browser, it shows a list of repos. >
I just noticed on a stock install of 6.7 (from 6.4 doing a test), doing yum update shows this:
Loaded plugins: fastestmirror, refresh-packagekit, security
But on the box I just updated it shows:
Loaded plugins: fastestmirror, presto
So maybe the presto plugin is causing the problem. Anyone else using presto plugin??
-wes
That wasn’t it. I disabled presto then both with (and got the following error):
yum update --disableplugin=presto,fast* Setting up Update Process Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!') Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
—
Not sure what to try next. Other than my previous fix of not using a mirror list, but a known local repo that works fine for updates.
-wes
Poking around I found:
/etc/yum/pluginconf.d and now I see where presto comes from. I noticed in the fastmirror.conf there is a line
hostfile-timedhosts.txt
On my test box it has several lines of hosts with a number.
On the box I’m have yum update issues, it is blank. ??
-wes
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Hi,
I wasn't sure if I should reply to you as you seem to be doing a pretty good job of helping your self here :-D.
But jokes aside, can you do a couple of checks?
Firstly, let's make sure this machine actually has a network connection I've actually seen people spend hours trying to fix issues like yours only to find they had no outside network connection..
$ ping 8.8.8.8
Do you get a ping response? If not, check network settings. If you do, move on..
$ ping google.com
Does the domain resolve correctly? If not, check DNS settings. If you do, move on..
Assuming both of those have worked, can you do the following:
$ mkdir temporary $ cd temporary $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr..."
(Don't miss those quotes on the url, they are needed to ensure the &'s do not confuse BASH/ZSH)
Now, what happened? Did it connect and download correctly? If so do the following:
$ cat index.html?release=6&arch=x86_64&repo=os&infra=stock
You should basically get the mirror list:
http://mirrors.coreix.net/centos/6.7/os/x86_64/ http://centos.serverspace.co.uk/centos/6.7/os/x86_64/ http://mirrors.melbourne.co.uk/sites/ftp.centos.org/centos/6.7/os/x86_64/ http://mirrors.vooservers.com/centos/6.7/os/x86_64/ http://mirror.mhd.uk.as44574.net/mirror.centos.org/6.7/os/x86_64/ http://www.mirrorservice.org/sites/mirror.centos.org/6.7/os/x86_64/ http://mirrors.clouvider.net/CentOS/6.7/os/x86_64/ http://mirrors.ukfast.co.uk/sites/ftp.centos.org/6.7/os/x86_64/ http://mirror.cov.ukservers.com/centos/6.7/os/x86_64/ http://mirror.as29550.net/mirror.centos.org/6.7/os/x86_64/
With all of the above checks did you get expecting results including domain resolution, ping response and the mirror list contents?
Kind Regards, Jake Shipton (JakeMS) Twitter: @CrazyLinuxNerd GPG Key: 0xE3C31D8F GPG Fingerprint: 7515 CC63 19BD 06F9 400A DE8A 1D0B A5CF E3C3 1D8F _______________________________________________
Yes dns works. If I change this file
/etc/yum.repos.d/CentOS-Base.repo
to this:
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep... baseurl=http://some.mirror.in.my.state/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 <file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6>
it works to do updates (and the other baseurl lines in that file). It fails with the mirror list option.
I have a centos 6.2 box here that is working just fine with updates and it looks very similar to this 6.7 box - updated from 6.3). I even tried going from static IP to dhcp assigned IP but no go.
I just check /var/log/yum.log, but that doesn’t show any errors, just successful updates.
-wes
What about the other thing he asked you to do:
wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock"
Or even:
nslookup mirrorlist.centos.org http://mirrorlist.centos.org/
nslookup works:
Non-authoritative answer: Name: mirrorlist.centos.org Address: 108.61.16.227 Name: mirrorlist.centos.org Address: 84.22.180.89 Name: mirrorlist.centos.org Address: 88.150.173.218
but wget fails??
$ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr..." --2015-12-08 08:04:15-- http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... Resolving mirrorlist.centos.org... 199.187.126.90 Connecting to mirrorlist.centos.org|199.187.126.90|:80... failed: Connection timed out. Retrying.
On my centos 6.2 box, wget fails also, but yum update works fine.
-wes
Hi,
On Tue, Dec 08, 2015 at 08:24:34AM -0700, Wes James wrote:
<please trim your replies> ...
nslookup works:
Non-authoritative answer: Name: mirrorlist.centos.org Address: 108.61.16.227 Name: mirrorlist.centos.org Address: 84.22.180.89 Name: mirrorlist.centos.org Address: 88.150.173.218
but wget fails??
$ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr..." --2015-12-08 08:04:15-- http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... Resolving mirrorlist.centos.org... 199.187.126.90 Connecting to mirrorlist.centos.org|199.187.126.90|:80... failed: Connection timed out. Retrying.
why does your wget hit 199.187.126.90 when your DNS says 108.61.16.227|84.22.180.89|88.150.173.218 ?
Bad http proxy in the way?
Tru
On Dec 8, 2015, at 9:03 AM, Tru Huynh tru@centos.org wrote:
Hi,
On Tue, Dec 08, 2015 at 08:24:34AM -0700, Wes James wrote:
<please trim your replies> ... > > nslookup works: > > Non-authoritative answer: > Name: mirrorlist.centos.org > Address: 108.61.16.227 > Name: mirrorlist.centos.org > Address: 84.22.180.89 > Name: mirrorlist.centos.org > Address: 88.150.173.218 > > but wget fails?? > > $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock" > --2015-12-08 08:04:15-- http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock > Resolving mirrorlist.centos.org... 199.187.126.90 > Connecting to mirrorlist.centos.org|199.187.126.90|:80... > failed: Connection timed out. > Retrying. why does your wget hit 199.187.126.90 when your DNS says 108.61.16.227|84.22.180.89|88.150.173.218 ?
Bad http proxy in the way?
Tru
Good point. When I do wget on a working repo (a working local repo in a US state), it works fine, but it errors out on the mirrorlist.centos.org, which is odd.
I don’t need a proxy for this box, but is there a proxy file for wget that is fouling things up? I’ll check.
Thanks,
-wes
On Dec 8, 2015, at 9:03 AM, Tru Huynh tru@centos.org wrote:
Hi,
On Tue, Dec 08, 2015 at 08:24:34AM -0700, Wes James wrote:
<please trim your replies> ... > > nslookup works: > > Non-authoritative answer: > Name: mirrorlist.centos.org > Address: 108.61.16.227 > Name: mirrorlist.centos.org > Address: 84.22.180.89 > Name: mirrorlist.centos.org > Address: 88.150.173.218 > > but wget fails?? > > $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock" > --2015-12-08 08:04:15-- http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock > Resolving mirrorlist.centos.org... 199.187.126.90 > Connecting to mirrorlist.centos.org|199.187.126.90|:80... > failed: Connection timed out. > Retrying. why does your wget hit 199.187.126.90 when your DNS says 108.61.16.227|84.22.180.89|88.150.173.218 ?
Bad http proxy in the way?
I just tried wget on my virtual box vm and it shows:
wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os" --2015-12-08 09:12:33-- http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os Resolving mirrorlist.centos.org... 108.61.16.227, 84.22.180.89, 88.150.173.218, ... Connecting to mirrorlist.centos.org|108.61.16.227|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: “index.html?release=6&arch=x86_64&repo=os”
[ <=> ] 512 --.-K/s in 0s
2015-12-08 09:12:34 (96.8 MB/s) - “index.html?release=6&arch=x86_64&repo=os” saved [512]
Why is wget resolving to 199.187….. on these other systems?
and nslookup shows the correct host resolution:
$ nslookup mirrorlist.centos.org
Non-authoritative answer: Name: mirrorlist.centos.org Address: 88.150.173.218 Name: mirrorlist.centos.org Address: 84.22.180.89 Name: mirrorlist.centos.org Address: 108.61.16.227
Thanks,
-wes
Date: Tuesday, December 08, 2015 09:17:20 -0700 From: Wes James comptekki@me.com
On Dec 8, 2015, at 9:03 AM, Tru Huynh tru@centos.org wrote:
Hi,
On Tue, Dec 08, 2015 at 08:24:34AM -0700, Wes James wrote:
<please trim your replies> ... > > nslookup works: > > Non-authoritative answer: > Name: mirrorlist.centos.org > Address: 108.61.16.227 > Name: mirrorlist.centos.org > Address: 84.22.180.89 > Name: mirrorlist.centos.org > Address: 88.150.173.218 > > but wget fails?? > > $ wget > "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&inf > ra=stock" --2015-12-08 08:04:15-- > http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr > a=stock Resolving mirrorlist.centos.org... 199.187.126.90 > Connecting to mirrorlist.centos.org|199.187.126.90|:80... > failed: Connection timed out. > Retrying. why does your wget hit 199.187.126.90 when your DNS says 108.61.16.227|84.22.180.89|88.150.173.218 ?
Bad http proxy in the way?
I just tried wget on my virtual box vm and it shows:
wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os" --2015-12-08 09:12:33-- http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os Resolving mirrorlist.centos.org... 108.61.16.227, 84.22.180.89, 88.150.173.218, ... Connecting to mirrorlist.centos.org|108.61.16.227|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: “index.html?release=6&arch=x86_64&repo=os”
[ <=>
] 512 --.-K/s in 0s
2015-12-08 09:12:34 (96.8 MB/s) - “index.html?release=6&arch=x86_64&repo=os” saved [512]
Why is wget resolving to 199.187….. on these other systems?
and nslookup shows the correct host resolution:
$ nslookup mirrorlist.centos.org
Non-authoritative answer: Name: mirrorlist.centos.org Address: 88.150.173.218 Name: mirrorlist.centos.org Address: 84.22.180.89 Name: mirrorlist.centos.org Address: 108.61.16.227
Thanks,
-wes
You wouldn't happen to have an entry for mirrorlist.centos.org in your /etc/hosts file for some reason?
Also, what is on the line for the (uncommented out) "hosts:" entry in your /etc/nsswitch.conf file?
On Dec 8, 2015, at 9:21 AM, Richard lists-centos@listmail.innovate.net wrote:
Date: Tuesday, December 08, 2015 09:17:20 -0700 From: Wes James comptekki@me.com
<snip>
You wouldn't happen to have an entry for mirrorlist.centos.org in your /etc/hosts file for some reason?
Also, what is on the line for the (uncommented out) "hosts:" entry in your /etc/nsswitch.conf file?
That was it. Your email arrived in my head before I got it here on the list :)
Thanks!
-wes
On Dec 8, 2015, at 9:03 AM, Tru Huynh tru@centos.org wrote:
Hi,
On Tue, Dec 08, 2015 at 08:24:34AM -0700, Wes James wrote:
<please trim your replies> ... > > nslookup works: > > Non-authoritative answer: > Name: mirrorlist.centos.org > Address: 108.61.16.227 > Name: mirrorlist.centos.org > Address: 84.22.180.89 > Name: mirrorlist.centos.org > Address: 88.150.173.218 > > but wget fails?? > > $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock" > --2015-12-08 08:04:15-- http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock > Resolving mirrorlist.centos.org... 199.187.126.90 > Connecting to mirrorlist.centos.org|199.187.126.90|:80... > failed: Connection timed out. > Retrying. why does your wget hit 199.187.126.90 when your DNS says 108.61.16.227|84.22.180.89|88.150.173.218 ?
Bad http proxy in the way?
Tru
I also checked to see if I had a .wgetrc - nope and the /etc/wgetrc file, all the lines are commented out.
On Dec 8, 2015, at 9:03 AM, Tru Huynh tru@centos.org wrote:
Hi,
On Tue, Dec 08, 2015 at 08:24:34AM -0700, Wes James wrote:
<please trim your replies> ... > > nslookup works: > > Non-authoritative answer: > Name: mirrorlist.centos.org > Address: 108.61.16.227 > Name: mirrorlist.centos.org > Address: 84.22.180.89 > Name: mirrorlist.centos.org > Address: 88.150.173.218 > > but wget fails?? > > $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock" > --2015-12-08 08:04:15-- http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock > Resolving mirrorlist.centos.org... 199.187.126.90 > Connecting to mirrorlist.centos.org|199.187.126.90|:80... > failed: Connection timed out. > Retrying. why does your wget hit 199.187.126.90 when your DNS says 108.61.16.227|84.22.180.89|88.150.173.218 ?
Bad http proxy in the way?
Tru
I started poking around in /etc/resolve.conf, /etc/nsswitch.conf and /etc/hosts and guess what I found in /etc/hosts?
199.187.126.90 mirrorlist.centos.org http://mirrorlist.centos.org/
Not sure why the previous admin did this. Is it an old mirror IP??
I commented that line out and now yum update is working.
Insanity reigns…..
Thanks for everyones help :)
-wes
On Mon, Dec 07, 2015 at 08:23:29PM -0700, Wes James wrote:
On Dec 7, 2015, at 8:03 PM, Wes James comptekki@me.com wrote:
I finally just did yum update on this box (actually 6.3) and now it is 6.7. During the update it created a CentOS-Base.repo.rpmnew file. I renamed my current one and this one to just .repo and now I again get:
yum update Loaded plugins: fastestmirror, presto Setting up Update Process Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr... http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infr...: http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base
Loaded plugins: fastestmirror, presto
So maybe the presto plugin is causing the problem. Anyone else using presto plugin??
I use presto without problems. You can try disabling any plugin by going to /etc/yum/pluginconf.d and in the files there, change enabled from 1 to 0