• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Starting iptables Fails with Error “Another app is currently holding the xtables lock”

by admin

The Problem

Updating the package iptables to iptables-1.4.7-16.0.3.el6, the service fails to start after a stop.

# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
# service iptables start
iptables: Applying firewall rules: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
[FAILED] 

The Solution

Iptables is being lock, and is creating this behavior. The reason of the lock:

iptables-restore < /etc/sysconfig/iptables

deadlocks itself.

This is a code bug of package iptables, as workaround there are 2 options:

Option 1. Downgrade the iptables to the previous version:

# yum downgrade iptables ip6tables

Option 2. RedHat development team provides a fix (At this moment the fix has not been released)

1. Download the fix.
2. Before applying the fix read the file README with the instructions.
3. If any enquiry or issue about this patch, please contact global RedHat support line.

Filed Under: CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. DHCP configuration file /etc/dhcp/dhcpd.conf explained
  2. Examples of using tcpdump command for network troubleshooting
  3. How to install and configure MariaDB in CentOS / RHEL 7
  4. How to Increase the File Download Size Limit in Apache
  5. What is Soft Links and Hard Links in Linux File System
  6. 14 Useful “cat” Command Examples in Linux
  7. How To Change Pacemaker Cluster Heartbeat Timeout In CentOS/RHEL 7
  8. How to Test Port [TCP/UDP] Connectivity from a Linux Server
  9. CentOS / RHEL 7 : How to set default target (default runlevel)
  10. CentOS / RHEL 6,7 : Why the files in /tmp directory gets deleted periodically

You May Also Like

Primary Sidebar

Recent Posts

  • What are /dev/zero and /dev/null files in Linux
  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright