Imperva Cyber Community

communities_1.jpg
 View Only
Expand all | Collapse all

Cannot lock the mutex "impcfg". Seems like another "impcfg" is running. (exit status: 7)

  • 1.  Cannot lock the mutex "impcfg". Seems like another "impcfg" is running. (exit status: 7)

    Posted 10 days ago

    Hi Community,

    I am experiencing an issue while trying to run the impcfg command on our Imperva system via SSH (Putty). When executing the command, I receive the following error:

    Another impcfg session is currently active on this machine.
     
          Press <Enter> to continue:
     
    Cannot lock the mutex "impcfg".  Seems like another "impcfg" is running. (exit status: 7)




    This suggests that another instance of impcfg is already running, but I am unable to determine which session has it open. I attempted to list active SSH sessions using the who command and found the following active users.





    #On-PremisesWAF(formerlySecuresphere)

    ------------------------------
    Kovit Thakral
    Solution Consultant
    ------------------------------


  • 2.  RE: Cannot lock the mutex "impcfg". Seems like another "impcfg" is running. (exit status: 7)

    Posted 8 days ago
    Edited by Gerard Auld 8 days ago
    Hi Kovit - You can log out of admin and stay in as root.
    Then use the following commands:
    
    1. killall -9 impcfg
    2. impctl mutex delete --mutex-name=impcfg --force

    Note: The first command will kill any existing impcfg sessions, the second commands unlocks it so it can be relaunched.



    ------------------------------
    Gerard Auld
    ------------------------------