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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. How to Enable X11 Forwarding on CentOS/RHEL 5,6,7
  2. How to Enable Thin LVM Automatic Extension
  3. How to install CentOS / RHEL 7 on RAID Partition
  4. CentOS / RHEL : How to mount filesystems using UUID
  5. How to schedule Jobs with Cron in Linux
  6. How to Create a GFS2 Formatted Cluster File System
  7. How to Setup SSH keys for “passwordless” SSH Login on CentOS/RHEL
  8. Linux / UNIX : How to create primary partition using fdisk
  9. 18 Practical tcpdump Command Examples – A Network Sniffer Tool Primer
  10. How to configure NTP server and client in CentOS / RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ACPI in CentOS/RHEL 7
  • How to Use real-time query to access data on a physical standby database
  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary