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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. How to Delete unnecessary Entry in /etc/shadow
  2. How to Debug systemd boot process in CentOS/RHEL 7 and 8
  3. nmcli radio Command Examples in Linux
  4. rc-service: command not found
  5. lynis Command Examples in Linux
  6. acpi Command Examples in Linux
  7. ansible-vault – Encrypts & decrypts values, data structures and files within Ansible projects
  8. losetup Command Examples in Linux
  9. ansible-playbook – Execute tasks defined in playbook on remote machines over SSH
  10. “ntpq -pn” command returns with error “Name or service not known”

You May Also Like

Primary Sidebar

Recent Posts

  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright