# Read-only URL Repository

**URL:** https://discuss.elastic.co/t/read-only-url-repository/343104
**Category:** Elasticsearch
**Created:** [September 15, 2023, 6:05am UTC](https://discuss.elastic.co/t/read-only-url-repository/343104 "2023-09-15T06:05:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![frh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frh/32/123902_2.png) [@frh](https://discuss.elastic.co/u/frh)
#### Post date: [September 15, 2023, 6:05am UTC](https://discuss.elastic.co/t/read-only-url-repository/343104/1 "2023-09-15T06:05:01Z")

</div>

Hi,  
I just created read-only URL repository and give it a name as "test". I got this error when verify repository:

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "repository_exception",
        "reason": "[test] file url [http://testrepo] doesn't match any of the locations specified by path.repo or repositories.url.allowed_urls"
      }
    ],
    "type": "repository_exception",
    "reason": "[test] file url [http://testrepo] doesn't match any of the locations specified by path.repo or repositories.url.allowed_urls"
  },
  "status": 500
}

```

Can you please pinpoint how can I get this repo verified successfully? I don't know how to find path.repo or repositories.url.allowed\_urls.

Thanks.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [September 15, 2023, 10:17am UTC](https://discuss.elastic.co/t/read-only-url-repository/343104/2 "2023-09-15T10:17:45Z")

</div>

You need to change `repositories.url.allowed_urls` according to [the docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-read-only-repository.html):

> URLs using the `http`, `https`, or `ftp` protocols must be explicitly allowed with the [`repositories.url.allowed_urls`](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-settings.html#repositories-url-allowed) cluster setting. This setting supports wildcards in the place of a host, path, query, or fragment in the URL.

The [doc says then](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-settings.html#repositories-url-allowed):

> ([Static](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#static-cluster-setting)) Specifies the [read-only URL repositories](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-read-only-repository.html) that snapshots can be restored from.

And then the description of "[static](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#static-cluster-setting)" is:

> Static settings can only be configured on an unstarted or shut down node using `elasticsearch.yml`.
> 
> Static settings must be set on every relevant node in the cluster.

So you must edit `elasticsearch.yml` on all nodes and restart your nodes.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 13, 2023, 10:17am UTC](https://discuss.elastic.co/t/read-only-url-repository/343104/3 "2023-10-13T10:17:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
