Failed to send error response for action clear sc and request – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.3-1.3

Briefly, this error occurs when Elasticsearch is unable to send an error response for a specific action, in this case, ‘clear sc’. This could be due to network issues, insufficient permissions, or a problem with the Elasticsearch cluster itself. To resolve this issue, you can check the network connectivity, ensure the user has the necessary permissions, or investigate the health of the Elasticsearch cluster. Additionally, checking the Elasticsearch logs for more detailed error messages can help identify the root cause of the problem.

This guide will help you check for common problems that cause the log ” Failed to send error response for action [clear_sc] and request [ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: request, response, scroll and search.

Log Context

Log “Failed to send error response for action [clear_sc] and request [” classname is TransportClearScrollAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

Override
                public void onFailure(Throwable e) {
                    try {
                        channel.sendResponse(e);
                    } catch (Exception e1) {
                        logger.warn("Failed to send error response for action [clear_sc] and request [" + request + "]"; e1);
                    }
                }
            });
        }

 

 [ratemypost]