mdsol / mesos_cookbook

Chef cookbook for installing Apache Mesos
Other
78 stars 71 forks source link

rpm install fails to download #41

Closed dpetzel closed 9 years ago

dpetzel commented 10 years ago

I'm super new to Mesos so I may have misdiagnosed this, but it looks like maybe they changed where their packages are downloadable from? Reading through the instructions it appears they want folks to use their own yum repos.

# wget http://downloads.mesosphere.io/master/centos/6/mesos_0.20.0_x86_64.rpm
--2014-11-13 12:52:14--  http://downloads.mesosphere.io/master/centos/6/mesos_0.20.0_x86_64.rpm
Resolving downloads.mesosphere.io... 54.230.192.41, 54.230.193.64, 54.230.194.135, ...
Connecting to downloads.mesosphere.io|54.230.192.41|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2014-11-13 12:52:14 ERROR 403: Forbidden.
==> mesos_master1: [2014-11-13T12:45:25-08:00] INFO: remote_file[/var/chef/cache/mesos-0.20.0.rpm] created file /var/chef/cache/mesos-0.20.0.rpm
==> mesos_master1: [2014-11-13T12:45:25-08:00] INFO: HTTP Request Returned 403 Forbidden: 
==> mesos_master1: 
==> mesos_master1: ================================================================================
==> mesos_master1: Error executing action `create` on resource 'remote_file[/var/chef/cache/mesos-0.20.0.rpm]'
==> mesos_master1: ================================================================================
==> mesos_master1: 
==> mesos_master1: 
==> mesos_master1: Net::HTTPServerException
==> mesos_master1: ------------------------
==> mesos_master1: 403 "Forbidden"
==> mesos_master1: 
==> mesos_master1: 
==> mesos_master1: Resource Declaration:
==> mesos_master1: ---------------------
==> mesos_master1: # In /var/chef/cache/cookbooks/mesos/recipes/install.rb
==> mesos_master1: 
==> mesos_master1:  70:   remote_file "#{Chef::Config[:file_cache_path]}/mesos-#{node['mesos']['version']}.rpm" do
==> mesos_master1:  71:     source "http://downloads.mesosphere.io/master/centos/6/mesos_#{node['mesos']['version']}_x86_64.rpm"
==> mesos_master1:  72:     action :create
==> mesos_master1:  73:     not_if { ::File.exists? '/usr/local/sbin/mesos-master' }
==> mesos_master1:  74:   end
==> mesos_master1:  75: 
==> mesos_master1: 
==> mesos_master1: 
==> mesos_master1: 
==> mesos_master1: Compiled Resource:
==> mesos_master1: ------------------
==> mesos_master1: # Declared in /var/chef/cache/cookbooks/mesos/recipes/install.rb:70:in `from_file'
==> mesos_master1: 
==> mesos_master1: remote_file("/var/chef/cache/mesos-0.20.0.rpm") do
==> mesos_master1:   provider Chef::Provider::RemoteFile
==> mesos_master1:   action [:create]
==> mesos_master1:   retries 0
==> mesos_master1:   retry_delay 2
==> mesos_master1:   path "/var/chef/cache/mesos-0.20.0.rpm"
==> mesos_master1:   backup 5
==> mesos_master1:   atomic_update true
==> mesos_master1:   source ["http://downloads.mesosphere.io/master/centos/6/mesos_0.20.0_x86_64.rpm"]
==> mesos_master1:   use_etag true
==> mesos_master1:   use_last_modified true
==> mesos_master1:   cookbook_name "mesos"
==> mesos_master1:   recipe_name "install"
==> mesos_master1:   not_if { #code block }
==> mesos_master1: end
==> mesos_master1: 
==> mesos_master1: 
==> mesos_master1: 
==> mesos_master1: [2014-11-13T12:45:26-08:00] INFO: Running queued delayed notifications before re-raising exception
==> mesos_master1: [2014-11-13T12:45:26-08:00] ERROR: Running exception handlers
==> mesos_master1: [2014-11-13T12:45:26-08:00] ERROR: Exception handlers complete
==> mesos_master1: [2014-11-13T12:45:26-08:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> mesos_master1: [2014-11-13T12:45:26-08:00] INFO: Sending resource update report (run-id: a9651db5-7780-4fb4-a91d-d86e5913b631)
==> mesos_master1: [2014-11-13T12:45:26-08:00] ERROR: remote_file[/var/chef/cache/mesos-0.20.0.rpm] (mesos::install line 70) had an error: Net::HTTPServerException: 403 "Forbidden"
==> mesos_master1: [2014-11-13T12:45:26-08:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
harryw commented 10 years ago

Oh that does look like a problem. We're not actually using this cookbook right now so we haven't run into that yet. I'd be glad to take a PR to address the problem if you can find a better download location.

rayrod2030 commented 9 years ago

This is addressed in PR https://github.com/mdsol/mesos_cookbook/pull/50