-
-
Save tpitale/6486b47018ae2e07930c to your computer and use it in GitHub Desktop.
iptables persistent chef restart failing log
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
[2014-08-16T09:48:00-04:00] INFO: Processing service[iptables-persistent] action restart (dynamically defined) | |
================================================================================ | |
Error executing action `restart` on resource 'service[iptables-persistent]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '1' | |
---- Begin output of /etc/init.d/iptables-persistent restart ---- | |
STDOUT: * Loading iptables rules... | |
* IPv4... | |
* IPv6... | |
...fail! | |
STDERR: | |
---- End output of /etc/init.d/iptables-persistent restart ---- | |
Ran /etc/init.d/iptables-persistent restart returned 1 | |
Cookbook Trace: | |
--------------- | |
/etc/chef/cookbooks/iptables-ng/libraries/restart_service.rb:37:in `block in restart_service' | |
/etc/chef/cookbooks/iptables-ng/libraries/restart_service.rb:34:in `tap' | |
/etc/chef/cookbooks/iptables-ng/libraries/restart_service.rb:34:in `restart_service' | |
/etc/chef/cookbooks/iptables-ng/recipes/manage.rb:45:in `block (3 levels) in from_file' | |
/etc/chef/cookbooks/iptables-ng/recipes/manage.rb:44:in `each' | |
/etc/chef/cookbooks/iptables-ng/recipes/manage.rb:44:in `block (2 levels) in from_file' | |
Compiled Resource: | |
------------------ | |
# Declared in | |
service("iptables-persistent") do | |
action "nothing" | |
supports {:status=>true, :restart=>true} | |
retries 0 | |
retry_delay 2 | |
guard_interpreter :default | |
service_name "iptables-persistent" | |
enabled true | |
pattern "iptables-persistent" | |
end | |
================================================================================ | |
Error executing action `create` on resource 'ruby_block[restart_iptables]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
service[iptables-persistent] (dynamically defined) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' | |
---- Begin output of /etc/init.d/iptables-persistent restart ---- | |
STDOUT: * Loading iptables rules... | |
* IPv4... | |
* IPv6... | |
...fail! | |
STDERR: | |
---- End output of /etc/init.d/iptables-persistent restart ---- | |
Ran /etc/init.d/iptables-persistent restart returned 1 | |
Cookbook Trace: | |
--------------- | |
/etc/chef/cookbooks/iptables-ng/libraries/restart_service.rb:37:in `block in restart_service' | |
/etc/chef/cookbooks/iptables-ng/libraries/restart_service.rb:34:in `tap' | |
/etc/chef/cookbooks/iptables-ng/libraries/restart_service.rb:34:in `restart_service' | |
/etc/chef/cookbooks/iptables-ng/recipes/manage.rb:45:in `block (3 levels) in from_file' | |
/etc/chef/cookbooks/iptables-ng/recipes/manage.rb:44:in `each' | |
/etc/chef/cookbooks/iptables-ng/recipes/manage.rb:44:in `block (2 levels) in from_file' | |
Resource Declaration: | |
--------------------- | |
# In /etc/chef/cookbooks/iptables-ng/recipes/manage.rb | |
38: ruby_block 'restart_iptables' do | |
39: block do | |
40: class Chef::Resource::RubyBlock | |
41: include Iptables::Manage | |
42: end | |
43: | |
44: Array(node['iptables-ng']['enabled_ip_versions']).each do |ip_version| | |
45: restart_service(ip_version) | |
46: end | |
47: end | |
48: | |
Compiled Resource: | |
------------------ | |
# Declared in /etc/chef/cookbooks/iptables-ng/recipes/manage.rb:38:in `from_file' | |
ruby_block("restart_iptables") do | |
action [:nothing] | |
retries 0 | |
retry_delay 2 | |
guard_interpreter :default | |
block_name "restart_iptables" | |
cookbook_name :"iptables-ng" | |
recipe_name "manage" | |
block #<Proc:0x0000000361b3b0@/etc/chef/cookbooks/iptables-ng/recipes/manage.rb:39> | |
end | |
[2014-08-16T09:48:00-04:00] ERROR: Running exception handlers | |
[2014-08-16T09:48:00-04:00] ERROR: Exception handlers complete | |
[2014-08-16T09:48:00-04:00] FATAL: Stacktrace dumped to /etc/chef/chef-stacktrace.out | |
[2014-08-16T09:48:00-04:00] ERROR: ruby_block[restart_iptables] (iptables-ng::manage line 38) had an error: Mixlib::ShellOut::ShellCommandFailed: service[iptables-persistent] (dynamically defined) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' | |
---- Begin output of /etc/init.d/iptables-persistent restart ---- | |
STDOUT: * Loading iptables rules... | |
* IPv4... | |
* IPv6... | |
...fail! | |
STDERR: | |
---- End output of /etc/init.d/iptables-persistent restart ---- | |
Ran /etc/init.d/iptables-persistent restart returned 1 | |
[2014-08-16T09:48:00-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
+ exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment