No known trained model with model id – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.6-8.9

Briefly, this error occurs when Elasticsearch tries to access a machine learning model with a specific model_id that doesn’t exist or isn’t recognized in the system. To resolve this issue, you can verify the model_id and ensure it’s correctly inputted. If the model_id is correct, check if the model has been properly trained and stored in Elasticsearch. If not, you may need to retrain and store the model. Also, ensure that the model is accessible and not deleted or moved from its original location.

This guide will help you check for common problems that cause the log ” No known trained model with model_id [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “No known trained model with model_id [{}]” class name is ExceptionsHelper.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 public static ResourceNotFoundException missingModelDeployment(String deploymentId) {
 return new ResourceNotFoundException("No known model deployment with id [{}]"; deploymentId);
 }  public static ResourceNotFoundException missingTrainedModel(String modelId) {
 return new ResourceNotFoundException("No known trained model with model_id [{}]"; modelId);
 }  public static ResourceNotFoundException missingTrainedModel(String modelId; Exception cause) {
 return new ResourceNotFoundException("No known trained model with model_id [{}]"; cause; modelId);
 }

 

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?