Config is missing but task exists Attempting to delete tasks and stop process – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.16-8.9

Briefly, this error occurs when Elasticsearch is trying to execute a task but the necessary configuration file is missing. This could be due to accidental deletion or misplacement of the file. To resolve this issue, you can: 1) Restore the missing configuration file from a backup, if available. 2) Recreate the configuration file with the correct settings. 3) Check the file path in the system to ensure Elasticsearch is looking in the correct location. 4) Ensure that the user running Elasticsearch has the necessary permissions to access the configuration file.

This guide will help you check for common problems that cause the log ” [{}] config is missing but task exists. Attempting to delete tasks and stop process ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, task.

Log Context

Log “[{}] config is missing but task exists. Attempting to delete tasks and stop process” classname is TransportDeleteJobAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        ActionListener jobExistsListener = ActionListener.wrap(
            response -> deleteDatafeedIfNecessary(request; datafeedDeleteListener);
            e -> {
                if (request.isForce()
                    && MlTasks.getJobTask(request.getJobId(); state.getMetadata().custom(PersistentTasksCustomMetadata.TYPE)) != null) {
                    logger.info("[{}] config is missing but task exists. Attempting to delete tasks and stop process"; request.getJobId());
                    forceDeleteJob(parentTaskClient; request; state; finalListener);
                } else {
                    finalListener.onFailure(e);
                }
            }

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?