Briefly, this error occurs when Elasticsearch tries to access a machine learning model with a specific ID for deployment, but it can’t find it. This could be due to the model not existing, being deleted, or the wrong ID being used. To resolve this issue, you can verify the model ID and ensure it exists in your Elasticsearch cluster. If it doesn’t, you need to train a new model with the correct ID or use an existing one. Also, ensure that the model is properly deployed before trying to access it.
This guide will help you check for common problems that cause the log ” No known trained model with deployment with 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 deployment with id [{}]” class name is ExceptionsHelper.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :
public static ResourceNotFoundException missingTrainedModel(String modelId) { return new ResourceNotFoundException("No known trained model with model_id [{}]"; modelId); } public static ResourceNotFoundException missingDeployment(String deploymentId) { return new ResourceNotFoundException("No known trained model with deployment with id [{}]"; deploymentId); } public static ResourceNotFoundException missingTrainedModel(String modelId; Exception cause) { return new ResourceNotFoundException("No known trained model with model_id [{}]"; cause; modelId); }