Deployment Architecture

6.2.1 : Search head cluster getting stuck on restart


I've noticed this on 2 different versions of 6.2 now.

When I do a apply bundle from a deploy instance the very first search head in the cluster to do its shutdown won't do it cleanly and requires manual intervention.

It appears that mongodb doesn't stop for some reason.

From mongod.log

2015-01-16T03:46:33.024Z [initandlisten] exception in initAndListen: 10310 Unable to lock file: /opt/splunk/var/lib/splunk/kvstore/mongo/mongod.lock. Is a mongod instance already running?, terminating
2015-01-16T03:46:33.024Z [initandlisten] dbexit:
2015-01-16T03:46:33.024Z [initandlisten] shutdown: going to close listening sockets...
2015-01-16T03:46:33.024Z [initandlisten] shutdown: going to flush diaglog...
2015-01-16T03:46:33.024Z [initandlisten] shutdown: going to close sockets...
2015-01-16T03:46:33.024Z [initandlisten] shutdown: waiting for fs preallocator...
2015-01-16T03:46:33.024Z [initandlisten] shutdown: lock for final commit...
2015-01-16T03:46:33.025Z [initandlisten] shutdown: final commit...
2015-01-16T03:46:33.025Z [initandlisten] shutdown: closing all files...
2015-01-16T03:46:33.025Z [initandlisten] closeAllFiles() finished
2015-01-16T03:46:33.025Z [initandlisten] dbexit: really exiting now

This would "seem" that its been stopped, but it hasn't.

Checking for the lock file I see that it is still there and contains a valid process id for a still "running" mongo process.

Killing it and manually restarting splunk resolves this.

0 Karma

Splunk Employee
Splunk Employee

Make sure that only Apps compatible with SHC are installed.

Any outcome from the ticket?

0 Karma


Yeah the devs have been able to replicate the issue.

There is a fix that will be included in a later release, version and date yet to be determined.

I've been offered to test it prior to release as its holding up a significant volume of other architecture work so hopefully it fixes my issue.

0 Karma


Did you tried v6.2.2 to see if it was fixed there? I'm also having same issue

0 Karma


Support has told me it should be in the next release in less than a month.

0 Karma


has there been side effects of killing the mongodb process manually - search results not found etc, when the sh's come back up? I am in the process of implementing sh clustering.

0 Karma


I can replicate this pretty constantly now.

Replication factor of 3 with 5 members. At least 2 of these members will get stuck when an apply-bundle is performed.

I've guessing a ticket will need to be logged. 😞

0 Karma
Get Updates on the Splunk Community!

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...

Understanding Generative AI Techniques and Their Application in Cybersecurity

Watch On-Demand Artificial intelligence is the talk of the town nowadays, with industries of all kinds ...