Skip to content

Instantly share code, notes, and snippets.

@2GMon
Last active August 29, 2015 14:00
Show Gist options
  • Save 2GMon/82eede3c0960597f5af5 to your computer and use it in GitHub Desktop.
Save 2GMon/82eede3c0960597f5af5 to your computer and use it in GitHub Desktop.
RaspberryPiにchef-rbenvでruby 2.1.1をインストールしようとしたときに出たエラー
Recipe: rbenv::system
* rbenv_ruby[2.1.1] (system) action installRecipe: <Dynamically Defined Resource>
* rbenv_script[rbenv install 2.1.1 (system)] action run * script[rbenv install 2.1.1 (system)] action run
================================================================================
Error executing action `run` on resource 'script[rbenv install 2.1.1 (system)]'
================================================================================
Mixlib::ShellOut::CommandTimeout
--------------------------------
Command timed out after 3600s:
Command execeded allowed execution time, process terminated
---- Begin output of "bash" "/tmp/chef-script20140501-4375-1rm2huh" ----
STDOUT:
STDERR: Downloading yaml-0.1.6.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e
Installing yaml-0.1.6...
Installed yaml-0.1.6 to /usr/local/rbenv/versions/2.1.1
Downloading ruby-2.1.1.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2
Installing ruby-2.1.1...
---- End output of "bash" "/tmp/chef-script20140501-4375-1rm2huh" ----
Ran "bash" "/tmp/chef-script20140501-4375-1rm2huh" returned
Cookbook Trace:
---------------
/home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb:70:in `perform_install'
/home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb:33:in `block in class_from_file'
Resource Declaration:
---------------------
# In /home/pi/chef-solo/cookbooks-2/rbenv/providers/script.rb
38: script new_resource.name do
39: interpreter "bash"
40: code script_code
41: user new_resource.user if new_resource.user
42: creates new_resource.creates if new_resource.creates
43: cwd new_resource.cwd if new_resource.cwd
44: group new_resource.group if new_resource.group
45: path new_resource.path if new_resource.path
46: returns new_resource.returns if new_resource.returns
47: timeout new_resource.timeout if new_resource.timeout
48: umask new_resource.umask if new_resource.umask
49: environment(script_environment)
50: end
51: end
Compiled Resource:
------------------
# Declared in /home/pi/chef-solo/cookbooks-2/rbenv/providers/script.rb:38:in `run_script'
script("rbenv install 2.1.1 (system)") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "\"bash\" \"/tmp/chef-script20140501-4375-1rm2huh\""
backup 5
environment {"RBENV_ROOT"=>"/usr/local/rbenv"}
returns [0]
code "export RBENV_ROOT=\"/usr/local/rbenv\"\nexport PATH=\"${RBENV_ROOT}/bin:$PATH\"\neval \"$(rbenv init -)\"\nrbenv install 2.1.1\n"
interpreter "bash"
cookbook_name :rbenv
end
================================================================================
Error executing action `run` on resource 'rbenv_script[rbenv install 2.1.1 (system)]'
================================================================================
Mixlib::ShellOut::CommandTimeout
--------------------------------
script[rbenv install 2.1.1 (system)] (/home/pi/chef-solo/cookbooks-2/rbenv/providers/script.rb line 38) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 3600s:
Command execeded allowed execution time, process terminated
---- Begin output of "bash" "/tmp/chef-script20140501-4375-1rm2huh" ----
STDOUT:
STDERR: Downloading yaml-0.1.6.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e
Installing yaml-0.1.6...
Installed yaml-0.1.6 to /usr/local/rbenv/versions/2.1.1
Downloading ruby-2.1.1.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2
Installing ruby-2.1.1...
---- End output of "bash" "/tmp/chef-script20140501-4375-1rm2huh" ----
Ran "bash" "/tmp/chef-script20140501-4375-1rm2huh" returned
Cookbook Trace:
---------------
/home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb:70:in `perform_install'
/home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb:33:in `block in class_from_file'
Resource Declaration:
---------------------
# In /home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb
63: rbenv_script "#{command} #{which_rbenv}" do
64: code command
65: user rbenv_user if rbenv_user
66: root_path rbenv_prefix if rbenv_prefix
67: environment rbenv_env if rbenv_env
68:
69: action :nothing
70: end.run_action(:run)
71:
72: Chef::Log.debug("#{new_resource} build time was " +
73: "#{(Time.now - install_start)/60.0} minutes")
74:
75: new_resource.updated_by_last_action(true)
76: end
77: end
Compiled Resource:
------------------
# Declared in /home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb:63:in `perform_install'
rbenv_script("rbenv install 2.1.1 (system)") do
action [:nothing]
retries 0
retry_delay 2
guard_interpreter :default
cookbook_name :rbenv
code "rbenv install 2.1.1"
returns [0]
end
================================================================================
Error executing action `install` on resource 'rbenv_ruby[2.1.1] (system)'
================================================================================
Mixlib::ShellOut::CommandTimeout
--------------------------------
rbenv_script[rbenv install 2.1.1 (system)] (/home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb line 63) had an error: Mixlib::ShellOut::CommandTimeout: script[rbenv install 2.1.1 (system)] (/home/pi/chef-solo/cookbooks-2/rbenv/providers/script.rb line 38) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 3600s:
Command execeded allowed execution time, process terminated
---- Begin output of "bash" "/tmp/chef-script20140501-4375-1rm2huh" ----
STDOUT:
STDERR: Downloading yaml-0.1.6.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e
Installing yaml-0.1.6...
Installed yaml-0.1.6 to /usr/local/rbenv/versions/2.1.1
Downloading ruby-2.1.1.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2
Installing ruby-2.1.1...
---- End output of "bash" "/tmp/chef-script20140501-4375-1rm2huh" ----
Ran "bash" "/tmp/chef-script20140501-4375-1rm2huh" returned
Cookbook Trace:
---------------
/home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb:70:in `perform_install'
/home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb:33:in `block in class_from_file'
Resource Declaration:
---------------------
# In /home/pi/chef-solo/cookbooks-2/rbenv/recipes/system.rb
36: rbenv_ruby rubie
37: end
Compiled Resource:
------------------
# Declared in /home/pi/chef-solo/cookbooks-2/rbenv/recipes/system.rb:36:in `block in from_file'
rbenv_ruby("2.1.1") do
action :install
retries 0
retry_delay 2
guard_interpreter :default
cookbook_name :rbenv
recipe_name "system"
definition "2.1.1"
end
Running handlers:
[2014-05-01T13:31:55+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-05-01T13:31:55+00:00] ERROR: Exception handlers complete
[2014-05-01T13:31:55+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 7 resources updated in 3831.614520122 seconds
[2014-05-01T13:31:56+00:00] ERROR: rbenv_ruby[2.1.1] (system) (rbenv::system line 36) had an error: Mixlib::ShellOut::CommandTimeout: rbenv_script[rbenv install 2.1.1 (system)] (/home/pi/chef-solo/cookbooks-2/rbenv/providers/ruby.rb line 63) had an error: Mixlib::ShellOut::CommandTimeout: script[rbenv install 2.1.1 (system)] (/home/pi/chef-solo/cookbooks-2/rbenv/providers/script.rb line 38) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 3600s:
Command execeded allowed execution time, process terminated
---- Begin output of "bash" "/tmp/chef-script20140501-4375-1rm2huh" ----
STDOUT:
STDERR: Downloading yaml-0.1.6.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e
Installing yaml-0.1.6...
Installed yaml-0.1.6 to /usr/local/rbenv/versions/2.1.1
Downloading ruby-2.1.1.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2
Installing ruby-2.1.1...
---- End output of "bash" "/tmp/chef-script20140501-4375-1rm2huh" ----
Ran "bash" "/tmp/chef-script20140501-4375-1rm2huh" returned
[2014-05-01T13:31:56+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment