﻿---
title: Diagnose invalid repositories
description: When an Elasticsearch node faces an unexpected exception when trying to instantiate a snapshot repository, it will mark the repository as "invalid" and...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4430/troubleshoot/elasticsearch/diagnosing-invalid-repositories
products:
  - Elasticsearch
---

# Diagnose invalid repositories
When an Elasticsearch node faces an unexpected exception when trying to instantiate a snapshot repository, it will mark the repository as "invalid" and write a warning to the log file. Use the following steps to diagnose the underlying cause of this issue:
1. Retrieve the affected nodes from the affected resources section of the health report.
2. Refer to the logs of the affected node(s) and search for the repository name. You should be able to find logs that will contain relevant exception.
3. Try to resolve the errors reported.