• 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. aa-disable: command not found
  2. CentOS / RHEL 6 : How to configure kdump
  3. Linux OS Service ‘kdump’
  4. Disk Encryption Using Network Based Key Services (NBDE) on CentOS/RHEL 8
  5. How to Mask or Unmask a Service in CentOS/RHEL 7 and 8
  6. daemonize Command Examples in Linux
  7. How to Map Static IP to your Domain (with GoDaddy example)
  8. How to Create/Format/Extend Virtual Data Optimizer(VDO) Volumes using Cockpit Web Console in CentOS/RHEL 8
  9. aptitude: command not found
  10. How to disable a specific command for a specific user in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright