<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk will not start and is waiting for config lock in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105235#M1276</link>
    <description>&lt;P&gt;In our case (6.2 Enterprise)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tail -f splunkd.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;suggested there was a lock on mongo.db&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rm /opt/splunk/var/mongo/mongod.lock
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;did the job allowed the httpd process to start.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2015 02:28:50 GMT</pubDate>
    <dc:creator>agrachevBLK</dc:creator>
    <dc:date>2015-08-13T02:28:50Z</dc:date>
    <item>
      <title>Splunk will not start and is waiting for config lock</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105228#M1269</link>
      <description>&lt;P&gt;My Splunk instance crashed and it won't restart with this error in &lt;CODE&gt;splunkd.log&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-30-2013 18:29:05.094 +0000 WARN loader - Sleep 10 sec, waiting for config lock. 
01-30-2013 18:29:15.094 +0000 WARN loader - Sleep 10 sec, waiting for config lock. 
01-30-2013 18:29:25.094 +0000 WARN loader - Sleep 10 sec, waiting for config lock. 
01-30-2013 18:29:35.094 +0000 WARN loader - Sleep 10 sec, waiting for config lock. 
01-30-2013 18:29:45.094 +0000 WARN loader - Sleep 10 sec, waiting for config lock. 
01-30-2013 18:29:55.094 +0000 WARN loader - Sleep 10 sec, waiting for config lock. 
01-30-2013 18:30:05.094 +0000 FATAL loader - Timed out waiting for config lock; see splunkd_stderr.log for details. Exiting.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jan 2013 19:14:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105228#M1269</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2013-01-30T19:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk will not start and is waiting for config lock</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105229#M1270</link>
      <description>&lt;P&gt;It's probably a locked file; to remove it: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Stop splunk&lt;/LI&gt;
&lt;LI&gt;Remove any locked files&lt;/LI&gt;
&lt;LI&gt;Use this command &lt;CODE&gt;./splunk clean locks&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Or manually remove the file (&lt;CODE&gt;*.pid&lt;/CODE&gt; or &lt;CODE&gt;*.lock&lt;/CODE&gt;) in &lt;CODE&gt;$SPLUNK_HOME\var\run\splunk\&lt;/CODE&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Start splunk and verify in the &lt;CODE&gt;splunkd.log&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 30 Jan 2013 19:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105229#M1270</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-01-30T19:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk will not start and is waiting for config lock</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105230#M1271</link>
      <description>&lt;P&gt;yep, I had a one of those in the folder, once removed it started.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 19:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105230#M1271</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2013-01-30T19:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk will not start and is waiting for config lock</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105231#M1272</link>
      <description>&lt;P&gt;I had a different error message, but the solution was the same:&lt;BR /&gt;
Operation "ospath_fopen" failed in /opt/splunk/p4/splunk/branches/5.0.2/src/libzero/conf-mutator-locking.c:254, conf_mutator_lock(); Permission denied&lt;BR /&gt;
Operation "ospath_fopen" failed in /opt/splunk/p4/splunk/branches/5.0.2/src/libzero/conf-mutator-locking.c:319, conf_mutator_unlock(); Permission denied&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105231#M1272</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2020-09-28T13:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk will not start and is waiting for config lock</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105232#M1273</link>
      <description>&lt;P&gt;you can use command ./splunk clean locks  as an alternative to step2.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 18:21:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105232#M1273</guid>
      <dc:creator>jdastmalchi_spl</dc:creator>
      <dc:date>2013-11-15T18:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk will not start and is waiting for config lock</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105233#M1274</link>
      <description>&lt;P&gt;works for linux and windows&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 18:15:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105233#M1274</guid>
      <dc:creator>w531t4</dc:creator>
      <dc:date>2013-11-18T18:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk will not start and is waiting for config lock</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105234#M1275</link>
      <description>&lt;P&gt;For this "lock", it is actually a file called &lt;CODE&gt;$SPLUNK_HOME/var/run/splunk/conf-mutator.pid&lt;/CODE&gt;, which really means something like "conf-modifying-program.pid".  &lt;/P&gt;

&lt;P&gt;Starting in 5.0, splunk.exe commands that modify the conf files determine whether splunkd is running or not, and ask running splunkd to modify the files for them if it is up.  If it is not up, the splunk.exe command line program makes the changes itself.   This file exists to synchronize the two possibilities, so we don't have files being edited by two programs at once.&lt;/P&gt;

&lt;P&gt;The trouble comes in when something crashes, and leaves a stale &lt;CODE&gt;conf-mutator.pid&lt;/CODE&gt; file lying around.  If there is no program running anymore with that process number, it should cause no trouble (though in very early versions of 5.0.x we would detect &lt;EM&gt;threads&lt;/EM&gt; with that number).  Alternatively you can have a problem where that process number &lt;EM&gt;is&lt;/EM&gt; running, but it's not splunk.exe or splunkd.exe.  This latter problem is fixed in Splunk 6.1.3 and later.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 15:31:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105234#M1275</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-11-14T15:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk will not start and is waiting for config lock</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105235#M1276</link>
      <description>&lt;P&gt;In our case (6.2 Enterprise)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tail -f splunkd.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;suggested there was a lock on mongo.db&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rm /opt/splunk/var/mongo/mongod.lock
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;did the job allowed the httpd process to start.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 02:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105235#M1276</guid>
      <dc:creator>agrachevBLK</dc:creator>
      <dc:date>2015-08-13T02:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk will not start and is waiting for config lock</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105236#M1277</link>
      <description>&lt;P&gt;Very belatedly, the so-called "config lock" is $SPLUNK_HOME/var/run/splunk/conf-mutator.pid.  &lt;/P&gt;

&lt;P&gt;Simple version: 6.2.x+ should only show this behavior when it is correct for it to occur.&lt;/P&gt;

&lt;P&gt;This message can occur correctly if you somehow try to run two splunkd programs at once, or if you have a splunk program running which is changing conf files while trying to start splunkd.&lt;/P&gt;

&lt;P&gt;In versions before 6.1.3, the checking for running-pid was sloppy and would consider non-splunk programs to be valid owners of the pid.&lt;/P&gt;

&lt;P&gt;If you are on such an old version, or if you see this on a new version and believe the behavior is working incorrectly:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Please cat the conf-mutator.pid file and check to see if any process is running with that process ID, to give us a hint about the problem to fix it (the behavior where early 6.1.x considers any program to be a match is the known bug).&lt;/LI&gt;
&lt;LI&gt;Check to see whether you have any splunk or splunkd programs running.  If there none around, and the splunk install is not on a shared filesystem, it should be safe to delete it.  (6.2.x+ should do this automatically.)&lt;/LI&gt;
&lt;LI&gt;On 6.2.x, for extra credit, please try: splunk cmd pid_check.sh conf-mutator pid_number_from_file .  Then echo $? to see the exit code. &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If not, it is safe to delete&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-will-not-start-and-is-waiting-for-config-lock/m-p/105236#M1277</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2020-09-29T08:29:33Z</dc:date>
    </item>
  </channel>
</rss>

