しまかぜメモ

@kinunoriの雑なメモ

chefでpackageリソースを使った時に実行先でproxy設定してなかった

こんなエラーになるみたい。わかりにくいなぁ。

================================================================================
    Error executing action `install` on resource 'package[httpd]'
    ================================================================================
    
    Chef::Exceptions::Exec
    ----------------------
     returned 1, expected 0
    
    Resource Declaration:
    ---------------------
    # In /root/chef-solo/cookbooks-2/test_cook/recipes/default.rb
    
     11: package "httpd" do
     12:    action :install
     13:    version "2.2.15-31.el6.centos"
     14: end
     15: 
    
    Compiled Resource:
    ------------------
    # Declared in /root/chef-solo/cookbooks-2/test_cook/recipes/default.rb:11:in `from_file'
    
    package("httpd") do
      action [:install]
      retries 0
      retry_delay 2
      guard_interpreter :default
      package_name "httpd"
      version "2.2.15-31.el6.centos"
      timeout 900
      cookbook_name :test_cook
      recipe_name "default"
    end
    

Running handlers:
[2014-08-20T11:14:04+09:00] ERROR: Running exception handlers
Running handlers complete
[2014-08-20T11:14:04+09:00] ERROR: Exception handlers complete
[2014-08-20T11:14:04+09:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 5.043073754 seconds
[2014-08-20T11:14:04+09:00] ERROR: package[httpd] (test_cook::default line 11) had an error: Chef::Exceptions::Exec:  returned 1, expected 0
[2014-08-20T11:14:04+09:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.
Shutdown completed cleanly