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

FATAL: Mixlib::ShellOut::ShellCommandFailed issue #164

Closed shar101 closed 10 years ago

shar101 commented 10 years ago

Hi Matthew,

Finally when I was unable to provision the VM, I had to raise this to you for help. I am using precise64 and have been following the instructions. The VM does come up but the Chef recipes is where the issue is. After repeated attempts of destroying the VM and reinstalling using vagrant up, I am unable to pursue further. The last two occasions seem to stop at "Maxlib::ShellOut. Part of the logs are attached for your reference. I did investigate the issue and it seems the issue is somewhere with pip install

I will continue to check for any resolution in the closed issues that deal with this issue, however if you can help me provide any direction, I would appreciate it highly

Thanks -Akash

/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in step' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:initerate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection.rb:92:inexecute_each_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:80:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:378:inconverge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:420:in do_run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:176:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:230:in run_application' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:218:inloop' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:218:in run_application' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application.rb:70:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/chef-solo:25 /opt/vagrant_ruby/bin/chef-solo:19:in `load' /opt/vagrant_ruby/bin/chef-solo:19 [2014-04-07T01:07:51+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[install_requirements](mtsw2e::default line 56) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2' ---- Begin output of pip install -r /vagrant/mtsw2e-requirements.txt --allow-unverified matplotlib --allow-all-external ---- STDOUT: Downloading/unpacking BeautifulSoup==3.2.1 (from -r /vagrant/mtsw2e-requirements.txt (line 1)) Downloading BeautifulSoup-3.2.1.tar.gz Running setup.py (path:/tmp/pip_build_root/BeautifulSoup/setup.py) egg_info for package BeautifulSoup

Downloading/unpacking Flask==0.9 (from -r /vagrant/mtsw2e-requirements.txt (line 2)) Running setup.py (path:/tmp/pip_build_root/Flask/setup.py) egg_info for package Flask

warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyo' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'examples'
warning: no previously-included files matching '*.pyo' found under directory 'examples'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes/.git'

Downloading/unpacking Jinja2==2.6 (from -r /vagrant/mtsw2e-requirements.txt (line 3))

shar101 commented 10 years ago

Just wanted to additionally provide the version numbers# virtualBox - 4.3.6 OS: Ubuntu 64Bit Vagrant - 1.4.3

ptwobrussell commented 10 years ago

Is Downloading/unpacking Jinja2==2.6 (from -r /vagrant/mtsw2e-requirements.txt (line 3)) the last line of your console output or did GitHub truncate it? If possible, can you provide the full console output to a pastebin and provide a link so that I can review it in its entirety?

shar101 commented 10 years ago

http://pastebin.com/62ist8vF

shar101 commented 10 years ago

By downloading to the latest version of Vagrant (1.5.2) I seem to have resolved the issue. Multiple attempts were used to execute vagrant provision to get the ipython notebook to source on localhost:8888. Thank you for your response Matthew Hope the findings here help others. Please use the most recent version of vagrant to deploy the VM

ptwobrussell commented 10 years ago

Thanks. I was just writing you back and commenting on how baffled I was that a CRC error was the root cause of the failure. To be honest, I'm really not quite sure how Vagrant could have been culpable, but I'm relieved to hear that updating to the latest version of Vagrant indeed fixed the problem.

Thanks for your patience with this. Despite trying to make it totally turn-key with a VM, these sorts of things inevitably still come up here and there.

Let me know how things work out as you get into the code a bit?