Created
September 14, 2017 19:19
-
-
Save aishahalim/d3e7fcf5c631d866e5fcbe6ee9862fec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tar_extract[http://mirrors.peers.community/mirrors/gnu/tar/tar-latest.tar.gz] @name: "http://mirrors.peers.community/mirrors/gnu/tar/tar-latest.tar.gz" @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :extract, :extract_local] @action: [:extract] @updated: false @updated_by_last_action: false @source_line: "(irb#1):10:in `irb_binding'" @guard_interpreter: nil @default_guard_interpreter: :default @elapsed_time: 0.039815171 @declared_type: :tar_extract @cookbook_name: nil @recipe_name: nil @target_dir: "/opt" @creates: "/opt/tar-1.29" @source: "http://mirrors.peers.community/mirrors/gnu/tar/tar-latest.tar.gz"> | |
From: /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/mixin/shell_out.rb @ line 132 Chef::Mixin::ShellOut#shell_out_with_systems_locale!: | |
130: def shell_out_with_systems_locale!(*command_args) | |
131: binding.pry | |
=> 132: cmd = shell_out_with_systems_locale(*command_args) | |
133: cmd.error! | |
134: cmd | |
135: end | |
[1] pry(#<Chef::Provider::Execute>)> p command_args | |
["tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ", {:timeout=>3600, :returns=>0, :user=>"root", :group=>"root", :cwd=>"/opt", :log_level=>:info, :log_tag=>"execute[extract /tmp/kitchen/cache/tar-latest.tar.gz]"}] | |
=> ["tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ", {:timeout=>3600, :returns=>0, :user=>"root", :group=>"root", :cwd=>"/opt", :log_level=>:info, :log_tag=>"execute[extract /tmp/kitchen/cache/tar-latest.tar.gz]"}] | |
[2] pry(#<Chef::Provider::Execute>)> continue | |
From: /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/mixin/shell_out.rb @ line 173 Chef::Mixin::ShellOut#shell_out_command: | |
171: def shell_out_command(*command_args) | |
172: binding.pry | |
=> 173: cmd = Mixlib::ShellOut.new(*command_args) | |
174: cmd.live_stream ||= io_for_live_stream | |
175: cmd.run_command | |
176: cmd | |
177: end | |
[1] pry(#<Chef::Provider::Execute>)> continue | |
================================================================================ | |
Error executing action `run` on resource 'execute[extract /tmp/kitchen/cache/tar-latest.tar.gz]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '' | |
---- Begin output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
STDOUT: | |
STDERR: | |
---- End output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
Ran tar xfz /tmp/kitchen/cache/tar-latest.tar.gz returned | |
Resource Declaration: | |
--------------------- | |
# In /tmp/kitchen/cache/cookbooks/tar/resources/extract.rb | |
83: execute "extract #{local_archive}" do | |
84: flags = if r.tar_flags.is_a?(String) | |
85: r.tar_flags | |
86: else | |
87: r.tar_flags.join(' ') | |
88: end | |
89: command "tar xf#{r.compress_char} #{local_archive.shellescape} #{flags}" | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/kitchen/cache/cookbooks/tar/resources/extract.rb:83:in `extract_tar' | |
execute("extract /tmp/kitchen/cache/tar-latest.tar.gz") do | |
action [:run] | |
default_guard_interpreter :execute | |
command "tar xfz /tmp/kitchen/cache/tar-latest.tar.gz " | |
backup 5 | |
creates "/opt/tar-1.29" | |
cwd "/opt" | |
group "root" | |
returns 0 | |
user "root" | |
declared_type :execute | |
domain nil | |
end | |
System Info: | |
------------ | |
chef_version=13.3.42 | |
platform=debian | |
platform_version=8.0 | |
ruby=ruby 2.3.4p301 (2017-03-30 revision 58214) [armv6l-linux-eabihf] | |
program_name=/usr/local/bin/chef-shell | |
executable=/usr/local/lib/ruby/2.3.0/irb/ext/multi-irb.rb | |
From: /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/mixin/shell_out.rb @ line 132 Chef::Mixin::ShellOut#shell_out_with_systems_locale!: | |
130: def shell_out_with_systems_locale!(*command_args) | |
131: binding.pry | |
=> 132: cmd = shell_out_with_systems_locale(*command_args) | |
133: cmd.error! | |
134: cmd | |
135: end | |
[1] pry(#<Chef::Provider::Execute>)> continue | |
From: /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/mixin/shell_out.rb @ line 173 Chef::Mixin::ShellOut#shell_out_command: | |
171: def shell_out_command(*command_args) | |
172: binding.pry | |
=> 173: cmd = Mixlib::ShellOut.new(*command_args) | |
174: cmd.live_stream ||= io_for_live_stream | |
175: cmd.run_command | |
176: cmd | |
177: end | |
[1] pry(#<Chef::Provider::Execute>)> continue | |
================================================================================ | |
Error executing action `run` on resource 'execute[extract /tmp/kitchen/cache/tar-latest.tar.gz]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '' | |
---- Begin output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
STDOUT: | |
STDERR: | |
---- End output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
Ran tar xfz /tmp/kitchen/cache/tar-latest.tar.gz returned | |
Resource Declaration: | |
--------------------- | |
# In /tmp/kitchen/cache/cookbooks/tar/resources/extract.rb | |
83: execute "extract #{local_archive}" do | |
84: flags = if r.tar_flags.is_a?(String) | |
85: r.tar_flags | |
86: else | |
87: r.tar_flags.join(' ') | |
88: end | |
89: command "tar xf#{r.compress_char} #{local_archive.shellescape} #{flags}" | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/kitchen/cache/cookbooks/tar/resources/extract.rb:83:in `extract_tar' | |
execute("extract /tmp/kitchen/cache/tar-latest.tar.gz") do | |
action [:run] | |
default_guard_interpreter :execute | |
command "tar xfz /tmp/kitchen/cache/tar-latest.tar.gz " | |
backup 5 | |
creates "/opt/tar-1.29" | |
cwd "/opt" | |
group "root" | |
returns 0 | |
user "root" | |
declared_type :execute | |
domain nil | |
end | |
System Info: | |
------------ | |
chef_version=13.3.42 | |
platform=debian | |
platform_version=8.0 | |
ruby=ruby 2.3.4p301 (2017-03-30 revision 58214) [armv6l-linux-eabihf] | |
program_name=/usr/local/bin/chef-shell | |
executable=/usr/local/lib/ruby/2.3.0/irb/ext/multi-irb.rb | |
================================================================================ | |
Error executing action `extract` on resource 'tar_extract[http://mirrors.peers.community/mirrors/gnu/tar/tar-latest.tar.gz]' | |
================================================================================ | |
Chef::Exceptions::MultipleFailures | |
---------------------------------- | |
Multiple failures occurred: | |
* Mixlib::ShellOut::ShellCommandFailed occurred in chef run: execute[extract /tmp/kitchen/cache/tar-latest.tar.gz] (/tmp/kitchen/cache/cookbooks/tar/resources/extract.rb line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '' | |
---- Begin output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
STDOUT: | |
STDERR: | |
---- End output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
Ran tar xfz /tmp/kitchen/cache/tar-latest.tar.gz returned | |
* Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: execute[extract /tmp/kitchen/cache/tar-latest.tar.gz] (/tmp/kitchen/cache/cookbooks/tar/resources/extract.rb line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '' | |
---- Begin output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
STDOUT: | |
STDERR: | |
---- End output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
Ran tar xfz /tmp/kitchen/cache/tar-latest.tar.gz returned | |
Resource Declaration: | |
--------------------- | |
Compiled Resource: | |
------------------ | |
# Declared in (irb#1):10:in `irb_binding' | |
tar_extract("http://mirrors.peers.community/mirrors/gnu/tar/tar-latest.tar.gz") do | |
action [:extract] | |
updated true | |
updated_by_last_action true | |
default_guard_interpreter :default | |
declared_type :tar_extract | |
target_dir "/opt" | |
creates "/opt/tar-1.29" | |
source "http://mirrors.peers.community/mirrors/gnu/tar/tar-latest.tar.gz" | |
end | |
System Info: | |
------------ | |
chef_version=13.3.42 | |
platform=debian | |
platform_version=8.0 | |
ruby=ruby 2.3.4p301 (2017-03-30 revision 58214) [armv6l-linux-eabihf] | |
program_name=/usr/local/bin/chef-shell | |
executable=/usr/local/lib/ruby/2.3.0/irb/ext/multi-irb.rb | |
Chef::Exceptions::MultipleFailures: tar_extract[http://mirrors.peers.community/mirrors/gnu/tar/tar-latest.tar.gz] ((irb#1) line 10) had an error: Chef::Exceptions::MultipleFailures: Multiple failures occurred: | |
* Mixlib::ShellOut::ShellCommandFailed occurred in chef run: execute[extract /tmp/kitchen/cache/tar-latest.tar.gz] (/tmp/kitchen/cache/cookbooks/tar/resources/extract.rb line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '' | |
---- Begin output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
STDOUT: | |
STDERR: | |
---- End output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
Ran tar xfz /tmp/kitchen/cache/tar-latest.tar.gz returned | |
* Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: execute[extract /tmp/kitchen/cache/tar-latest.tar.gz] (/tmp/kitchen/cache/cookbooks/tar/resources/extract.rb line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '' | |
---- Begin output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
STDOUT: | |
STDERR: | |
---- End output of tar xfz /tmp/kitchen/cache/tar-latest.tar.gz ---- | |
Ran tar xfz /tmp/kitchen/cache/tar-latest.tar.gz returned | |
from /usr/local/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout.rb:293:in `invalid!' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout.rb:280:in `error!' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/mixin/shell_out.rb:133:in `shell_out_with_systems_locale!' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/provider/execute.rb:58:in `block in action_run' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/mixin/why_run.rb:52:in `add_action' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/provider.rb:202:in `converge_by' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/provider/execute.rb:56:in `action_run' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/provider.rb:171:in `run_action' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/resource.rb:591:in `run_action' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/runner.rb:70:in `run_action' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/runner.rb:98:in `block (2 levels) in converge' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/runner.rb:98:in `each' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/runner.rb:98:in `block in converge' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/runner.rb:97:in `converge' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/provider.rb:212:in `compile_and_converge_action' | |
from (eval):2:in `action_extract' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/provider.rb:171:in `run_action' | |
from /usr/local/lib/ruby/gems/2.3.0/gems/chef-13.3.42/lib/chef/resource.rb:591:in `run_action' | |
from (irb#1):17 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment