Unable to repository for snapshot

I am using Elasticsearch 2.3.4

PUT http://:9200/_snapshot/my-repo-1
{
"type": "fs",
"settings": {
"location": "/home/mystorage/mt",
"compress": true
}
}

"reason": "[my-repo-1] location [/home/mystorage/mt] doesn't match any of the locations specified by path.repo because this setting is empty"

Did you add that setting to your config file as well?

Added

path.repo: ["/home/mystoreage/mt"]

Does it work now?

no. it doesn't

Did you restart ES?

Restarted ES and restarted server