[chef] Re: Re: Re: Re: Re: package[yum-allowdowngrade] exception


Chronological Thread 
  • From: "Eric G. Wolfe" < >
  • To:
  • Cc: Xianfeng Yuan < >
  • Subject: [chef] Re: Re: Re: Re: Re: package[yum-allowdowngrade] exception
  • Date: Sat, 20 Oct 2012 00:18:44 -0400

Weird, following that link in a browser seems to be correctly formatted. Is it possible it was a transient error (the mirrorlist site was actually down)? Do you have a corrupt yum cache?

You can try:

yum clean all && yum -q makecache

Which will rebuild your yum cache.

Eric G. Wolfe
Senior Linux Administrator,
IT Infrastructure Systems
--------------------------------------
Marshall University Computing Services
Drinko Library 428-K
One John Marshall Dr.
Huntington, WV 25755
Phone: 304.942.3970
Email: 


You will be recognized and honored as a community leader.

On 10/19/2012 08:43 PM, Xianfeng Yuan wrote:
It's http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64

On 10/19/12 4:37 PM, "Wolfe, Eric G" 
< >
 wrote:

What is the URL in your epel.repo file?

Xianfeng Yuan 
< >
 wrote:


Yes. The following is the recipe:

%w{ yum-allowdowngrade }.each do |pkg|
   package pkg do
      action :install
   end
end





On 10/19/12 4:13 PM, "Paul Graydon" 
< >
 wrote:

This quoted section is the most relevant.  Yum has returned an error to
Chef telling it that it can't find a valid baseurl for the repository.

If you look in /etc/yum.repos.d/epel.repo you should see a line like:

baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch

On my systems that's actually commented out and mirrorlist is being used
by preference:
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$b
a
search

I'd suggest double checking on the box itself and seeing if "yum update"
will work or if it throws back the same error.

Did you install epel using Chef or one of it's cookbooks?

Paul

On 10/19/2012 12:45 PM, 

 wrote:
#<Process::Status: pid=1626,exited(1)> - returns: yum-dump Repository
Error:
Cannot find a valid baseurl for repo: epel





Archive powered by MHonArc 2.6.16.

§