ptwobrussell / Mining-the-Social-Web-2nd-Edition

The official online compendium for Mining the Social Web, 2nd Edition (O'Reilly, 2013)
http://bit.ly/135dHfs
Other
2.9k stars 1.49k forks source link

Same (final) error (Chef never successfully completed) other reason? #288

Open steini2 opened 8 years ago

steini2 commented 8 years ago

Hey guys,

I've been looking through the other recent post about chef not installing correctly. I'm getting the same error but I think it's due to another reason, namely vagrant not finding get-pip.py (have a look at the code below). I have no idea how to link it correctly. Might this be due to me updating setuptools recently? I'm running Win7 x64, VirtualBox 4.3.20 and Vagrant 1.7.1 Thank you for your help!

Steini

==> default: [2016-01-27T15:09:05+00:00] DEBUG: Content-Length validated correct
ly.
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::C
ookieManager#handle_stream_complete
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::D
ecompressor#handle_stream_complete
==> default: [2016-01-27T15:09:05+00:00] DEBUG: calculating checksum of /tmp/che
f-rest20160127-1338-1rerg54 to compare with 2718a1efcf4daff923a98c2058a1241da1e7
52f572f58eea92f082a3fa3dea96
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Found target_mode == current_mod
e, not updating mode
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Found target_uid == nil, so no o
wner was specified on resource, not managing owner
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Found target_gid == nil, so no g
roup was specified on resource, not managing group
==> default: [2016-01-27T15:09:05+00:00] INFO: Processing execute[install-setupt
ools] action run (python::pip line 48)
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Resources for generic execute re
source enabled on node include: [Chef::Resource::Execute]
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Resource for execute is Chef::Re
source::Execute
==> default: [2016-01-27T15:09:05+00:00] INFO: Processing execute[Guard resource
] action run (dynamically defined)
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Providers for generic execute re
source enabled on node include: [Chef::Provider::Execute]
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Provider for action run on resou
rce execute[Guard resource] is Chef::Provider::Execute
==> default: [2016-01-27T15:09:05+00:00] INFO: execute[Guard resource] ran succe
ssfully
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Skipping execute[install-setupto
ols] due to not_if command `/usr/bin/python -c 'import setuptools'`
==> default: [2016-01-27T15:09:05+00:00] INFO: Processing execute[install-pip] a
ction run (python::pip line 56)
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Providers for generic execute re
source enabled on node include: [Chef::Provider::Execute]
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Provider for action run on resou
rce execute[install-pip] is Chef::Provider::Execute
==> default:
==> default: ===================================================================
=============
==> default: Error executing action `run` on resource 'execute[install-pip]'
==> default: ===================================================================
=============
==> default:
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of   /usr/bin/python get-pip.py
==> default:  ----
==> default: STDOUT:
==> default: STDERR: You're using an outdated location for the get-pip.py script
, please use the one available from https://bootstrap.pypa.io/get-pip.py
==> default: ---- End output of   /usr/bin/python get-pip.py
==> default:  ----
==> default: Ran   /usr/bin/python get-pip.py
==> default:  returned 1
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef-5/chef-solo-1/cookbooks/python/recipes/pip.r
b
==> default:
==> default:  56: execute "install-pip" do
==> default:  57:   cwd Chef::Config[:file_cache_path]
==> default:  58:   command <<-EOF
==> default:  59:   #{node['python']['binary']} get-pip.py
==> default:  60:   EOF
==> default:  61:   not_if { ::File.exists?(pip_binary) }
==> default:  62: end
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef-5/chef-solo-1/cookbooks/python/reci
pes/pip.rb:56:in `from_file'
==> default: execute("install-pip") do
==> default:   action [:run]
==> default:   retries 0
==> default:   retry_delay 2
==> default:   default_guard_interpreter :execute
==> default:   command "  /usr/bin/python get-pip.py\n"
==> default:   backup 5
==> default:   cwd "/var/chef/cache"
==> default:   returns 0
==> default:   declared_type :execute
==> default:   cookbook_name :python
==> default:   recipe_name "pip"
==> default:   not_if { #code block }
==> default: end
==> default: [2016-01-27T15:09:05+00:00] INFO: Running queued delayed notificati
ons before re-raising exception
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Re-raising exception: Mixlib::Sh
ellOut::ShellCommandFailed - execute[install-pip] (python::pip line 56) had an e
rror: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], b
ut received '1'
==> default: ---- Begin output of   /usr/bin/python get-pip.py
==> default:  ----
==> default: STDOUT:
==> default: STDERR: You're using an outdated location for the get-pip.py script
, please use the one available from https://bootstrap.pypa.io/get-pip.py
==> default: ---- End output of   /usr/bin/python get-pip.py
==> default:  ----
==> default: Ran   /usr/bin/python get-pip.py
==> default:  returned 1
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.2.5/l
ib/mixlib/shellout.rb:289:in `invalid!'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.2.5
/lib/mixlib/shellout.rb:276:in `error!'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
mixin/shell_out.rb:56:in `shell_out!'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
provider/execute.rb:62:in `block in action_run'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
mixin/why_run.rb:52:in `call'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
mixin/why_run.rb:52:in `add_action'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
provider.rb:175:in `converge_by'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
provider/execute.rb:60:in `action_run'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
provider.rb:144:in `run_action'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
resource.rb:596:in `run_action'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
runner.rb:74:in `run_action'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
runner.rb:106:in `block (2 levels) in converge'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
runner.rb:106:in `each'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
runner.rb:106:in `block in converge'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
resource_collection/resource_list.rb:83:in `block in execute_each_resource'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
resource_collection/stepable_iterator.rb:116:in `call'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
resource_collection/stepable_iterator.rb:85:in `step'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
resource_collection/stepable_iterator.rb:104:in `iterate'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
resource_collection/stepable_iterator.rb:55:in `each_with_index'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
resource_collection/resource_list.rb:81:in `execute_each_resource'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
runner.rb:105:in `converge'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
client.rb:658:in `block in converge'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
client.rb:653:in `catch'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
client.rb:653:in `converge'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
client.rb:692:in `converge_and_save'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
client.rb:271:in `run'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application.rb:261:in `block in fork_chef_client'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application.rb:249:in `fork'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application.rb:249:in `fork_chef_client'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application.rb:215:in `block in run_chef_client'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
local_mode.rb:44:in `with_server_connectivity'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application.rb:203:in `run_chef_client'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application/solo.rb:286:in `block in interval_run_chef_client'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application/solo.rb:275:in `loop'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application/solo.rb:275:in `interval_run_chef_client'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application/solo.rb:253:in `run_application'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/
application.rb:58:in `run'
==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/bin/chef-
solo:25:in `<top (required)>'
==> default:   /usr/bin/chef-solo:54:in `load'
==> default:   /usr/bin/chef-solo:54:in `<main>'
==> default: [2016-01-27T15:09:05+00:00] ERROR: Running exception handlers
==> default: [2016-01-27T15:09:05+00:00] ERROR: Exception handlers complete
==> default: [2016-01-27T15:09:05+00:00] FATAL: Stacktrace dumped to /var/chef/c
ache/chef-stacktrace.out
==> default: [2016-01-27T15:09:05+00:00] FATAL: Please provide the contents of t
he stacktrace.out file if you file a bug report
==> default: [2016-01-27T15:09:05+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFa
iled: execute[install-pip] (python::pip line 56) had an error: Mixlib::ShellOut:
:ShellCommandFailed: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of   /usr/bin/python get-pip.py
==> default:  ----
==> default: STDOUT:
==> default: STDERR: You're using an outdated location for the get-pip.py script
, please use the one available from https://bootstrap.pypa.io/get-pip.py
==> default: ---- End output of   /usr/bin/python get-pip.py
==> default:  ----
==> default: Ran   /usr/bin/python get-pip.py
==> default:  returned 1
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.2.5/l
ib/mixlib/shellout.rb:289:in `invalid!'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.2.5/l
ib/mixlib/shellout.rb:276:in `error!'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/mi
xin/shell_out.rb:56:in `shell_out!'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/pr
ovider/execute.rb:62:in `block in action_run'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/mi
xin/why_run.rb:52:in `call'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/mi
xin/why_run.rb:52:in `add_action'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/pr
ovider.rb:175:in `converge_by'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/pr
ovider/execute.rb:60:in `action_run'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/pr
ovider.rb:144:in `run_action'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/re
source.rb:596:in `run_action'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ru
nner.rb:74:in `run_action'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ru
nner.rb:106:in `block (2 levels) in converge'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ru
nner.rb:106:in `each'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ru
nner.rb:106:in `block in converge'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/re
source_collection/resource_list.rb:83:in `block in execute_each_resource'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/re
source_collection/stepable_iterator.rb:116:in `call'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/re
source_collection/stepable_iterator.rb:116:in `call_iterator_block'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/re
source_collection/stepable_iterator.rb:85:in `step'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/re
source_collection/stepable_iterator.rb:104:in `iterate'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/re
source_collection/stepable_iterator.rb:55:in `each_with_index'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/re
source_collection/resource_list.rb:81:in `execute_each_resource'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ru
nner.rb:105:in `converge'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/cl
ient.rb:658:in `block in converge'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/cl
ient.rb:653:in `catch'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/cl
ient.rb:653:in `converge'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/cl
ient.rb:692:in `converge_and_save'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/cl
ient.rb:271:in `run'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication.rb:261:in `block in fork_chef_client'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication.rb:249:in `fork'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication.rb:249:in `fork_chef_client'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication.rb:215:in `block in run_chef_client'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/lo
cal_mode.rb:44:in `with_server_connectivity'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication.rb:203:in `run_chef_client'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication/solo.rb:286:in `block in interval_run_chef_client'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication/solo.rb:275:in `loop'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication/solo.rb:275:in `interval_run_chef_client'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication/solo.rb:253:in `run_application'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/ap
plication.rb:58:in `run'
==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/bin/chef-so
lo:25:in `<top (required)>'
==> default: /usr/bin/chef-solo:54:in `load'
==> default: /usr/bin/chef-solo:54:in `<main>'
==> default: [2016-01-27T15:09:05+00:00] ERROR: execute[install-pip] (python::pi
p line 56) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process
to exit with [0], but received '1'
==> default: ---- Begin output of   /usr/bin/python get-pip.py
==> default:  ----
==> default: STDOUT:
==> default: STDERR: You're using an outdated location for the get-pip.py script
, please use the one available from https://bootstrap.pypa.io/get-pip.py
==> default: ---- End output of   /usr/bin/python get-pip.py
==> default:  ----
==> default: Ran   /usr/bin/python get-pip.py
==> default:  returned 1
==> default: [2016-01-27T15:09:05+00:00] FATAL: Chef::Exceptions::ChildConvergeE
rror: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
LINGLUOJUN commented 8 years ago

Now,you have solved the problem?

ghost commented 8 years ago

Editing the file:

Mining-the-Social-Web-2nd-Edition/deploy/cookbooks/python/attributes/default.rb

on your machine and changing the line:

default['python']['pip_script_url'] = 'https://raw.github.com/pypa/pip/master/contrib/get-pip.py'

to:

default['python']['pip_script_url'] = 'https://bootstrap.pypa.io/get-pip.py'

should fix the problem.

steini2 commented 8 years ago

Thanks, that solved my problem!

linwoodc3 commented 8 years ago

Solved my problem too.

Sigmandis commented 8 years ago

Solved my problem as well. Thanks!

smeyer87 commented 8 years ago

Thank you - this solved the same problem I had when installing.

I did notice some error messages still in the log for problems creating 'wheel' for various components. Didn't seem to impact the end result - system loaded okay.

djjonbrown commented 8 years ago

@fbgava Solved mine, too.

mensahdx commented 8 years ago

I have change the path by I'm still getting "Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete." error. Please help