Deployment Architecture

Why do I receive error "Search process did not exit cleanly, exit_code=255, description="exited with code 255"" and how to resolve it?

Jamaal
Engager

When I attempt to run a basic search, index=foo sourcetype=*, and any other search, I get the following error message:

[splunk-idx-e1] Search process did not exit cleanly, exit_code=255, description="exited with code 255". Please look in search.log for this peer in the Job Inspector for more info.
[splunk-idx-e2] Search process did not exit cleanly, exit_code=255, description="exited with code 255". Please look in search.log for this peer in the Job Inspector for more info.
[splunk-idx-w1] Search process did not exit cleanly, exit_code=255, description="exited with code 255". Please look in search.log for this peer in the Job Inspector for more info.
[splunk-idx-w2] Search process did not exit cleanly, exit_code=255, description="exited with code 255". Please look in search.log for this peer in the Job Inspector for more info.

My Splunk setup consist of a Master Node(Cluster Master), Search Head, and 4 Indexers.
When I click the inspect job and then click search.log I don't see any error messages. I was able to perform this search with no problems prior to today. Can anyone help with this issue? I can provide more information if needed.

0 Karma

jcrabb_splunk
Splunk Employee
Splunk Employee

Typically when we see this, its a problem with knowledge bundle replication from the SH to the Indexer. I'd make sure that you aren't out of disk space and that there isn't an app with a very long name causing a character limit issue. You can look at messages logged for "DistBundleRestHandler" and if you don't see anything obvious, set "DistBundleRestHandler" into DEBUG.

Jacob
Sr. Technical Support Engineer

Harishma
Communicator

Hi @jcrabb ,

Im facing the same issue. I get errors when I run the search from a particular app but the error isnt reported when I run the query from Search app.

•[ddd] Search process did not exit cleanly, exit_code=255, description="exited with code 255". Please look in search.log for this peer in the Job Inspector for more info.
•[ccc] Search process did not exit cleanly, exit_code=255, description="exited with code 255". Please look in search.log for this peer in the Job Inspector for more info.
•[bbb] Search process did not exit cleanly, exit_code=255, description="exited with code 255". Please look in search.log for this peer in the Job Inspector for more info.
•[aaa] Search process did not exit cleanly, exit_code=255, description="exited with code 255". Please look in search.log for this peer in the Job Inspector for more info.

Can you please let me know how to set "DistBundleRestHandler" into DEBUG. Is it just starting splunk in debug mode?

0 Karma

jkat54
SplunkTrust
SplunkTrust

Settings -> server settings -> logging

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...