Package exception

Could someone explain what happened with the following stacktrace?

thanks,

Xianfeng

Chef::Exceptions::package: package[yum-allowdowngrade] (mspot_omakase::default
line 34) had an error: Chef::Exceptions::package: Yum failed -
#<Process::Status: pid=1626,exited(1)> - returns: yum-dump Repository Error:
Cannot find a valid baseurl for repo: epel

/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/provider/package/yum.rb:751:in
refresh' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/provider/package/yum.rb:788:inpackage_available?’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/provider/package/yum.rb:973:in
load_current_resource' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/resource.rb:439:inrun_action’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/runner.rb:45:in
run_action' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/runner.rb:81:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/runner.rb:81:in each' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/runner.rb:81:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/resource_collection.rb:94:in
execute_each_resource' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/resource_collection/stepable_iterator.rb:116:in
call_iterator_block' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:instep’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/resource_collection/stepable_iterator.rb:104:in
iterate' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:ineach_with_index’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/resource_collection.rb:92:in
execute_each_resource' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/runner.rb:76:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/client.rb:312:in
converge' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/client.rb:160:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/application/client.rb:239:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/application/client.rb:229:inloop’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/…/lib/chef/application/client.rb:229:in
run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/application.rb:67:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/chef-client:26
/usr/bin/chef-client:19:in `load’
/usr/bin/chef-client:19

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=$basearch

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, xyuan@mspot.com wrote:

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

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" paul@paulgraydon.co.uk 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=$ba
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, xyuan@mspot.com wrote:

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

What is the URL in your epel.repo file?

Xianfeng Yuan xyuan@mspot.com 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" paul@paulgraydon.co.uk 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=$ba
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, xyuan@mspot.com wrote:

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

It's http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64

On 10/19/12 4:37 PM, "Wolfe, Eric G" eric.wolfe@marshall.edu wrote:

What is the URL in your epel.repo file?

Xianfeng Yuan xyuan@mspot.com 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" paul@paulgraydon.co.uk 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, xyuan@mspot.com wrote:

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

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: eric.wolfe@marshall.edu

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" eric.wolfe@marshall.edu wrote:

What is the URL in your epel.repo file?

Xianfeng Yuan xyuan@mspot.com 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" paul@paulgraydon.co.uk 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, xyuan@mspot.com wrote:

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