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.48k forks source link

Installation fails #104

Closed myildi closed 10 years ago

myildi commented 10 years ago

I have just bought the ebook, and tried to install the system. I have installed VBox and Vagrant (current versions of both). I moved to the cloned folder and executed vagrant up. It has downloaded the VM but it seems that the installation has failed and I do not get anything when I go to localhost:8888 with Safari (I try to install the system on a Maverick laptop). I can ssh the VM.

The error I got during the vagrant up bootstrap is below.

Should I try to reinstall? If yes, how?

Thank you for your help.

Murat

Error executing action install on resource 'python_pip[http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz]'

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '2' ---- Begin output of pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz ---- STDOUT: Downloading/unpacking http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz Error while getting http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz Cleaning up... Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1092, in prepare_files self.unpack_url(url, location, self.is_download) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1238, in unpack_url retval = unpack_http_url(link, location, self.download_cache, self.download_dir) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 602, in unpack_http_url resp = _get_response_from_url(target_url, link) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 638, in _get_response_from_url resp = urlopen(target_url) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 176, in call response = self.get_opener(scheme=scheme).open(url) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open raise URLError(err) URLError:

Storing complete log in /root/.pip/pip.log STDERR: ---- End output of pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz ---- Ran pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz returned 2

Cookbook Trace:

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb:155:in pip_cmd' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb:139:ininstall_package' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb:46:in `class_from_file'

Resource Declaration:

In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mtsw2e/recipes/default.rb

50: packages.each do |package| 51: python_pip package do 52: action :install 53: end 54: end

Compiled Resource:

Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mtsw2e/recipes/default.rb:51:in `from_file'

python_pip("http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz") do timeout 900 retry_delay 2 retries 0 recipe_name "default" action [:install] cookbook_name :mtsw2e package_name "http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz" end

[2013-12-02T11:31:44+00:00] DEBUG: Re-raising exception: Mixlib::ShellOut::ShellCommandFailed - python_pip[http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz](mtsw2e::default line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2' ---- Begin output of pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz ---- STDOUT: Downloading/unpacking http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz Error while getting http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz Cleaning up... Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1092, in prepare_files self.unpack_url(url, location, self.is_download) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1238, in unpack_url retval = unpack_http_url(link, location, self.download_cache, self.download_dir) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 602, in unpack_http_url resp = _get_response_from_url(target_url, link) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 638, in _get_response_from_url resp = urlopen(target_url) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 176, in call response = self.get_opener(scheme=scheme).open(url) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open raise URLError(err) URLError:

Storing complete log in /root/.pip/pip.log STDERR: ---- End output of pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz ---- Ran pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz returned 2 /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:248:in invalid!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:234:inerror!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/shell_out.rb:36:in shell_out!' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb:155:inpip_cmd' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb:139:in install_package' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb:46:inclass_from_file' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:in call' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:inconverge!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:in each' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:inconverge!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:136:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:125:inrun_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource.rb:593:in run_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:49:inrun_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:ineach' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection.rb:94:inexecute_each_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in call' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block' /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 [2013-12-02T11:31:44+00:00] ERROR: Running exception handlers [2013-12-02T11:31:44+00:00] ERROR: Exception handlers complete [2013-12-02T11:31:44+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2013-12-02T11:31:44+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFailed: python_pip[http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz](mtsw2e::default line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2' ---- Begin output of pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz ---- STDOUT: Downloading/unpacking http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz Error while getting http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz Cleaning up... Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1092, in prepare_files self.unpack_url(url, location, self.is_download) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1238, in unpack_url retval = unpack_http_url(link, location, self.download_cache, self.download_dir) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 602, in unpack_http_url resp = _get_response_from_url(target_url, link) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 638, in _get_response_from_url resp = urlopen(target_url) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 176, in call response = self.get_opener(scheme=scheme).open(url) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open raise URLError(err) URLError:

Storing complete log in /root/.pip/pip.log STDERR: ---- End output of pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz ---- Ran pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz returned 2 /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:248:in invalid!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:234:inerror!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/shell_out.rb:36:in shell_out!' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb:155:inpip_cmd' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb:139:in install_package' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb:46:inclass_from_file' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:in call' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:inconverge!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:in each' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:inconverge!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:136:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:125:inrun_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource.rb:593:in run_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:49:inrun_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:ineach' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection.rb:94:inexecute_each_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in call' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block' /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 [2013-12-02T11:31:44+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: python_pip[http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz](mtsw2e::default line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2' ---- Begin output of pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz ---- STDOUT: Downloading/unpacking http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz Error while getting http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz Cleaning up... Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1092, in prepare_files self.unpack_url(url, location, self.is_download) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1238, in unpack_url retval = unpack_http_url(link, location, self.download_cache, self.download_dir) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 602, in unpack_http_url resp = _get_response_from_url(target_url, link) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 638, in _get_response_from_url resp = urlopen(target_url) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 176, in call response = self.get_opener(scheme=scheme).open(url) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open raise URLError(err) URLError:

Storing complete log in /root/.pip/pip.log STDERR: ---- End output of pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz ---- Ran pip install http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz returned 2 Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.

myildi commented 10 years ago

New try: I have thought that maybe the recipes are nor compatible with the current versions of Vagrant and VBox. So I have downloaded and installed Vagrant 1.2.1 and VB 4.2 (the last version compatible with this version of Vagrant). Vagrant up has downloaded and installed the VN, but immediately gave another error message:

Successfully added box 'precise64' with provider 'virtualbox'! /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/providers/virtualbox/action/import.rb:11:in call': undefined methodname' for nil:NilClass (NoMethodError) from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/handle_box_url.rb:38:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/providers/virtualbox/action/check_accessible.rb:18:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:inblock in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:inrun' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/call.rb:51:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/config_validate.rb:25:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builder.rb:116:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:inblock in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:inrun' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/machine.rb:147:in action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/batch_action.rb:63:inblock (2 levels) in run'

ptwobrussell commented 10 years ago

Murat - I'm sorry that you are experiencing this error, and I'll do everything I can to help you sort this out as quickly and painlessly as possible. The error that you are experiencing is peculiar in that it is telling us that it could fetch the file located at http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz. Even though this kind of error is odd given that this file is hosted by the Python Software Federation, I've still seen them intermittently from time to time, and they do unfortunately happen. (At other times, there are occasionally other network errors like temporary failures with DNS and things of that nature.)

The best thing to try is to type "vagrant destroy" in the same directory you are working from (the one containing Vagrantfile) and then type "vagrant up" to let it retry from a clean state. Just to be clear, it will NOT re-download the ~300MB file that is the precise64 base image, which is now cached on your machine, so you won't have to ever repay that expense. It will just start the bootstrap process over again, and should take ~25 mins or so to run on a reasonably fast Internet connection.

Can you give that a shot and let me know what happens. To summarize, just do this:

Looking forward to hearing back from you...

myildi commented 10 years ago

Thank you for your reply.

When I try to do vagrant destroy, I now get:

MacBookAir-333:Mining-the-Social-Web-2nd-Edition myildi$ vagrant destroy [default] VM not created. Moving on... MacBookAir-333:Mining-the-Social-Web-2nd-Edition myildi$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Box 'precise64' was not found. Fetching box from specified URL for the provider 'virtualbox'. Note that if the URL does not have a box for this provider, you should interrupt Vagrant now and add the box yourself. Otherwise Vagrant will attempt to download the full box prior to discovering this error. Downloading or copying the box... Extracting box...te: 3560k/s, Estimated time remaining: 0:00:01) The box you're attempting to add already exits:

Name: precise64 Provider: virtualbox

But, when I open the VB, I cannot see any VM in it... But I can see it in .vagrant.d. I have now deleted it and trying to download again through vagrant up...

Maybe I have done something stupid at one point, but I have really tried to follow each step scrupulously... The versions I have now are the ones I have indicated in my last message (Vagrant 1.2.1 and VB 4.2), are they compatible with the current vagrant scripts of your project?

myildi commented 10 years ago

And I get the following problems:

MacBookAir-333:Mining-the-Social-Web-2nd-Edition myildi$ vagrant destroy [default] VM not created. Moving on... MacBookAir-333:Mining-the-Social-Web-2nd-Edition myildi$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Box 'precise64' was not found. Fetching box from specified URL for the provider 'virtualbox'. Note that if the URL does not have a box for this provider, you should interrupt Vagrant now and add the box yourself. Otherwise Vagrant will attempt to download the full box prior to discovering this error. Downloading or copying the box... Extracting box...te: 3559k/s, Estimated time remaining: 0:00:01) Successfully added box 'precise64' with provider 'virtualbox'! /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/providers/virtualbox/action/import.rb:11:in call': undefined methodname' for nil:NilClass (NoMethodError) from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/handle_box_url.rb:38:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/providers/virtualbox/action/check_accessible.rb:18:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:inblock in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:inrun' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/call.rb:51:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builtin/config_validate.rb:25:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/warden.rb:34:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/builder.rb:116:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:inblock in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/action/runner.rb:61:inrun' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/machine.rb:147:in action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.1/lib/vagrant/batch_action.rb:63:inblock (2 levels) in run'

ptwobrussell commented 10 years ago

The latest versions of Vagrant and VirtualBox that I'm using and that I know work for sure:

$ VBoxManage --version
4.2.12r84980
$ vagrant --version
Vagrant 1.3.1

And previously, I was using Vagrant 1.2.x and it worked fine.

Just to make sure you were aware (in case it's helpful), there's a video that visually steps through this process - https://vimeo.com/channels/MiningTheSocialWeb - but maybe you've already seen it or been using it?

What I'm not sure is possible is if you can install a Vagrant box with one version of Vagrant and then switch the version of Vagrant by upgrading. It might be possible, but it might not. I've never tried it myself.

Just to be clear, you shouldn't need to use Virtualbox's interface at all. Vagrant should manage everything for you.

At this point, I think the best thing to do would be to try and restart totally from scratch. What started out as an intermittent network failure has now drastically increased in complexity, and it's probably just a lot easier to start clean since we are now seeing mysterious errors with Vagrant itself as shown in your last message (call': undefined methodname' for nil:NilClass (NoMethodError))

I'm really sorry that this is proving to be so tedious. As shown in the video, it's really supposed to be painless. Let's work together to figure it out. I really want to see you be successful with this and will do whatever I can (including a screenshare) to help you if need be.

myildi commented 10 years ago

This is what I have started to do on my side also. Deleted the repository and cloned it from scratch. Deleted the vagrant.d folder. And relaunched vagrant up. Unfortunately, the last problem continues to happen... Maybe 1.2.1 is too old as a version of Vagrant. I will restart from scratch (for the repository, VB and Vagrant) using the same versions as you, as a last chance solution...

ptwobrussell commented 10 years ago

Murat - I would be very surprised if Vagrant 1.2.1 is too old, but I suppose that could be possible. I think it's a little more likely that there is just a fundamental issue with Vagrant's configuration at this point with the multiple installs. One way that we can try to detect this is by trying to launch a plan Vagrant box that doesn't even take into account Mining the Social Web and all of its configuration management.

To do this, just to go an empty folder (not the same working folder as your Mining the Social Web code) and type "vagrant init". All that does is create a Vagrantfile for you. Then, you can edit the Vagrantfile to specify the precise64box with this minimal config:

override.vm.box = "precise64"
override.vm.box_url = "http://files.vagrantup.com/precise64.box"

Then, you just "vagrant up", and the box should come up and enable you to ssh into it. Assuming this works, we know that your Vagrant is OK. If it doesn't, then we can rest assured that there is a fundamental problem with Vagrant and troubleshoot from there.

After the box is up, you'd just "vagrant destroy" to get rid of it.

myildi commented 10 years ago

Hi, I have installed version 1.3.1 and created a new folder called test. Here is the result: it does not like override. I also paste below the edited vagrant file, maybe I have not pasted your instructions at the correct place.

Sorry for bothering you so much. When I unistall Vagrant, I delete its folder from the Applications, I delete ~/vagrant.d and /usr/bin/vagrant symbolic link.


Errors: MacBookAir-333:~ myildi$ cd /Users/myildi/Documents/test MacBookAir-333:test myildi$ vagrant init A Vagrantfile has been placed in this directory. You are now ready to vagrant up your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on vagrantup.com for more information on using Vagrant.

MacBookAir-333:test myildi$ vagrant up /Users/myildi/Documents/test/Vagrantfile:119:in block in <top (required)>': undefined local variable or methodoverride' for main:Object (NameError) from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/config/v2/loader.rb:37:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/config/v2/loader.rb:37:inload' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/config/loader.rb:104:in block (2 levels) in load' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/config/loader.rb:98:ineach' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/config/loader.rb:98:in block in load' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/config/loader.rb:95:ineach' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/config/loader.rb:95:in load' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/environment.rb:267:inconfig_global' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/environment.rb:519:in block in action_runner' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/action/runner.rb:28:incall' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/action/runner.rb:28:in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/environment.rb:280:inhook' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/lib/vagrant/environment.rb:135:in initialize' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/bin/vagrant:74:innew' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.1/bin/vagrant:74:in <top (required)>' from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:inload' from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `

'


Vagrant file:

-- mode: ruby --

vi: set ft=ruby :

Vagrantfile API/syntax version. Don't touch unless you know what you're doing!

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

All Vagrant configuration is done here. The most common configuration

options are documented and commented below. For a complete reference,

please see the online documentation at vagrantup.com.

Every Vagrant virtual environment requires a box to build off of.

config.vm.box = "base"

The url from where the 'config.vm.box' box will be fetched if it

doesn't already exist on the user's system.

config.vm.box_url = "http://domain.com/path/to/above.box"

Create a forwarded port mapping which allows access to a specific port

within the machine from a port on the host machine. In the example below,

accessing "localhost:8080" will access port 80 on the guest machine.

config.vm.network :forwarded_port, guest: 80, host: 8080

Create a private network, which allows host-only access to the machine

using a specific IP.

config.vm.network :private_network, ip: "192.168.33.10"

Create a public network, which generally matched to bridged network.

Bridged networks make the machine appear as another physical device on

your network.

config.vm.network :public_network

If true, then any SSH connections made will enable agent forwarding.

Default value: false

config.ssh.forward_agent = true

Share an additional folder to the guest VM. The first argument is

the path on the host to the actual folder. The second argument is

the path on the guest to mount the folder. And the optional third

argument is a set of non-required options.

config.vm.synced_folder "../data", "/vagrant_data"

Provider-specific configuration so you can fine-tune various

backing providers for Vagrant. These expose provider-specific options.

Example for VirtualBox:

#

config.vm.provider :virtualbox do |vb|

Don't boot with headless mode

vb.gui = true

#

Use VBoxManage to customize the VM. For example to change memory:

vb.customize ["modifyvm", :id, "--memory", "1024"]

end

#

View the documentation for the provider you're using for more

information on available options.

Enable provisioning with Puppet stand alone. Puppet manifests

are contained in a directory path relative to this Vagrantfile.

You will need to create the manifests directory and a manifest in

the file base.pp in the manifests_path directory.

#

An example Puppet manifest to provision the message of the day:

#

group { "puppet":

ensure => "present",

}

File { owner => 0, group => 0, mode => 0644 }

file { '/etc/motd':

content => "Welcome to your Vagrant-built virtual machine!

Managed by Puppet.\n"

}

#

config.vm.provision :puppet do |puppet|

puppet.manifests_path = "manifests"

puppet.manifest_file = "site.pp"

end

Enable provisioning with chef solo, specifying a cookbooks path, roles

path, and data_bags path (all relative to this Vagrantfile), and adding

some recipes and/or roles.

#

config.vm.provision :chef_solo do |chef|

chef.cookbooks_path = "../my-recipes/cookbooks"

chef.roles_path = "../my-recipes/roles"

chef.data_bags_path = "../my-recipes/data_bags"

chef.add_recipe "mysql"

chef.add_role "web"

#

You may also specify custom JSON attributes:

chef.json = { :mysql_password => "foo" }

end

Enable provisioning with chef server, specifying the chef server URL,

and the path to the validation key (relative to this Vagrantfile).

#

The Opscode Platform uses HTTPS. Substitute your organization for

ORGNAME in the URL and validation key.

#

If you have your own Chef Server, use the appropriate URL, which may be

HTTP instead of HTTPS depending on your configuration. Also change the

validation key to validation.pem.

#

config.vm.provision :chef_client do |chef|

chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"

chef.validation_key_path = "ORGNAME-validator.pem"

end

#

If you're using the Opscode platform, your validator client is

ORGNAME-validator, replacing ORGNAME with your organization name.

#

If you have your own Chef Server, the default validation client name is

chef-validator, unless you changed the configuration.

#

chef.validation_client_name = "ORGNAME-validator"

override.vm.box = "precise64" override.vm.box_url = "http://files.vagrantup.com/precise64.box" end

ptwobrussell commented 10 years ago

You are no bother at all! I am here to help you. We'll figure this out.

One thing you told me that makes me think it could be part of your problem is the way that you're "uninstalling" vagrant. I'd recommend opening back up the OS X package file that you used to install it, and use the "uninstall" link that's provided instead of manually doing the steps you mentioned. It's likely the case that there are some other cleanup actions that it takes that you or I don't know (or need to know) about.

And yes, the two lines that I provided are placed in the wrong section. Put them just below the line that reads

# config.vm.box_url = "http://domain.com/path/to/above.box"

that's near the top of the file.

ptwobrussell commented 10 years ago

Actually, you will need to use "config.vm." as the prefix instead of "override" as the prefix now that I look at your Vagrantfile. Sorry for the confusion:

config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
myildi commented 10 years ago

Thanks, correcting these instructions make the vagrant download the VM now. It has been installed, and I can ssh now:

MacBookAir-333:test myildi$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Box 'precise64' was not found. Fetching box from specified URL for the provider 'virtualbox'. Note that if the URL does not have a box for this provider, you should interrupt Vagrant now and add the box yourself. Otherwise Vagrant will attempt to download the full box prior to discovering this error. Downloading or copying the box... Extracting box...te: 3559k/s, Estimated time remaining: --:--:--) Successfully added box 'precise64' with provider 'virtualbox'! [default] Importing base box 'precise64'... [default] Matching MAC address for NAT networking... [default] Setting the name of the VM... [default] Clearing any previously set forwarded ports... [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] Booting VM... [default] Waiting for machine to boot. This may take a few minutes... [default] Machine booted and ready! [default] Mounting shared folders... [default] -- /vagrant MacBookAir-333:test myildi$ vagrant ssh Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)

It seems to work, no? What next? :-)

PS. The elements I delete to uninstall vagrant are indicated in the vagrant documentation as uninstall instructions, and the uninstall tool script seems to do the same operations in fact. So, it should work, no?

PS2. When I try to execute ./postinstall in the vagrant folder, I get a permission denied error: ./postinstall.sh: line 51: /etc/default/locale: Permission denied ++ case "$platform" in ++ apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev make curl git-core E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? ++ clone_dir=/tmp/ruby-build-1126 ++ git clone https://github.com/sstephenson/ruby-build.git /tmp/ruby-build-1126 ./postinstall.sh: line 79: git: command not found ++ /tmp/ruby-build-1126/bin/ruby-build 1.8.7-p358 /opt/vagrant_ruby ./postinstall.sh: line 80: /tmp/ruby-build-1126/bin/ruby-build: No such file or directory ++ rm -rf /tmp/ruby-build-1126 ++ unset clone_dir ++ /opt/vagrant_ruby/bin/gem install polyglot net-ssh-gateway mime-types --no-ri --no-rdoc Fetching: polyglot-0.3.3.gem (100%) ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /opt/vagrant_ruby/lib/ruby/gems/1.8 directory. ++ /opt/vagrant_ruby/bin/gem install chef --no-ri --no-rdoc

Fetching: mixlib-config-2.0.0.gem (100%) ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /opt/vagrant_ruby/lib/ruby/gems/1.8 directory. ++ /opt/vagrant_ruby/bin/gem install puppet --no-ri --no-rdoc

ptwobrussell commented 10 years ago

Ok, great. So the good news is that we know that your Vagrant is not fundamentally broken in any way. You can boot a VM, and get into it. That's a big relief.

If you are following the instructions for uninstall, then I'm sure you're fine. I just haven't tried to manually uninstall anything, so I wasn't sure and wanted to flag that for consideration...especially since weird things were starting to happen.

Why are you trying to manually run postinstall.sh? (I ask only because it's not something you should ever have to do, and I'm curious if you've found information that leads you to believe that you should have to do this?) (At any rate, you shouldn't have to do this, but if you were trying to do it for some reason, you'd need to "sudo" the command.)

My advice at this point as the next step is to "vagrant destroy" your VM that you just started. We don't need it anymore.

Then, restart the VM install for Mining the Social Web from a fresh folder: first, "git clone" the repo, and then "vagrant up". In theory, based on what we've observed, you should see the bootstrap start and proceed without issue. Fingers crossed.

If this still doesn't happen, please paste in the exact error message just one more time for me to carefully review it?

myildi commented 10 years ago

OK, I will now restart the repository and installation.

I have just tried to do ./postinstall since I have seen that the environment variables it was supposed to install do not appear when I do env. Nevermind. I clean the current folders and will keep you informed about the reinstall.

Thank you for your help.

Murat

myildi commented 10 years ago

Well, it started well, installed the VM ans tarted the rest of the process but got stuck at one point after mongodb (it seems to meet a pb with a recipe):

[2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] already running - nothing to do [2013-12-02T16:38:52+00:00] INFO: Processing execute[mongodb_textsearch] action run (mtsw2e::default line 33) [2013-12-02T16:38:52+00:00] INFO: execute[mongodb_textsearch] ran successfully [2013-12-02T16:38:52+00:00] INFO: execute[mongodb_textsearch] sending restart action to servicemongodb [2013-12-02T16:38:52+00:00] INFO: Processing service[mongodb] action restart (mtsw2e::default line 29) [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] falling back to process table inspection [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] attempting to match 'mongodb' (/mongodb/) against process list [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] running: true [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] runlevel 6, action stop, priority 20 [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] runlevel 5, action start, priority 20 [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] runlevel 4, action start, priority 20 [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] runlevel 3, action start, priority 20 [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] runlevel 2, action start, priority 20 [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] runlevel 1, action stop, priority 20 [2013-12-02T16:38:52+00:00] DEBUG: service[mongodb] runlevel 0, action stop, priority 20 [2013-12-02T16:38:53+00:00] INFO: service[mongodb] restarted [2013-12-02T16:38:53+00:00] INFO: Processing python_pip[numpy==1.7.1] action install (mtsw2e::default line 51) [2013-12-02T16:38:53+00:00] INFO: Installing python_pip[numpy==1.7.1] version latest [2013-12-02T16:40:42+00:00] INFO: Processing python_pip[http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz] action install (mtsw2e::default line 51) [2013-12-02T16:40:42+00:00] INFO: Installing python_pip[http://cheeseshop.python.org/packages/source/p/pyparsing/pyparsing-1.5.5.tar.gz] version latest [2013-12-02T16:40:48+00:00] INFO: Processing python_pip[https://fuxi.googlecode.com/hg/layercake-python.tar.bz2] action install (mtsw2e::default line 51) [2013-12-02T16:40:48+00:00] INFO: Installing python_pip[https://fuxi.googlecode.com/hg/layercake-python.tar.bz2] version latest [2013-12-02T16:40:53+00:00] INFO: Processing python_pip[https://pypi.python.org/packages/source/F/FuXi/FuXi-1.4.1.production.tar.gz] action install (mtsw2e::default line 51) [2013-12-02T16:40:53+00:00] INFO: Installing python_pip[https://pypi.python.org/packages/source/F/FuXi/FuXi-1.4.1.production.tar.gz] version latest [2013-12-02T16:40:55+00:00] INFO: Processing execute[install_requirements] action run (mtsw2e::default line 56)

Error executing action run on resource 'execute[install_requirements]'

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '2' ---- Begin output of pip install -r /vagrant/mtsw2e-requirements.txt ---- 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 egg_info for package BeautifulSoup

Downloading/unpacking Flask==0.9 (from -r /vagrant/mtsw2e-requirements.txt (line 2)) Running 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)) Running setup.py egg_info for package Jinja2

warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'

Downloading/unpacking PyGithub==1.17.0 (from -r /vagrant/mtsw2e-requirements.txt (line 4)) Running setup.py egg_info for package PyGithub

Downloading/unpacking PyYAML==3.10 (from -r /vagrant/mtsw2e-requirements.txt (line 5)) Running setup.py egg_info for package PyYAML

Downloading/unpacking Werkzeug==0.8.3 (from -r /vagrant/mtsw2e-requirements.txt (line 6)) Running setup.py egg_info for package Werkzeug

warning: no files found matching '*' under directory 'werkzeug/debug/templates'
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'

Downloading/unpacking beautifulsoup4==4.1.3 (from -r /vagrant/mtsw2e-requirements.txt (line 7)) You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files. Error while getting http://www.crummy.com/software/BeautifulSoup/bs4/download/4.1/beautifulsoup4-4.1.3.tar.gz#md5=5aece3c0b8a080658155958111fa2fa9 (from https://pypi.python.org/simple/beautifulsoup4/) Cleaning up... Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1092, in prepare_files self.unpack_url(url, location, self.is_download) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1238, in unpack_url retval = unpack_http_url(link, location, self.download_cache, self.download_dir) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 602, in unpack_http_url resp = _get_response_from_url(target_url, link) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 638, in _get_response_from_url resp = urlopen(target_url) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 176, in call response = self.get_opener(scheme=scheme).open(url) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open raise URLError(err) URLError:

Storing complete log in /root/.pip/pip.log STDERR: ---- End output of pip install -r /vagrant/mtsw2e-requirements.txt ---- Ran pip install -r /vagrant/mtsw2e-requirements.txt returned 2

Resource Declaration:

In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mtsw2e/recipes/default.rb

55: 56: execute "install_requirements" do 57: command "pip install -r /vagrant/mtsw2e-requirements.txt" 58: # action :nothing 59: end 60:

Compiled Resource:

Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mtsw2e/recipes/default.rb:56:in `from_file'

execute("install_requirements") do retry_delay 2 returns 0 command "pip install -r /vagrant/mtsw2e-requirements.txt" retries 0 recipe_name "default" action "run" cookbook_name :mtsw2e backup 5 end

[2013-12-02T16:41:23+00:00] DEBUG: Re-raising exception: 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 ---- 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 egg_info for package BeautifulSoup

Downloading/unpacking Flask==0.9 (from -r /vagrant/mtsw2e-requirements.txt (line 2)) Running 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)) Running setup.py egg_info for package Jinja2

warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'

Downloading/unpacking PyGithub==1.17.0 (from -r /vagrant/mtsw2e-requirements.txt (line 4)) Running setup.py egg_info for package PyGithub

Downloading/unpacking PyYAML==3.10 (from -r /vagrant/mtsw2e-requirements.txt (line 5)) Running setup.py egg_info for package PyYAML

Downloading/unpacking Werkzeug==0.8.3 (from -r /vagrant/mtsw2e-requirements.txt (line 6)) Running setup.py egg_info for package Werkzeug

warning: no files found matching '*' under directory 'werkzeug/debug/templates'
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'

Downloading/unpacking beautifulsoup4==4.1.3 (from -r /vagrant/mtsw2e-requirements.txt (line 7)) You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files. Error while getting http://www.crummy.com/software/BeautifulSoup/bs4/download/4.1/beautifulsoup4-4.1.3.tar.gz#md5=5aece3c0b8a080658155958111fa2fa9 (from https://pypi.python.org/simple/beautifulsoup4/) Cleaning up... Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1092, in prepare_files self.unpack_url(url, location, self.is_download) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1238, in unpack_url retval = unpack_http_url(link, location, self.download_cache, self.download_dir) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 602, in unpack_http_url resp = _get_response_from_url(target_url, link) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 638, in _get_response_from_url resp = urlopen(target_url) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 176, in call response = self.get_opener(scheme=scheme).open(url) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open raise URLError(err) URLError:

Storing complete log in /root/.pip/pip.log STDERR: ---- End output of pip install -r /vagrant/mtsw2e-requirements.txt ---- Ran pip install -r /vagrant/mtsw2e-requirements.txt returned 2 /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:248:in invalid!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:234:inerror!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/shell_out.rb:36:in shell_out!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/execute.rb:62:inaction_run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:in call' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:inconverge!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:in each' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:inconverge!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:136:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:125:inrun_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource.rb:593:in run_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:49:inrun_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:ineach' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection.rb:94:inexecute_each_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in call' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block' /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 [2013-12-02T16:41:23+00:00] ERROR: Running exception handlers [2013-12-02T16:41:23+00:00] ERROR: Exception handlers complete [2013-12-02T16:41:23+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2013-12-02T16:41:23+00:00] DEBUG: 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 ---- 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 egg_info for package BeautifulSoup

Downloading/unpacking Flask==0.9 (from -r /vagrant/mtsw2e-requirements.txt (line 2)) Running 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)) Running setup.py egg_info for package Jinja2

warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'

Downloading/unpacking PyGithub==1.17.0 (from -r /vagrant/mtsw2e-requirements.txt (line 4)) Running setup.py egg_info for package PyGithub

Downloading/unpacking PyYAML==3.10 (from -r /vagrant/mtsw2e-requirements.txt (line 5)) Running setup.py egg_info for package PyYAML

Downloading/unpacking Werkzeug==0.8.3 (from -r /vagrant/mtsw2e-requirements.txt (line 6)) Running setup.py egg_info for package Werkzeug

warning: no files found matching '*' under directory 'werkzeug/debug/templates'
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'

Downloading/unpacking beautifulsoup4==4.1.3 (from -r /vagrant/mtsw2e-requirements.txt (line 7)) You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files. Error while getting http://www.crummy.com/software/BeautifulSoup/bs4/download/4.1/beautifulsoup4-4.1.3.tar.gz#md5=5aece3c0b8a080658155958111fa2fa9 (from https://pypi.python.org/simple/beautifulsoup4/) Cleaning up... Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1092, in prepare_files self.unpack_url(url, location, self.is_download) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1238, in unpack_url retval = unpack_http_url(link, location, self.download_cache, self.download_dir) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 602, in unpack_http_url resp = _get_response_from_url(target_url, link) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 638, in _get_response_from_url resp = urlopen(target_url) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 176, in call response = self.get_opener(scheme=scheme).open(url) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open raise URLError(err) URLError:

Storing complete log in /root/.pip/pip.log STDERR: ---- End output of pip install -r /vagrant/mtsw2e-requirements.txt ---- Ran pip install -r /vagrant/mtsw2e-requirements.txt returned 2 /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:248:in invalid!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout.rb:234:inerror!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/shell_out.rb:36:in shell_out!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/execute.rb:62:inaction_run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:in call' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:63:inconverge!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:in each' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/why_run.rb:61:inconverge!' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:136:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.rb:125:inrun_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource.rb:593:in run_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:49:inrun_action' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:ineach' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:81:in converge' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection.rb:94:inexecute_each_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in call' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block' /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 [2013-12-02T16:41:23+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 ---- 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 egg_info for package BeautifulSoup

Downloading/unpacking Flask==0.9 (from -r /vagrant/mtsw2e-requirements.txt (line 2)) Running 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)) Running setup.py egg_info for package Jinja2

warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'

Downloading/unpacking PyGithub==1.17.0 (from -r /vagrant/mtsw2e-requirements.txt (line 4)) Running setup.py egg_info for package PyGithub

Downloading/unpacking PyYAML==3.10 (from -r /vagrant/mtsw2e-requirements.txt (line 5)) Running setup.py egg_info for package PyYAML

Downloading/unpacking Werkzeug==0.8.3 (from -r /vagrant/mtsw2e-requirements.txt (line 6)) Running setup.py egg_info for package Werkzeug

warning: no files found matching '*' under directory 'werkzeug/debug/templates'
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'

Downloading/unpacking beautifulsoup4==4.1.3 (from -r /vagrant/mtsw2e-requirements.txt (line 7)) You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files. Error while getting http://www.crummy.com/software/BeautifulSoup/bs4/download/4.1/beautifulsoup4-4.1.3.tar.gz#md5=5aece3c0b8a080658155958111fa2fa9 (from https://pypi.python.org/simple/beautifulsoup4/) Cleaning up... Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1092, in prepare_files self.unpack_url(url, location, self.is_download) File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1238, in unpack_url retval = unpack_http_url(link, location, self.download_cache, self.download_dir) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 602, in unpack_http_url resp = _get_response_from_url(target_url, link) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 638, in _get_response_from_url resp = urlopen(target_url) File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 176, in call response = self.get_opener(scheme=scheme).open(url) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 418, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open raise URLError(err) URLError:

Storing complete log in /root/.pip/pip.log STDERR: ---- End output of pip install -r /vagrant/mtsw2e-requirements.txt ---- Ran pip install -r /vagrant/mtsw2e-requirements.txt returned 2 Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.

myildi commented 10 years ago

And going to http://localhost:8888 gives an empty page.

ptwobrussell commented 10 years ago

It is expected that after the failure http://localhost:8888 would give you an empty page, because the error occurs before the IPython Notebook server starts.

This error is very similar to the initial one. It's saying that it couldn't download the file at - http://www.crummy.com/software/BeautifulSoup/bs4/download/4.1/beautifulsoup4-4.1.3.tar.gz#md5=5aece3c0b8a080658155958111fa2fa9 - even though that file is available. Out of curiosity, where are you at geographically? I'm collecting data points from various people when these things happen, and I'm noticing that there is a high correlation with geography and network issues like this.

Anyway, all that needs to happen at this point is that the requirements need to finish installing, and then the IPython Notebook server starts. Let's just "manually" intervene and get the requirements to finish installing like this:

Can you do those steps? Once they complete, then we just have one more command to run to start the IPython Notebook server, and you'll be all set.

myildi commented 10 years ago

I am located ay Bordeaux, France.

Well, I cannot see any requirements folder there:

vagrant@precise64:~$ ls -al total 48 drwxr-xr-x 4 vagrant vagrant 4096 Sep 14 2012 . drwxr-xr-x 3 root root 4096 Sep 14 2012 .. -rw------- 1 vagrant vagrant 22 Sep 14 2012 .bash_history -rw-r--r-- 1 vagrant vagrant 220 Sep 14 2012 .bash_logout -rw-r--r-- 1 vagrant vagrant 3486 Sep 14 2012 .bashrc drwx------ 2 vagrant vagrant 4096 Sep 14 2012 .cache -rwxr-xr-x 1 vagrant vagrant 6487 Sep 14 2012 postinstall.sh -rw-r--r-- 1 vagrant vagrant 675 Sep 14 2012 .profile drwx------ 2 vagrant vagrant 4096 Sep 14 2012 .ssh -rw-r--r-- 1 vagrant vagrant 0 Sep 14 2012 .sudo_as_admin_successful -rw------- 1 vagrant vagrant 6 Sep 14 2012 .vbox_version -rw------- 1 vagrant vagrant 12 Sep 14 2012 .veewee_version

is all I have in the vagrant folder. It does not seem to share the installation folder here.

ptwobrussell commented 10 years ago

You are showing me the contents of the home (~) directory as opposed to the "/vagrant" directory. Once you "vagrant ssh" into the VM, you need to "cd /vagrant" (which is different from "/home/vagrant" that you are showing me). In there, you should see some familiar files and be able to "sudo pip install -r mtsw2e-requirements.txt"

myildi commented 10 years ago

Oups, sorry, this folder is also called vagrant: vagrant@precise64:~$ pwd /home/vagrant

I have missed the root /

I have in the folder /vagrant

vagrant@precise64:/vagrant$ ls -al total 36 drwxr-xr-x 1 vagrant vagrant 442 Dec 2 16:35 . drwxr-xr-x 24 root root 4096 Dec 2 16:35 .. -rw-r--r-- 1 vagrant vagrant 3285 Dec 2 16:32 CONTRIBUTING.md drwxr-xr-x 1 vagrant vagrant 102 Dec 2 16:32 deploy drwxr-xr-x 1 vagrant vagrant 374 Dec 2 16:32 .git -rw-r--r-- 1 vagrant vagrant 176 Dec 2 16:32 .gitignore drwxr-xr-x 1 vagrant vagrant 102 Dec 2 16:32 images drwxr-xr-x 1 vagrant vagrant 646 Dec 2 16:32 ipynb -rw-r--r-- 1 vagrant vagrant 1827 Dec 2 16:32 LICENSE.txt -rw-r--r-- 1 vagrant vagrant 629 Dec 2 16:32 mtsw2e-requirements.txt -rw-r--r-- 1 vagrant vagrant 11320 Dec 2 16:32 README.md drwxr-xr-x 1 vagrant vagrant 102 Dec 2 16:35 .vagrant -rw-r--r-- 1 vagrant vagrant 3935 Dec 2 16:33 Vagrantfile

So, is is now installing some supplementary stuff.

I will keep you informed.

myildi commented 10 years ago

It gave some warnings, but seems to have been able to install the files:

Successfully installed BeautifulSoup Flask Jinja2 PyGithub PyYAML Werkzeug beautifulsoup4 chardet cluster envoy facebook-sdk feedparser geopy google-api-python-client httplib2 matplotlib networkx nltk oauthlib prettytable pymongo python-dateutil python-gflags python-linkedin pyzmq readline requests requests-oauthlib tornado twitter oauth2 twitter-text-py JPype1 charade boilerpipe ipython six Cleaning up...

Would it be enough to restart the VN to get the results now, or can I execute some other instructions to start the iPython service?

myildi commented 10 years ago

I have started the VM, but do get an empty page when I go to localhost...

ptwobrussell commented 10 years ago

This is really good news. All that you should have to do at this point is run this command on the VM:

sudo /usr/bin/python /usr/local/bin/ipython notebook --ip=0.0.0.0 --notebook-dir=/vagrant/ipynb --port=8888 --pylab=inline --no-browser

Then, you should be able to go to http://localhost:8888 in your browser and see the IPython Notebook UI. Try it and let me know?

myildi commented 10 years ago

Hallelujah! It works :-) I can see the iPython notebooks and can even execute print "Hello, Social Web!" in the introduction notebook.

Thank you very much for your help and for the hassle I gave to you. We have not been able to locate the source of the problem, but it works now... Maybe these instructions could help someone else one day...

I do not remember enough Linux to be able to put this command in the automatic start of the VM.

Could you help me to include it in the starting scripts (it was somewhere in /etc if I remember correctly...).

Thank you again Matthew!

Murat

ptwobrussell commented 10 years ago

"Hallelujah!" is great expression of fulfillment :)

And really, it is my sincere pleasure to help you. This should be the standard for technical books - authors helping readers with their troubles.

The way the VM is setup, you should now be able to "vagrant suspend/resume" or "vagrant halt/up" in order to stop/start the VM, and the IPython Notebook server should come up on its own now. I'd definitely recommend watching the other videos on Vimeo now that you're up and running since a couple of them illustrate this process.

I admire your persistence. Let me know if there's anything at all I can ever to do help. (And consider writing an AMZN review once you've dug in a bit more?)