Cannot find datafeed for task – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.17

Briefly, this error occurs when Elasticsearch is unable to locate the datafeed associated with a specific task. This could be due to the datafeed being deleted, renamed, or moved. To resolve this issue, you can try the following: 1) Verify the existence and correct naming of the datafeed. 2) Check if the datafeed has been moved to a different index or cluster. 3) If the datafeed was deleted, you may need to recreate it. 4) Ensure that the task is correctly linked to the datafeed.

This guide will help you check for common problems that cause the log ” cannot find datafeed for task [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: task, plugin.

Log Context

Log “cannot find datafeed for task [{}]” classname is MlConfigMigrator.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    // replace with the updated params
                    taskBuilder.removeTask(datafeedTask.getId());
                    taskBuilder.addTask(datafeedTask.getId(); datafeedTask.getTaskName(); updatedParams; datafeedTask.getAssignment());
                } else {
                    logger.error("cannot find datafeed for task [{}]"; datafeedTask.getId());
                }
            }
        }

        return taskBuilder.build();

 

 [ratemypost]