Can t read metadata from store will not reuse local files during restore – How to solve this OpenSearch error

Opster Team

Aug-23, Version: 1-1.1

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your OpenSearch operation.

Briefly, this error occurs when OpenSearch is unable to read the metadata from the store during a restore operation, and thus it cannot reuse local files. This could be due to corrupted metadata or insufficient permissions. To resolve this, you can try the following: 1) Check and repair the metadata files if they are corrupted. 2) Ensure OpenSearch has the necessary permissions to access the store. 3) If the error persists, consider deleting the local files and performing a full restore from the backup.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” [{}] [{}] Can’t read metadata from store; will not reuse local files during restore ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: restore, repositories, blobstore, metadata.

Log Context

Log “[{}] [{}] Can’t read metadata from store; will not reuse local files during restore” classname is FileRestoreContext.java.
We extracted the following from OpenSearch source code for those seeking an in-depth context :

            } catch (org.apache.lucene.index.IndexNotFoundException e) {
                // happens when restore to an empty shard; not a big deal
                logger.trace("[{}] [{}] restoring from to an empty shard"; shardId; snapshotId);
                recoveryTargetMetadata = Store.MetadataSnapshot.EMPTY;
            } catch (IOException e) {
                logger.warn(new ParameterizedMessage("[{}] [{}] Can't read metadata from store; will not reuse local files during restore";
                    shardId; snapshotId); e);
                recoveryTargetMetadata = Store.MetadataSnapshot.EMPTY;
            }
            final List filesToRecover = new ArrayList();
            final Map snapshotMetadata = new HashMap();

 

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?

Get expert answers on Elasticsearch/OpenSearch