Skip to content

Instantly share code, notes, and snippets.

@akeem
Created July 11, 2013 14:29
Show Gist options
  • Save akeem/5975950 to your computer and use it in GitHub Desktop.
Save akeem/5975950 to your computer and use it in GitHub Desktop.
provisioning_7_11_2013
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/etc/opt/app/renderer-development/config] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development/shared] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development/releases] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/var/run/app/renderer-development] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development/shared/.bundle] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development/shared/system] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development/shared/tmp] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/var/log/app/renderer-development] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development/current] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing link[/opt/app/renderer-development/shared/config] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 89)
[2013-07-11T10:23:12-04:00] INFO: Processing link[/opt/app/renderer-development/shared/log] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 98)
[2013-07-11T10:23:12-04:00] INFO: Processing link[/opt/app/renderer-development/shared/tmp/pids] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 106)
[2013-07-11T10:23:12-04:00] INFO: Processing template[/etc/opt/app/renderer-development/config.json] action create (vagrant::renderer line 35)
[2013-07-11T10:23:12-04:00] INFO: Processing link[/opt/app/renderer-development/current] action create (vagrant::renderer line 55)
[2013-07-11T10:23:12-04:00] INFO: Processing link[/opt/app/renderer-development/current/air-renderer/config.json] action create (vagrant::renderer line 59)
[2013-07-11T10:23:12-04:00] INFO: Processing bash[Install air-renderer bundled gems] action run (vagrant::renderer line 64)
[2013-07-11T10:23:13-04:00] INFO: bash[Install air-renderer bundled gems] ran successfully
[2013-07-11T10:23:13-04:00] INFO: Processing bash[Install create bundled gems] action run (vagrant::renderer line 64)
[2013-07-11T10:23:13-04:00] INFO: bash[Install create bundled gems] ran successfully
[2013-07-11T10:23:13-04:00] INFO: Processing bash[Download sprouts] action run (vagrant::renderer line 76)
================================================================================
Error executing action `run` on resource 'bash[Download sprouts]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20130711-24975-1qhv44r" ----
STDOUT:
STDERR: rake aborted!
cannot load such file -- iconv/iconv.so
(See full trace by running task with --trace)
---- End output of "bash" "/tmp/chef-script20130711-24975-1qhv44r" ----
Ran "bash" "/tmp/chef-script20130711-24975-1qhv44r" returned 1
Resource Declaration:
---------------------
# In /srv/chef/file_store/cookbooks/vagrant/recipes/renderer.rb
76: bash 'Download sprouts' do
77: user user
78: cwd "#{node.base_apps_dir}/renderer-#{environment}/current/air-renderer"
79: code <<-EOH
80: export HOME=#{home}
81: source ~/.bashrc
82: /usr/bin/bundle exec rake download_sprouts
83: EOH
84: end
85:
86: # Install the sprouts linux binaries
87: install_sprouts do
88: owner 'paperless'
89: group 'paperless'
90: end
91:
92: # Compile the flash components
93: bash 'Compile renderer AIR application' do
94: user user
95: cwd "#{node.base_apps_dir}/renderer-#{environment}/current/air-renderer"
96: code <<-EOH
97: export HOME=#{home}
98: source ~/.bashrc
99: /usr/bin/bundle exec rake compile
100: EOH
101: only_if { compile_renderer }
102: end
103:
104: bash 'Compile front-end create application' do
105: user user
106: cwd "#{node.base_apps_dir}/renderer-#{environment}/current/create"
107: code <<-EOH
108: export HOME=#{home}
109: source ~/.bashrc
110: /usr/bin/bundle exec rake deploy
111: EOH
112: only_if { compile_create }
113: end
114:
115: # Symlink the front-end application into the rails app
116: directory "/opt/app/paperless-#{environment}/current/public/swf/"
117:
118: link "/opt/app/paperless-#{environment}/current/public/swf/create.swf" do
119: to "/opt/app/renderer-#{environment}/current/create/bin/flash/Main.swf"
120: end
121:
122: # install Upstart renderer script
123: template "/etc/init/renderer.conf" do
124: source "init/renderer.conf.erb"
125: owner 'root'
126: group 'root'
127: mode 0644
128: variables(
Compiled Resource:
------------------
# Declared in /srv/chef/file_store/cookbooks/vagrant/recipes/renderer.rb:76:in `from_file'
bash("Download sprouts") do
action "run"
retries 0
retry_delay 2
command "\"bash\" \"/tmp/chef-script20130711-24975-1qhv44r\""
backup 5
cwd "/opt/app/renderer-development/current/air-renderer"
returns 0
user "paperless"
code " export HOME=/home/paperless\n source ~/.bashrc\n /usr/bin/bundle exec rake download_sprouts\n"
interpreter "bash"
cookbook_name "vagrant"
recipe_name "renderer"
end
[2013-07-11T10:23:14-04:00] ERROR: Running exception handlers
[2013-07-11T10:23:14-04:00] FATAL: Saving node information to /srv/chef/file_store/failed-run-data.json
[2013-07-11T10:23:14-04:00] ERROR: Statsd: SocketError getaddrinfo: Name or service not known
[2013-07-11T10:23:14-04:00] ERROR: Statsd: SocketError getaddrinfo: Name or service not known
[2013-07-11T10:23:14-04:00] ERROR: Statsd: SocketError getaddrinfo: Name or service not known
[2013-07-11T10:23:14-04:00] ERROR: Statsd: SocketError getaddrinfo: Name or service not known
[2013-07-11T10:23:14-04:00] ERROR: Statsd: SocketError getaddrinfo: Name or service not known
[2013-07-11T10:23:14-04:00] INFO: Gist of your error available at https://gist.github.com/fa993c3cbf7352ac2a8c
[2013-07-11T10:23:15-04:00] ERROR: Exception handlers complete
[2013-07-11T10:23:15-04:00] FATAL: Stacktrace dumped to /srv/chef/file_store/chef-stacktrace.out
[2013-07-11T10:23:15-04:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[Download sprouts] (vagrant::renderer line 76) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20130711-24975-1qhv44r" ----
STDOUT:
STDERR: rake aborted!
cannot load such file -- iconv/iconv.so
(See full trace by running task with --trace)
---- End output of "bash" "/tmp/chef-script20130711-24975-1qhv44r" ----
Ran "bash" "/tmp/chef-script20130711-24975-1qhv44r" returned 1
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
chef-client -c /tmp/vagrant-chef-1/client.rb -j /tmp/vagrant-chef-1/dna.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment