# Not able to add repository

**URL:** <https://discuss.elastic.co/t/not-able-to-add-repository/37469>\
**Category:** Elasticsearch\
**Created:** [December 17, 2015, 12:51pm UTC](https://discuss.elastic.co/t/not-able-to-add-repository/37469 "2015-12-17T12:51:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijitdeka11](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@abhijitdeka11](https://discuss.elastic.co/u/abhijitdeka11)\
**Post date:** [December 17, 2015, 12:51pm UTC](https://discuss.elastic.co/t/not-able-to-add-repository/37469/1 "2015-12-17T12:51:46Z")

</div>

Hi,

I have the same issue as this [Path.repo is empty](https://discuss.elastic.co/t/path-repo-is-empty/25166) .  
I followed the same steps mentioned in that thread to resolve the issue.Still i am getting this error

{"error":"RemoteTransportException[[Psyche][inet[/192.168.88.5:9307]][cluster:admin/repository/put]]; nested: RepositoryException[[glaas\_dev] failed to create repository]; nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [glaas\_dev] location [/home/glaas/elk/backup/] doesn't match any of the locations specified by path.repo because this setting is empty\n at org.elasticsearch.repositories.fs.FsRepository.()\n at org.elasticsearch.repositories.fs.FsRepository\n at Key[type=org.elasticsearch.repositories.Repository, annotation=[none]]\n\n1 error]; nested: RepositoryException[[glaas\_dev] location [/home/glaas/elk/backup/] doesn't match any of the locations specified by path.repo because this setting is empty]; ","status":500}

Please help me fix this issue.

---

<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:** [December 17, 2015, 1:12pm UTC](https://discuss.elastic.co/t/not-able-to-add-repository/37469/2 "2015-12-17T13:12:22Z")

</div>

You did not set path.repo on all nodes and restarted.

---

<div class="post-metadata">

**Author:** ![abhijitdeka11](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@abhijitdeka11](https://discuss.elastic.co/u/abhijitdeka11)\
**Post date:** [December 18, 2015, 5:56am UTC](https://discuss.elastic.co/t/not-able-to-add-repository/37469/3 "2015-12-18T05:56:32Z")

</div>

Hi,  
I figured out the problem.I didn't stop my log stash instance while running the command.Once i stopped it it worked.  
I am not sure if this is related or not.But it worked for me.

BTW,it was my dev. setup and i was running only one node.

Thanks

---

<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:** [July 5, 2017, 11:30pm UTC](https://discuss.elastic.co/t/not-able-to-add-repository/37469/4 "2017-07-05T23:30:02Z")

</div>


