Mapr-Installer: Error: "Lock file /opt/mapr/installer/data/mapr-installer.lock exists. Exiting..."

Document created by apatil Employee on Jul 6, 2017Last modified by hdevanath on Jul 6, 2017
Version 8Show Document
  • View in full screen mode

Problem Description

 

Sometimes, when re-trying installation/upgrade with mapr-installer fails due to below error in /opt/mapr/installer/logs/mapr-installer.log log file:

 

2017-06-01 18:25:26,612 install 120 [INFO]: 
2017-06-01 18:25:26,613 install 121 [INFO]: ================================
2017-06-01 18:25:26,613 install 122 [INFO]: Installer Version: 1.5.58 started
2017-06-01 18:25:26,613 common 188 [ERROR]: Lock file /opt/mapr/installer/data/mapr-installer.lock exists. Exiting...

 

Root-cause:

The most common cause of this is issue is when re-trying installation after a failed attempt where ansible commands are still running on some of the nodes in the cluster.

 

Solution:
To address this issue, rather than directly deleting the lock file manually, perform the following steps:
       1) On every node in cluster find the ansible processes that are still running:

         # ps -eaf | grep -i ansible

        2)  kill those processes listed in step-1 on that node

         # ps -eaf | grep -i ansible | grep -v grep | awk '{print $2}' | xargs kill -15

        3) Clean any yum transactions:  

         # yum-complete-transaction --cleanup-only

        4) Retry the install process using installer

Attachments

    Outcomes