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

can't browse Notebook after "vagrant up" #137

Closed FengChong closed 10 years ago

FengChong commented 10 years ago

Thanks for your wonderful book. I read several chapters first and then decide to go with my computer. But when I try to deploy the virtual machine, I can't get the expected results. I think I did follow your instructions in book and screencast. May be I missed something... Thanks a lot if you could tell me how should I put it right.

The host machine is on Win7 (64bit). I have checked the initial steps are fine. All separate commands, including "git", "vagrant", and "ssh", can get normal feedback. Then the "git clone" is fine. Then I try to "vagrant up". The results are as following. I use "vagrant ssh" to know if the guest is running. yeah, I do can log in. But neither "http://localhost:8888" nor "http://127.0.0.1:8888/" can open the notebook. And I try to mannually get the web server run (I find it in your suggestion to other one). But it didn't work. Really frustrating now...

[default] -- 22 => 2222 (adapter 1)
[default] -- 8888 => 8888 (adapter 1)
[default] -- 5000 => 5000 (adapter 1)
[default] -- 27017 => 27017 (adapter 1)
[default] -- 27018 => 27018 (adapter 1)
[default] -- 27019 => 27019 (adapter 1)
[default] -- 28017 => 28017 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
DL is deprecated, please use Fiddle
[default] Machine booted and ready!
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
prevent things such as shared folders from working properly. If you see
shared folder errors, please make sure the guest additions within the
virtual machine match the version of VirtualBox you have installed on
your host and reload your VM.

Guest Additions Version: 4.2.0
VirtualBox Version: 4.3
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
[2014-02-07T11:42:32+00:00] INFO: *** Chef 10.14.2 ***
[2014-02-07T11:42:32+00:00] DEBUG: Building node object for precise64
[2014-02-07T11:42:32+00:00] DEBUG: Extracting run list from JSON attributes prov
ided on command line
[2014-02-07T11:42:32+00:00] INFO: Setting the run_list to ["recipe[mtsw2e::defau
lt]"] from JSON
[2014-02-07T11:42:32+00:00] DEBUG: Applying attributes from json file
[2014-02-07T11:42:32+00:00] DEBUG: Platform is ubuntu version 12.04
[2014-02-07T11:42:32+00:00] INFO: Run List is [recipe[mtsw2e::default]]
[2014-02-07T11:42:32+00:00] INFO: Run List expands to [mtsw2e::default]
[2014-02-07T11:42:32+00:00] INFO: Starting Chef Run for precise64
[2014-02-07T11:42:32+00:00] INFO: Running start handlers
[2014-02-07T11:42:32+00:00] INFO: Start handlers complete.
[2014-02-07T11:42:32+00:00] DEBUG: No chefignore file found at /tmp/vagrant-chef
-1/chef-solo-1/cookbooks/chefignore no files will be ignored
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook runit's library file: /tmp/v
agrant-chef-1/chef-solo-1/cookbooks/runit/libraries/provider_runit_service.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook runit's library file: /tmp/v
agrant-chef-1/chef-solo-1/cookbooks/runit/libraries/default.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook runit's library file: /tmp/v
agrant-chef-1/chef-solo-1/cookbooks/runit/libraries/resource_runit_service.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook python's providers from /tmp
/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/pip.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/python/providers/pip.rb into a provider named python_pip defined
 in Chef::Provider::PythonPip
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook python's providers from /tmp
/vagrant-chef-1/chef-solo-1/cookbooks/python/providers/virtualenv.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/python/providers/virtualenv.rb into a provider named python_virt
ualenv defined in Chef::Provider::PythonVirtualenv
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook apt's providers from /tmp/va
grant-chef-1/chef-solo-1/cookbooks/apt/providers/preference.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/apt/providers/preference.rb into a provider named apt_preference
 defined in Chef::Provider::AptPreference
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook apt's providers from /tmp/va
grant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/apt/providers/repository.rb into a provider named apt_repository
 defined in Chef::Provider::AptRepository
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook yum's providers from /tmp/va
grant-chef-1/chef-solo-1/cookbooks/yum/providers/repository.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/yum/providers/repository.rb into a provider named yum_repository
 defined in Chef::Provider::YumRepository
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook yum's providers from /tmp/va
grant-chef-1/chef-solo-1/cookbooks/yum/providers/key.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/yum/providers/key.rb into a provider named yum_key defined in Ch
ef::Provider::YumKey
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook python's resources from /tmp
/vagrant-chef-1/chef-solo-1/cookbooks/python/resources/pip.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/python/resources/pip.rb into a resource named python_pip defined
 in Chef::Resource::PythonPip
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook python's resources from /tmp
/vagrant-chef-1/chef-solo-1/cookbooks/python/resources/virtualenv.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/python/resources/virtualenv.rb into a resource named python_virt
ualenv defined in Chef::Resource::PythonVirtualenv
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook apt's resources from /tmp/va
grant-chef-1/chef-solo-1/cookbooks/apt/resources/preference.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/apt/resources/preference.rb into a resource named apt_preference
 defined in Chef::Resource::AptPreference
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook apt's resources from /tmp/va
grant-chef-1/chef-solo-1/cookbooks/apt/resources/repository.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/apt/resources/repository.rb into a resource named apt_repository
 defined in Chef::Resource::AptRepository
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook yum's resources from /tmp/va
grant-chef-1/chef-solo-1/cookbooks/yum/resources/key.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/yum/resources/key.rb into a resource named yum_key defined in Ch
ef::Resource::YumKey
[2014-02-07T11:42:33+00:00] DEBUG: Loading cookbook yum's resources from /tmp/va
grant-chef-1/chef-solo-1/cookbooks/yum/resources/repository.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loaded contents of /tmp/vagrant-chef-1/chef-s
olo-1/cookbooks/yum/resources/repository.rb into a resource named yum_repository
 defined in Chef::Resource::YumRepository
[2014-02-07T11:42:33+00:00] DEBUG: Node precise64 loading cookbook python's attr
ibute file /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/attributes/default.r
b
[2014-02-07T11:42:33+00:00] DEBUG: Node precise64 loading cookbook runit's attri
bute file /tmp/vagrant-chef-1/chef-solo-1/cookbooks/runit/attributes/default.rb
[2014-02-07T11:42:33+00:00] DEBUG: Node precise64 loading cookbook apt's attribu
te file /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/attributes/default.rb
[2014-02-07T11:42:33+00:00] DEBUG: Node precise64 loading cookbook build-essenti
al's attribute file /tmp/vagrant-chef-1/chef-solo-1/cookbooks/build-essential/at
tributes/default.rb
[2014-02-07T11:42:33+00:00] DEBUG: Node precise64 loading cookbook yum's attribu
te file /tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/attributes/epel.rb
[2014-02-07T11:42:33+00:00] DEBUG: Node precise64 loading cookbook yum's attribu
te file /tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/attributes/default.rb
[2014-02-07T11:42:33+00:00] DEBUG: Node precise64 loading cookbook yum's attribu
te file /tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/attributes/remi.rb
[2014-02-07T11:42:33+00:00] DEBUG: Node precise64 loading cookbook yum's attribu
te file /tmp/vagrant-chef-1/chef-solo-1/cookbooks/yum/attributes/elrepo.rb
[2014-02-07T11:42:33+00:00] DEBUG: Loading Recipe mtsw2e::default via include_re
cipe
[2014-02-07T11:42:33+00:00] DEBUG: Found recipe default in cookbook mtsw2e
[2014-02-07T11:42:33+00:00] DEBUG: Loading Recipe apt via include_recipe
[2014-02-07T11:42:33+00:00] DEBUG: Found recipe default in cookbook apt
[2014-02-07T11:42:33+00:00] DEBUG: Loading Recipe runit via include_recipe
[2014-02-07T11:42:33+00:00] DEBUG: Found recipe default in cookbook runit
[2014-02-07T11:42:33+00:00] DEBUG: Loading Recipe python via include_recipe
[2014-02-07T11:42:33+00:00] DEBUG: Found recipe default in cookbook python
[2014-02-07T11:42:33+00:00] DEBUG: Loading Recipe python::package via include_re
cipe
[2014-02-07T11:42:33+00:00] DEBUG: Found recipe package in cookbook python
[2014-02-07T11:42:33+00:00] DEBUG: Loading Recipe python::pip via include_recipe

[2014-02-07T11:42:33+00:00] DEBUG: Found recipe pip in cookbook python
[2014-02-07T11:42:33+00:00] DEBUG: Loading Recipe python::virtualenv via include
_recipe
[2014-02-07T11:42:33+00:00] DEBUG: Found recipe virtualenv in cookbook python
[2014-02-07T11:42:33+00:00] DEBUG: I am not loading python::pip, because I have
already seen it.
[2014-02-07T11:42:33+00:00] DEBUG: Loading from cookbook_path: /tmp/vagrant-chef
-1/chef-solo-1/cookbooks
[2014-02-07T11:42:33+00:00] DEBUG: Converging node precise64
[2014-02-07T11:42:33+00:00] INFO: Processing execute[apt-get-update] action run
(apt::default line 22)
[2014-02-07T11:43:37+00:00] INFO: execute[apt-get-update] ran successfully
[2014-02-07T11:43:37+00:00] INFO: Processing execute[apt-get update] action noth
ing (apt::default line 29)
[2014-02-07T11:43:37+00:00] DEBUG: Doing nothing for execute[apt-get update]
[2014-02-07T11:43:37+00:00] INFO: Processing execute[apt-get autoremove] action
nothing (apt::default line 36)
[2014-02-07T11:43:37+00:00] DEBUG: Doing nothing for execute[apt-get autoremove]

[2014-02-07T11:43:37+00:00] INFO: Processing execute[apt-get autoclean] action n
othing (apt::default line 42)
[2014-02-07T11:43:37+00:00] DEBUG: Doing nothing for execute[apt-get autoclean]
[2014-02-07T11:43:37+00:00] INFO: Processing package[update-notifier-common] act
ion install (apt::default line 48)
[2014-02-07T11:43:37+00:00] DEBUG: package[update-notifier-common] checking pack
age status for update-notifier-common
[2014-02-07T11:43:37+00:00] DEBUG: package[update-notifier-common] current versi
on is nil
[2014-02-07T11:43:37+00:00] DEBUG: package[update-notifier-common] candidate ver
sion is 0.119ubuntu8.6
[2014-02-07T11:43:37+00:00] DEBUG: Executing apt-get -q -y install update-notifi
er-common=0.119ubuntu8.6
[2014-02-07T11:43:53+00:00] DEBUG: ---- Begin output of apt-get -q -y install up
date-notifier-common=0.119ubuntu8.6 ----
[2014-02-07T11:43:53+00:00] DEBUG: STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  patch
Suggested packages:
  diffutils-doc gksu
The following NEW packages will be installed:
  patch update-notifier-common
0 upgraded, 2 newly installed, 0 to remove and 157 not upgraded.
Need to get 303 kB of archives.
After this operation, 2,214 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main patch amd64 2.6.1-3 [80.
2 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main update-notifier-
common all 0.119ubuntu8.6 [222 kB]
Fetched 303 kB in 11s (25.6 kB/s)
Selecting previously unselected package patch.
(Reading database ... 51095 files and directories currently installed.)
Unpacking patch (from .../patch_2.6.1-3_amd64.deb) ...
Selecting previously unselected package update-notifier-common.
Unpacking update-notifier-common (from .../update-notifier-common_0.119ubuntu8.6
_all.deb) ...
Processing triggers for man-db ...
Setting up patch (2.6.1-3) ...
Setting up update-notifier-common (0.119ubuntu8.6) ...
[2014-02-07T11:43:53+00:00] DEBUG: STDERR:
[2014-02-07T11:43:53+00:00] DEBUG: ---- End output of apt-get -q -y install upda
te-notifier-common=0.119ubuntu8.6 ----
[2014-02-07T11:43:53+00:00] DEBUG: Ran apt-get -q -y install update-notifier-com
mon=0.119ubuntu8.6 returned 0
[2014-02-07T11:43:53+00:00] INFO: package[update-notifier-common] sending run ac
tion to execute[apt-get-update] (immediate)
[2014-02-07T11:43:53+00:00] INFO: Processing execute[apt-get-update] action run
(apt::default line 22)
[2014-02-07T11:44:10+00:00] INFO: execute[apt-get-update] ran successfully
[2014-02-07T11:44:10+00:00] INFO: Processing execute[apt-get-update-periodic] ac
tion run (apt::default line 52)
[2014-02-07T11:44:10+00:00] DEBUG: Skipping execute[apt-get-update-periodic] due
 to only_if ruby block
[2014-02-07T11:44:10+00:00] INFO: Processing directory[/var/cache/local] action
create (apt::default line 62)
[2014-02-07T11:44:10+00:00] INFO: directory[/var/cache/local] created directory
/var/cache/local
[2014-02-07T11:44:10+00:00] INFO: directory[/var/cache/local] owner changed to 0

[2014-02-07T11:44:10+00:00] INFO: directory[/var/cache/local] group changed to 0

[2014-02-07T11:44:10+00:00] INFO: directory[/var/cache/local] mode changed to 75
5
[2014-02-07T11:44:10+00:00] INFO: Processing directory[/var/cache/local/preseedi
ng] action create (apt::default line 62)
[2014-02-07T11:44:10+00:00] INFO: directory[/var/cache/local/preseeding] created
 directory /var/cache/local/preseeding
[2014-02-07T11:44:10+00:00] INFO: directory[/var/cache/local/preseeding] owner c
hanged to 0
[2014-02-07T11:44:10+00:00] INFO: directory[/var/cache/local/preseeding] group c
hanged to 0
[2014-02-07T11:44:10+00:00] INFO: directory[/var/cache/local/preseeding] mode ch
anged to 755
[2014-02-07T11:44:10+00:00] INFO: Processing service[runit] action nothing (runi
t::default line 20)
[2014-02-07T11:44:10+00:00] DEBUG: service[runit] falling back to process table
inspection
[2014-02-07T11:44:10+00:00] DEBUG: service[runit] attempting to match 'runit' (/
runit/) against process list
[2014-02-07T11:44:10+00:00] DEBUG: service[runit] running: false
[2014-02-07T11:44:11+00:00] DEBUG: Doing nothing for service[runit]
[2014-02-07T11:44:11+00:00] INFO: Processing execute[start-runsvdir] action noth
ing (runit::default line 24)
[2014-02-07T11:44:11+00:00] DEBUG: Doing nothing for execute[start-runsvdir]
[2014-02-07T11:44:11+00:00] INFO: Processing execute[runit-hup-init] action noth
ing (runit::default line 33)
[2014-02-07T11:44:11+00:00] DEBUG: Skipping execute[runit-hup-init] due to only_
if command `grep ^SV /etc/inittab`
[2014-02-07T11:44:11+00:00] INFO: Processing package[runit] action install (runi
t::default line 80)
[2014-02-07T11:44:11+00:00] DEBUG: package[runit] checking package status for ru
nit
[2014-02-07T11:44:11+00:00] DEBUG: package[runit] current version is nil
[2014-02-07T11:44:11+00:00] DEBUG: package[runit] candidate version is 2.1.1-6.2
ubuntu2
[2014-02-07T11:44:11+00:00] DEBUG: Creating directory /var/chef/cache/preseed
[2014-02-07T11:44:11+00:00] DEBUG: Creating directory /var/chef/cache/preseed/ru
nit
[2014-02-07T11:44:11+00:00] DEBUG: package[runit] fetching preseed file to /var/
chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu2.seed
[2014-02-07T11:44:11+00:00] DEBUG: package[runit] fetching preseed file via Temp
late resource failed, fallback to CookbookFile resource
[2014-02-07T11:44:11+00:00] INFO: Processing cookbook_file[/var/chef/cache/prese
ed/runit/runit-2.1.1-6.2ubuntu2.seed] action create (dynamically defined)
[2014-02-07T11:44:11+00:00] DEBUG: File /var/chef/cache/preseed/runit/runit-2.1.
1-6.2ubuntu2.seed does not exist, so there is no checksum to generate
[2014-02-07T11:44:11+00:00] DEBUG: cookbook_file[/var/chef/cache/preseed/runit/r
unit-2.1.1-6.2ubuntu2.seed] has new contents
[2014-02-07T11:44:11+00:00] DEBUG: cookbook_file[/var/chef/cache/preseed/runit/r
unit-2.1.1-6.2ubuntu2.seed] staging /tmp/vagrant-chef-1/chef-solo-1/cookbooks/ru
nit/files/default/runit.seed to /tmp/runit-2.1.1-6.2ubuntu2.seed20140207-1121-1s
gywm2-0
[2014-02-07T11:44:11+00:00] INFO: cookbook_file[/var/chef/cache/preseed/runit/ru
nit-2.1.1-6.2ubuntu2.seed] created file /var/chef/cache/preseed/runit/runit-2.1.
1-6.2ubuntu2.seed
[2014-02-07T11:44:11+00:00] DEBUG: package[runit] fetched preseed file to /var/c
hef/cache/preseed/runit/runit-2.1.1-6.2ubuntu2.seed
[2014-02-07T11:44:11+00:00] INFO: package[runit] pre-seeding package installatio
n instructions
[2014-02-07T11:44:11+00:00] DEBUG: Executing debconf-set-selections /var/chef/ca
che/preseed/runit/runit-2.1.1-6.2ubuntu2.seed
[2014-02-07T11:44:11+00:00] DEBUG: ---- Begin output of debconf-set-selections /
var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu2.seed ----
[2014-02-07T11:44:11+00:00] DEBUG: STDOUT:
[2014-02-07T11:44:11+00:00] DEBUG: STDERR:
[2014-02-07T11:44:11+00:00] DEBUG: ---- End output of debconf-set-selections /va
r/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu2.seed ----
[2014-02-07T11:44:11+00:00] DEBUG: Ran debconf-set-selections /var/chef/cache/pr
eseed/runit/runit-2.1.1-6.2ubuntu2.seed returned 0
[2014-02-07T11:44:11+00:00] DEBUG: Executing apt-get -q -y install runit=2.1.1-6
.2ubuntu2
[2014-02-07T11:44:17+00:00] DEBUG: ---- Begin output of apt-get -q -y install ru
nit=2.1.1-6.2ubuntu2 ----
[2014-02-07T11:44:17+00:00] DEBUG: STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  fgetty
Suggested packages:
  socklog-run
The following NEW packages will be installed:
  fgetty runit
0 upgraded, 2 newly installed, 0 to remove and 157 not upgraded.
Need to get 137 kB of archives.
After this operation, 721 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe fgetty amd64 0.6-5bu
ild1 [25.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/universe runit amd64 2.1.1-6.
2ubuntu2 [112 kB]
Fetched 137 kB in 2s (49.4 kB/s)
Selecting previously unselected package fgetty.
(Reading database ... 51266 files and directories currently installed.)
Unpacking fgetty (from .../fgetty_0.6-5build1_amd64.deb) ...
Selecting previously unselected package runit.
Unpacking runit (from .../runit_2.1.1-6.2ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up fgetty (0.6-5build1) ...
Setting up runit (2.1.1-6.2ubuntu2) ...
[2014-02-07T11:44:17+00:00] DEBUG: STDERR: grep: /etc/inittab: No such file or d
irectory
grep: /etc/inittab: No such file or directory
runsvdir start/running, process 1628
[2014-02-07T11:44:17+00:00] DEBUG: ---- End output of apt-get -q -y install runi
t=2.1.1-6.2ubuntu2 ----
[2014-02-07T11:44:17+00:00] DEBUG: Ran apt-get -q -y install runit=2.1.1-6.2ubun
tu2 returned 0
[2014-02-07T11:44:17+00:00] INFO: package[runit] sending nothing action to execu
te[start-runsvdir] (immediate)
[2014-02-07T11:44:17+00:00] INFO: Processing execute[start-runsvdir] action noth
ing (runit::default line 24)
[2014-02-07T11:44:17+00:00] DEBUG: Doing nothing for execute[start-runsvdir]
[2014-02-07T11:44:17+00:00] INFO: package[runit] sending nothing action to execu
te[runit-hup-init] (immediate)
[2014-02-07T11:44:17+00:00] INFO: Processing execute[runit-hup-init] action noth
ing (runit::default line 33)
[2014-02-07T11:44:17+00:00] DEBUG: Skipping execute[runit-hup-init] due to only_
if command `grep ^SV /etc/inittab`
[2014-02-07T11:44:17+00:00] INFO: Processing package[python] action install (pyt
hon::package line 40)
[2014-02-07T11:44:17+00:00] DEBUG: package[python] checking package status for p
ython
[2014-02-07T11:44:17+00:00] DEBUG: package[python] current version is 2.7.3-0ubu
ntu2
[2014-02-07T11:44:17+00:00] DEBUG: package[python] candidate version is 2.7.3-0u
buntu2.2
[2014-02-07T11:44:17+00:00] DEBUG: package[python] is already installed - nothin
g to do
[2014-02-07T11:44:17+00:00] INFO: Processing package[python-dev] action install
(python::package line 40)
[2014-02-07T11:44:17+00:00] DEBUG: package[python-dev] checking package status f
or python-dev
[2014-02-07T11:44:17+00:00] DEBUG: package[python-dev] current version is nil
[2014-02-07T11:44:17+00:00] DEBUG: package[python-dev] candidate version is 2.7.
3-0ubuntu2.2
[2014-02-07T11:44:17+00:00] DEBUG: Executing apt-get -q -y install python-dev=2.
7.3-0ubuntu2.2
[2014-02-07T12:00:14+00:00] DEBUG: ---- Begin output of apt-get -q -y install py
thon-dev=2.7.3-0ubuntu2.2 ----
[2014-02-07T12:00:14+00:00] DEBUG: STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libexpat1 libexpat1-dev libpython2.7 python python-minimal python2.7
  python2.7-dev python2.7-minimal
Suggested packages:
  python-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
  libexpat1-dev libpython2.7 python-dev python2.7-dev
The following packages will be upgraded:
  libexpat1 python python-minimal python2.7 python2.7-minimal
5 upgraded, 4 newly installed, 0 to remove and 152 not upgraded.
Need to get 35.7 MB of archives.
After this operation, 43.3 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7 amd64
2.7.3-0ubuntu3.4 [2,674 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7 amd64
2.7.3-0ubuntu3.4 [2,674 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-minima
l amd64 2.7.3-0ubuntu3.4 [1,739 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libexpat1 amd64
2.0.1-7.2ubuntu1.1 [131 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python-minimal a
md64 2.7.3-0ubuntu2.2 [29.7 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python amd64 2.7
.3-0ubuntu2.2 [168 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libexpat1-dev am
d64 2.0.1-7.2ubuntu1.1 [216 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpython2.7 amd
64 2.7.3-0ubuntu3.4 [1,188 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-dev am
d64 2.7.3-0ubuntu3.4 [29.5 MB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python-dev amd6
4 2.7.3-0ubuntu2.2 [1,090 B]
Fetched 34.6 MB in 15min 47s (36.5 kB/s)
(Reading database ... 51345 files and directories currently installed.)
Preparing to replace python2.7 2.7.3-0ubuntu3 (using .../python2.7_2.7.3-0ubuntu
3.4_amd64.deb) ...
Unpacking replacement python2.7 ...
Preparing to replace python2.7-minimal 2.7.3-0ubuntu3 (using .../python2.7-minim
al_2.7.3-0ubuntu3.4_amd64.deb) ...
Unpacking replacement python2.7-minimal ...
Processing triggers for man-db ...
Setting up python2.7-minimal (2.7.3-0ubuntu3.4) ...
(Reading database ... 51344 files and directories currently installed.)
Preparing to replace libexpat1 2.0.1-7.2ubuntu1 (using .../libexpat1_2.0.1-7.2ub
untu1.1_amd64.deb) ...
Unpacking replacement libexpat1 ...
Preparing to replace python-minimal 2.7.3-0ubuntu2 (using .../python-minimal_2.7
.3-0ubuntu2.2_amd64.deb) ...
Unpacking replacement python-minimal ...
Processing triggers for man-db ...
Setting up python-minimal (2.7.3-0ubuntu2.2) ...
(Reading database ... 51344 files and directories currently installed.)
Preparing to replace python 2.7.3-0ubuntu2 (using .../python_2.7.3-0ubuntu2.2_am
d64.deb) ...
Unpacking replacement python ...
Selecting previously unselected package libexpat1-dev.
Unpacking libexpat1-dev (from .../libexpat1-dev_2.0.1-7.2ubuntu1.1_amd64.deb) ..
.
Selecting previously unselected package libpython2.7.
Unpacking libpython2.7 (from .../libpython2.7_2.7.3-0ubuntu3.4_amd64.deb) ...
Selecting previously unselected package python2.7-dev.
Unpacking python2.7-dev (from .../python2.7-dev_2.7.3-0ubuntu3.4_amd64.deb) ...
Selecting previously unselected package python-dev.
Unpacking python-dev (from .../python-dev_2.7.3-0ubuntu2.2_amd64.deb) ...
Processing triggers for man-db ...
Setting up libexpat1 (2.0.1-7.2ubuntu1.1) ...
Setting up python2.7 (2.7.3-0ubuntu3.4) ...
Setting up python (2.7.3-0ubuntu2.2) ...
Setting up libexpat1-dev (2.0.1-7.2ubuntu1.1) ...
Setting up libpython2.7 (2.7.3-0ubuntu3.4) ...
Setting up python2.7-dev (2.7.3-0ubuntu3.4) ...
Setting up python-dev (2.7.3-0ubuntu2.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
[2014-02-07T12:00:14+00:00] DEBUG: STDERR:
[2014-02-07T12:00:14+00:00] DEBUG: ---- End output of apt-get -q -y install pyth
on-dev=2.7.3-0ubuntu2.2 ----
[2014-02-07T12:00:14+00:00] DEBUG: Ran apt-get -q -y install python-dev=2.7.3-0u
buntu2.2 returned 0
[2014-02-07T12:00:14+00:00] INFO: Processing remote_file[/var/chef/cache/ez_setu
p.py] action create (python::pip line 36)
[2014-02-07T12:00:14+00:00] DEBUG: remote_file[/var/chef/cache/ez_setup.py] chec
king for changes
[2014-02-07T12:00:14+00:00] DEBUG: Sending HTTP Request via GET to bitbucket.org
:443/pypa/setuptools/raw/0.8/ez_setup.py
[2014-02-07T12:00:16+00:00] DEBUG: Streaming download from https://bitbucket.org
/pypa/setuptools/raw/0.8/ez_setup.py to tempfile /tmp/chef-rest20140207-1121-3lw
zbp-0
[2014-02-07T12:00:16+00:00] DEBUG: decompressing gzip stream
[2014-02-07T12:00:16+00:00] DEBUG: remote_file[/var/chef/cache/ez_setup.py] chec
king for file existence of /var/chef/cache/ez_setup.py
[2014-02-07T12:00:16+00:00] DEBUG: remote_file[/var/chef/cache/ez_setup.py] crea
ting /var/chef/cache/ez_setup.py
[2014-02-07T12:00:17+00:00] INFO: remote_file[/var/chef/cache/ez_setup.py] updat
ed
[2014-02-07T12:00:17+00:00] INFO: remote_file[/var/chef/cache/ez_setup.py] mode
changed to 644
[2014-02-07T12:00:17+00:00] INFO: Processing remote_file[/var/chef/cache/get-pip
.py] action create (python::pip line 42)
[2014-02-07T12:00:17+00:00] DEBUG: remote_file[/var/chef/cache/get-pip.py] check
ing for changes
[2014-02-07T12:00:17+00:00] DEBUG: Sending HTTP Request via GET to raw.github.co
m:443/pypa/pip/master/contrib/get-pip.py
[2014-02-07T12:00:19+00:00] DEBUG: Streaming download from https://raw.github.co
m/pypa/pip/master/contrib/get-pip.py to tempfile /tmp/chef-rest20140207-1121-p8x
nnn-0
[2014-02-07T12:00:19+00:00] DEBUG: decompressing gzip stream
[2014-02-07T12:00:55+00:00] DEBUG: remote_file[/var/chef/cache/get-pip.py] check
ing for file existence of /var/chef/cache/get-pip.py
[2014-02-07T12:00:55+00:00] DEBUG: remote_file[/var/chef/cache/get-pip.py] creat
ing /var/chef/cache/get-pip.py
[2014-02-07T12:00:56+00:00] INFO: remote_file[/var/chef/cache/get-pip.py] update
d
[2014-02-07T12:00:56+00:00] INFO: remote_file[/var/chef/cache/get-pip.py] mode c
hanged to 644
[2014-02-07T12:00:56+00:00] INFO: Processing execute[install-setuptools] action
run (python::pip line 48)

================================================================================

Error executing action `run` on resource 'execute[install-setuptools]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of   /usr/bin/python ez_setup.py
 ----
STDOUT:
STDERR: Downloading https://pypi.python.org/packages/source/s/setuptools/setupto
ols-0.8.tar.gz
Traceback (most recent call last):
  File "ez_setup.py", line 258, in <module>
    sys.exit(main())
  File "ez_setup.py", line 254, in main
    tarball = download_setuptools(download_base=options.download_base)
  File "ez_setup.py", line 162, in download_setuptools
    src = urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  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 1215, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 110] Connection timed out>
---- End output of   /usr/bin/python ez_setup.py
 ----
Ran   /usr/bin/python ez_setup.py
 returned 1

Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/recipes/pip.rb

 47:
 48: execute "install-setuptools" do
 49:   cwd Chef::Config[:file_cache_path]
 50:   command <<-EOF
 51:   #{node['python']['binary']} ez_setup.py
 52:   EOF
 53:   not_if "#{node['python']['binary']} -c 'import setuptools'"
 54: end
 55:

Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/python/recipes/pip.rb:48
:in `from_file'

execute("install-setuptools") do
  retry_delay 2
  returns 0
  command "  /usr/bin/python ez_setup.py\n"
  retries 0
  recipe_name "pip"
  cwd "/var/chef/cache"
  action "run"
  cookbook_name :python
  backup 5
  not_if "/usr/bin/python -c 'import setuptools'"
end

[2014-02-07T12:03:03+00:00] DEBUG: Re-raising exception: Mixlib::ShellOut::Shell
CommandFailed - execute[install-setuptools] (python::pip line 48) had an error:
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but rec
eived '1'
---- Begin output of   /usr/bin/python ez_setup.py
 ----
STDOUT:
STDERR: Downloading https://pypi.python.org/packages/source/s/setuptools/setupto
ols-0.8.tar.gz
Traceback (most recent call last):
  File "ez_setup.py", line 258, in <module>
    sys.exit(main())
  File "ez_setup.py", line 254, in main
    tarball = download_setuptools(download_base=options.download_base)
  File "ez_setup.py", line 162, in download_setuptools
    src = urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  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 1215, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 110] Connection timed out>
---- End output of   /usr/bin/python ez_setup.py
 ----
Ran   /usr/bin/python ez_setup.py
 returned 1
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shello
ut.rb:248:in `invalid!'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shel
lout.rb:234:in `error!'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/sh
ell_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:in `action_run'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/wh
y_run.rb:63:in `call'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/wh
y_run.rb:63:in `converge!'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/wh
y_run.rb:61:in `each'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/wh
y_run.rb:61:in `converge!'
  /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:in `run_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.r
b:49:in `run_action'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.r
b:81:in `converge'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.r
b:81:in `each'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.r
b:81:in `converge'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource
_collection.rb:94:in `execute_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:in `call_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:in `iterate'
  /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:in `execute_each_resource'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.r
b:80:in `converge'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.r
b:378:in `converge'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.r
b:420:in `do_run'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.r
b:176:in `run'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/applicat
ion/solo.rb:230:in `run_application'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/applicat
ion/solo.rb:218:in `loop'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/applicat
ion/solo.rb:218:in `run_application'
  /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/applicat
ion.rb:70:in `run'
  /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-02-07T12:03:03+00:00] ERROR: Running exception handlers
[2014-02-07T12:03:03+00:00] ERROR: Exception handlers complete
[2014-02-07T12:03:03+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-sta
cktrace.out
[2014-02-07T12:03:03+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFailed: execute
[install-setuptools] (python::pip line 48) had an error: Mixlib::ShellOut::Shell
CommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of   /usr/bin/python ez_setup.py
 ----
STDOUT:
STDERR: Downloading https://pypi.python.org/packages/source/s/setuptools/setupto
ols-0.8.tar.gz
Traceback (most recent call last):
  File "ez_setup.py", line 258, in <module>
    sys.exit(main())
  File "ez_setup.py", line 254, in main
    tarball = download_setuptools(download_base=options.download_base)
  File "ez_setup.py", line 162, in download_setuptools
    src = urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  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 1215, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 110] Connection timed out>
---- End output of   /usr/bin/python ez_setup.py
 ----
Ran   /usr/bin/python ez_setup.py
 returned 1
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shello
ut.rb:248:in `invalid!'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shello
ut.rb:234:in `error!'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/shel
l_out.rb:36:in `shell_out!'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider/e
xecute.rb:62:in `action_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:in `converge!'
/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:in `converge!'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.r
b:136:in `converge'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/provider.r
b:125:in `run_action'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource.r
b:593:in `run_action'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/runner.rb:
49:in `run_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:in `each'
/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_c
ollection.rb:94:in `execute_each_resource'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_c
ollection/stepable_iterator.rb:116:in `call'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_c
ollection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_c
ollection/stepable_iterator.rb:85:in `step'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_c
ollection/stepable_iterator.rb:104:in `iterate'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/resource_c
ollection/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_c
ollection.rb:92:in `execute_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:in `converge'
/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:in `run'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/applicatio
n/solo.rb:230:in `run_application'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/applicatio
n/solo.rb:218:in `loop'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/applicatio
n/solo.rb:218:in `run_application'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/applicatio
n.rb:70:in `run'
/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-02-07T12:03:03+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute
[install-setuptools] (python::pip line 48) had an error: Mixlib::ShellOut::Shell
CommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of   /usr/bin/python ez_setup.py
 ----
STDOUT:
STDERR: Downloading https://pypi.python.org/packages/source/s/setuptools/setupto
ols-0.8.tar.gz
Traceback (most recent call last):
  File "ez_setup.py", line 258, in <module>
    sys.exit(main())
  File "ez_setup.py", line 254, in main
    tarball = download_setuptools(download_base=options.download_base)
  File "ez_setup.py", line 162, in download_setuptools
    src = urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  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 1215, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 110] Connection timed out>
---- End output of   /usr/bin/python ez_setup.py
 ----
Ran   /usr/bin/python ez_setup.py
 returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

FC@FC-PC ~/Mining-the-Social-Web-2nd-Edition (master)
$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

155 packages can be updated.
70 updates are security updates.

Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@precise64:~$ sudo /usr/bin/python /usr/local/bin/ipython notebook --ip=
0.0.0.0 --notebook-dir=/vagrant/ipynb --port=8888 --pylab=inline --no-browser
/usr/bin/python: can't open file '/usr/local/bin/ipython': [Errno 2] No such fil
e or directory
vagrant@precise64:~$
ptwobrussell commented 10 years ago

@FengChong - Sorry that you're experiencing troubles. Rest assured that I'm here to help you the best I can. From the looks of it, the Chef configuration scripts are unable to successfully fetch the following URL: https://pypi.python.org/packages/source/s/setuptools/setupto ols-0.8.tar.gz

This file is one of the essential Python setup tools that is first installed and then used to install many other Python dependencies, so it's no wonder that nothing is running when you manually try to start IPython Notebook, because neither IPython Notebook nor other dependencies ever installed.

However, if I paste that URL in my browser, I can retrieve it, so I know that the file is hosted, and this suggests that there could be a network-related problem -- perhaps a proxy setting. A few questions that would help me to better serve you:

I'm standing by to help you. Let me know about these things, and I'll do all that I can to get you moving along as quickly as possible.

FengChong commented 10 years ago

Thanks for your rapid response! 1) I'm in Beijing of China, at home, with a 25Mbps ISP service. I was also wondering if it was caused by network performance. You may know the annoying GreatFireWall of China. -_-! But the URL you listed above can be access manually. The file has been downloaded rapidly. 2) Following your suggestion in comments to others, I tried to use "vagrant provision" several times a moments ago. Unfortunately, it doesn't work yet. Some part of the results are posted as following. 3) Shall I do more "vagrant provision" repeatedly? 4) I plan to go to my office in university tomorrow and have a try on my desktop computer. The Internet-access there will be by CERNET (China Edu and Research NET). Thanks again~

[2014-02-07T14:31:33+00:00] FATAL: Mixlib::ShellOut::CommandTimeout: python_pip[ https://fuxi.googlecode.com/hg/layercake-python.tar.bz2](mtsw2e::default line 5 1) had an error: Mixlib::ShellOut::CommandTimeout: command timed out: ---- Begin output of pip install https://fuxi.googlecode.com/hg/layercake-pytho n.tar.bz2 ---- STDOUT: Downloading/unpacking https://fuxi.googlecode.com/hg/layercake-python.ta r.bz2 STDERR: ---- End output of pip install https://fuxi.googlecode.com/hg/layercake-python. tar.bz2 ----

Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.

FC@FC-PC ~/Mining-the-Social-Web-2nd-Edition (master) $ vagrant ssh Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)

149 packages can be updated. 66 updates are security updates.

Welcome to your Vagrant-built virtual machine. Last login: Fri Feb 7 12:07:45 2014 from 10.0.2.2 vagrant@precise64:~$ sudo /usr/bin/python /usr/local/bin/ipython notebook --ip= 0.0.0.0 --notebook-dir=/vagrant/ipynb --port=8888 --pylab=inline --no-browser /usr/bin/python: can't open file '/usr/local/bin/ipython': [Errno 2] No such fil e or directory vagrant@precise64:~$ vagrant provision The program 'vagrant' is currently not installed. You can install it by typing:

sudo apt-get install vagrant vagrant@precise64:~$ logout Connection to 127.0.0.1 closed.

ptwobrussell commented 10 years ago

Hmm, your script seems to have progressed beyond the previous errors, so repeated "vagrant provision" commands may actually work so long as you see that the error output is changing each time.

If you are savvy with network profiling tools, I'd be really interested to know what the stats look like while the download is happening. e.g. is there just a really long delay with the connection and a fast download speed, or is there a really slow download speed because the "great firewall" is inspecting all of the packets?

Another option we could consider is that I could make available a Vagrant box that has all of the software pre-installed. It would be a ~1GB download for you. If you would strongly prefer that option, let me know...but I understand if you'd like to get this all working on your own so that you have a repeatable process to deal with these types of issues for a more general purpose (and repeatable) configuration.

FengChong commented 10 years ago

1) The current status is as following.No ipython and no notebook in browser. But it seems that the virtual machine is OK.

I found "vagrant provision" always fails on

"ConnectionError: HTTPSConnectionPool(host='fuxi.googlecode.com', port=443): Max retries exceeded with url: /hg/layercake-python.tar.bz2 (Caused by <class 'socket.error'>: [Errno 101] Network is unreachable)"

C:\Users\FC\Mining-the-Social-Web-2nd-Edition>vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Clearing any previously set forwarded ports... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] -- 8888 => 8888 (adapter 1) [default] -- 5000 => 5000 (adapter 1) [default] -- 27017 => 27017 (adapter 1) [default] -- 27018 => 27018 (adapter 1) [default] -- 27019 => 27019 (adapter 1) [default] -- 28017 => 28017 (adapter 1) [default] Running 'pre-boot' VM customizations... [default] Booting VM... [default] Waiting for machine to boot. This may take a few minutes... DL is deprecated, please use Fiddle [default] Machine booted and ready! [default] The guest additions on this VM do not match the installed version of VirtualBox! In most cases this is fine, but in rare cases it can prevent things such as shared folders from working properly. If you see shared folder errors, please make sure the guest additions within the virtual machine match the version of VirtualBox you have installed on your host and reload your VM.

Guest Additions Version: 4.2.0 VirtualBox Version: 4.3 [default] Mounting shared folders... [default] -- /vagrant [default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks [default] VM already provisioned. Run vagrant provision or use --provision t o force it

C:\Users\FC\Mining-the-Social-Web-2nd-Edition>vagrant ssh Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)

149 packages can be updated. 66 updates are security updates.

Welcome to your Vagrant-built virtual machine. Last login: Fri Feb 7 23:33:38 2014 from 10.0.2.2 vagrant@precise64:~$ sudo /usr/bin/python /usr/local/bin/ipython notebook --ip= 0.0.0.0 --notebook-dir=/vagrant/ipynb --port=8888 --pylab=inline --no-browser /usr/bin/python: can't open file '/usr/local/bin/ipython': [Errno 2] No such fil e or directory vagrant@precise64:~$ logout Connection to 127.0.0.1 closed.

C:\Users\FC\Mining-the-Social-Web-2nd-Edition>vagrant provision [default] Running provisioner: chef_solo... DL is deprecated, please use Fiddle Generating chef JSON and uploading... Running chef-solo... stdin: is not a tty [2014-02-08T00:14:14+00:00] INFO: * Chef 10.14.2 * [2014-02-08T00:14:14+00:00] DEBUG: Building node object for precise64 ***** middle part is omitted by FengChong** resp = self.send(prep, _send_kwargs) File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/sessions.py" , line 486, in send r = adapter.send(request, _kwargs) File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/adapters.py" , line 378, in send raise ConnectionError(e) ConnectionError: HTTPSConnectionPool(host='fuxi.googlecode.com', port=443): Max retries exceeded with url: /hg/layercake-python.tar.bz2 (Caused by <class 'socke t.error'>: [Errno 101] Network is unreachable)

Storing debug log for failure in /root/.pip/pip.log STDERR: ---- End output of pip install https://fuxi.googlecode.com/hg/layercake-python. tar.bz2 ---- Ran pip install https://fuxi.googlecode.com/hg/layercake-python.tar.bz2 returne d 2 Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.

2) I'm not good at net profiling tools.Sorry for non-stats. What I know is that GFW is sensitive for some websites. e.g. I could not access twitter, facebook and youtube if I don't use proxy tools.But for most other world-wide websites, it is rather fast and fluent.

3) I manually download the precise64.box file because of net failure. (By using download tools through mirror-site, it only take <2mins to downlad this >300M file. But the download in command line just keeps fail. ) Then I edited the vagrantfile as override.vm.box_url = "\precise64.box" it seems work well. I wish I didn't make a mistake.

4) I will have a try today using CERNET. But if it doesn't work yet, I wish you could provide an all-in-one vagrant box for me if it doesn't bother you. Thanks again! It is really encouraging to get your suggenstions and help.

ptwobrussell commented 10 years ago

Happy to provide a download of a preconfigured VM for you if your CERNET connection doesn't work out. However, as just a heads up, you will still need to be able to access the social web APIs such as api.twitter.com and so forth. Will CERNET or proxies let you do that?

I'm sorry that I be of any help here on the firewall issues, but one workaround I've used in the past with readers is to recommend Wakari, which is a hosted IPython Notebook service with servers based in the U.S. Using Amazon servers is another option that is quite inexpensive if it comes to that.

On Feb 7, 2014, at 6:58 PM, FengChong notifications@github.com wrote:

1) The current status is as following.No ipython and no notebook in browser. But it seems that the virtual machine is OK.

I found "vagrant provision" always fails on "ConnectionError: HTTPSConnectionPool(host='fuxi.googlecode.com', port=443): Max retries exceeded with url: /hg/layercake-python.tar.bz2 (Caused by : [Errno 101] Network is unreachable)"

C:\Users\FC\Mining-the-Social-Web-2nd-Edition>vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Clearing any previously set forwarded ports... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] -- 8888 => 8888 (adapter 1) [default] -- 5000 => 5000 (adapter 1) [default] -- 27017 => 27017 (adapter 1) [default] -- 27018 => 27018 (adapter 1) [default] -- 27019 => 27019 (adapter 1) [default] -- 28017 => 28017 (adapter 1) [default] Running 'pre-boot' VM customizations... [default] Booting VM... [default] Waiting for machine to boot. This may take a few minutes... DL is deprecated, please use Fiddle [default] Machine booted and ready! [default] The guest additions on this VM do not match the installed version of VirtualBox! In most cases this is fine, but in rare cases it can prevent things such as shared folders from working properly. If you see shared folder errors, please make sure the guest additions within the virtual machine match the version of VirtualBox you have installed on your host and reload your VM.

Guest Additions Version: 4.2.0 VirtualBox Version: 4.3 [default] Mounting shared folders... [default] -- /vagrant [default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks [default] VM already provisioned. Run vagrant provision or use --provision t o force it

C:\Users\FC\Mining-the-Social-Web-2nd-Edition>vagrant ssh Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)

Documentation: https://help.ubuntu.com/ 149 packages can be updated. 66 updates are security updates.

Welcome to your Vagrant-built virtual machine. Last login: Fri Feb 7 23:33:38 2014 from 10.0.2.2 vagrant@precise64:~$ sudo /usr/bin/python /usr/local/bin/ipython notebook --ip= 0.0.0.0 --notebook-dir=/vagrant/ipynb --port=8888 --pylab=inline --no-browser /usr/bin/python: can't open file '/usr/local/bin/ipython': [Errno 2] No such fil e or directory vagrant@precise64:~$ logout Connection to 127.0.0.1 closed.

C:\Users\FC\Mining-the-Social-Web-2nd-Edition>vagrant provision [default] Running provisioner: chef_solo... DL is deprecated, please use Fiddle Generating chef JSON and uploading... Running chef-solo... stdin: is not a tty [2014-02-08T00:14:14+00:00] INFO: * Chef 10.14.2 * [2014-02-08T00:14:14+00:00] DEBUG: Building node object for precise64 ***** middle part is omitted by FengChong** resp = self.send(prep, _send_kwargs) File "/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/sessions.py" , line 486, in send r = adapter.send(request, _kwargs) File "/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/adapters.py" , line 378, in send raise ConnectionError(e) ConnectionError: HTTPSConnectionPool(host='fuxi.googlecode.com', port=443): Max retries exceeded with url: /hg/layercake-python.tar.bz2 (Caused by t.error'>: [Errno 101] Network is unreachable)

Storing debug log for failure in /root/.pip/pip.log STDERR: ---- End output of pip install https://fuxi.googlecode.com/hg/layercake-python. tar.bz2 ---- Ran pip install https://fuxi.googlecode.com/hg/layercake-python.tar.bz2 returne d 2 Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.

2) I'm not good at net profiling tools.Sorry for non-stats. What I know is that GFW is sensitive for some websites. e.g. I could not access twitter, facebook and youtube if I don't use proxy tools.But for most other world-wide websites, it is rather fast and fluent.

3) I manually download the precise64.box file because of net failure. (By using download tools through mirror-site, it only take 300M file. But the download in command line just keeps fail. ) Then I edited the vagrantfile as override.vm.box_url = "\precise64.box" it seems work well. I wish I didn't make a mistake.

4) I will have a try today using CERNET. But if it doesn't work yet, I wish you could provide an all-in-one vagrant box for me if it doesn't bother you. Thanks again! It is really encouraging to get your suggenstions and help.

— Reply to this email directly or view it on GitHub.

FengChong commented 10 years ago

1) I have got the virtual machine installed on my desktop computer correctedly and smoothly by CERNET connection. Thanks a lot! And I'm considering if I can create a box file and put it on my desktoop computer at home or other computer that have no CERNET connection. I don't know if it's feasible in a few commands? 2) The access of social web APIs are a problem for all Chinese readers of your book. Wakari is a hopeful suggestion and I will have a try. Anyway, we have native social websites and APIs here in China, such as renren, Weibo, wechat, etc. Although the functions and codes may be different, the principles and methods in you book will still be great helpful.

ptwobrussell commented 10 years ago

That's great news!

Take a look at Vagrant's documentation for "exporting a box". It will allow you to take your provisioned Virtualbox image and export it as a "base image" that is exactly what you are looking for. Very easy to do...

Please keep me in the loop for your work on social websites in China. Very interested to see if you work up any code you could share out.

On Feb 8, 2014, at 9:16 PM, FengChong notifications@github.com wrote:

1) I have got the virtual machine installed on my desktop computer correctedly and smoothly by CERNET connection. Thanks a lot! And I'm considering if I can create a box file and put it on my desktoop computer at home or other computer that have no CERNET connection. I don't know if it's feasible in a few commands? 2) The access of social web APIs are a problem for all Chinese readers of your book. Wakari is a hopeful suggestion and I will have a try. Anyway, we have native social websites and APIs here in China, such as renren, Weibo, wechat, etc. Although the functions and codes may be different, the principles and methods in you book will still be great helpful.

— Reply to this email directly or view it on GitHub.

FengChong commented 10 years ago

Thanks a lot. Sure, I would be very glad to share my experiences on Chinese social websites.

ptwobrussell commented 10 years ago

This is a link that you'll need to reference in exporting (packaging) your configured box: https://docs.vagrantup.com/v2/cli/package.html

I'm sure you're savvy enough to figure out ways to use proxies to hit the social web APIs, but in case you need a helpful list as a starting point, this might be useful: http://www.freeproxylists.net/cn.html

I've also been considering setting up a proxy and doing some general purpose research on creative ways to deal with the "great firewall of China" for my readers (as I have now interacted with a few people from China experience troubles at this point.)

Best of luck to you.

LINGLUOJUN commented 8 years ago

Today,when try do deploy the virtual machine, I meet a problem amost like this . so can you give me a hand .I'm sorry to tell you that I'm a university student in ChongQing

LINGLUOJUN commented 8 years ago

我也是最近在看这本书遇到类似的问题,不知道如何将解决发现你说是在中国就问问看能不能帮到我