Failed to load snapshot metadata assuming repository is in old format – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.6-7.8

Briefly, this error occurs when Elasticsearch is unable to load snapshot metadata, assuming the repository is in an outdated format. This could be due to a version mismatch between the Elasticsearch cluster and the snapshot repository. To resolve this issue, you can try upgrading your Elasticsearch cluster to match the snapshot repository version. Alternatively, you could recreate the snapshot repository in the current Elasticsearch version. Lastly, ensure that the repository is correctly configured and accessible by the Elasticsearch cluster.

This guide will help you check for common problems that cause the log ” Failed to load snapshot metadata; assuming repository is in old format ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: snapshot, repository.

Log Context

Log “Failed to load snapshot metadata; assuming repository is in old format” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                        // to write out so we stop iterating here and just use 7.5.0 as a placeholder.
                        return OLD_SNAPSHOT_FORMAT;
                    minCompatVersion = minCompatVersion.before(foundVersion) ? minCompatVersion : foundVersion;
                } catch (SnapshotMissingException e) {
                    logger.warn("Failed to load snapshot metadata; assuming repository is in old format"; e);
                    return OLD_SNAPSHOT_FORMAT;
            } else {
                minCompatVersion = minCompatVersion.before(known) ? minCompatVersion : known;