# Elasticsearch Cluster Multi Node Shared File System Repository SMB Issue

**URL:** <https://discuss.elastic.co/t/elasticsearch-cluster-multi-node-shared-file-system-repository-smb-issue/328472>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [March 24, 2023, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-multi-node-shared-file-system-repository-smb-issue/328472 "2023-03-24T15:02:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali.sharjeel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali.sharjeel/32/118043_2.png) [@ali.sharjeel](https://discuss.elastic.co/u/ali.sharjeel)\
**Post date:** [March 24, 2023, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-multi-node-shared-file-system-repository-smb-issue/328472/1 "2023-03-24T15:02:39Z")

</div>

Hi Team! I am trying to register shared file system repository in elasticsearch 8.6.2. I have windows server where i have created a directory and have shared it using smb and have mounted that directory using NFS CIFS on all elasticsearch nodes but when I register the repository in Kibana. I am receiving the following error. I have tested by manually creating and deleting files on the folder that is mounted and verified that it is working but somehow elastic is unable to verify it. I have tested the same scenario with linux nfs server as well and it is working fine without any issues but the problem is with windows smb. Any help would be appreciated

- I have installed 'nfs-common cifs-utils '

- Using below command all three nodes of cluster to setup where 114,120 is elasticsearch uid and gid

- I have installed `nfs-common cifs-utils -y`

- Using below command to setup where 114,120 is elasticsearch uid and gid  
`mount -t cifs //IP/lab01-elastic-security-backup /home/lab01-elastic-security-backup/ -o credentials=/root/.nfscredentials,uid=114,gid=120`

```auto
 {
   "name": "ResponseError",
   "meta": {
     "body": {
       "error": {
         "root_cause": [
           {
             "type": "repository_verification_exception",
             "reason": "[Lab01] cannot delete test data at "
           }
         ],
         "type": "repository_verification_exception",
         "reason": "[Lab01] cannot delete test data at ",
         "caused_by": {
           "type": "directory_not_empty_exception",
           "reason": "/home/lab01-elastic-security-backup/tests-PiBrldzOS3uFAW8KflFPTg"
         }
       },
       "status": 500
     },
     "statusCode": 500,
     "headers": {
       "x-opaque-id": "4775fbd1-1a64-4b1c-88e4-542f381afeb2;kibana:application:management:",
       "x-elastic-product": "Elasticsearch",
       "content-type": "application/json;charset=utf-8",
       "content-length": "350"
     },
     "meta": {
       "context": null,
       "request": {
         "params": {
           "method": "POST",
           "path": "/_snapshot/Lab01/_verify",
           "querystring": "",
           "headers": {
             "user-agent": "Kibana/8.6.2",
             "x-elastic-product-origin": "kibana",
             "authorization": "Basic c29jOlJEQ0BmM3RlY2gxMjM=",
             "x-opaque-id": "4775fbd1-1a64-4b1c-88e4-542f381afeb2;kibana:application:management:",
             "x-elastic-client-meta": "es=8.4.0p,js=16.18.1,t=8.2.0,hc=16.18.1",
             "accept": "application/vnd.elasticsearch+json; compatible-with=8,text/plain"
           }
         },
         "options": {
           "opaqueId": "4775fbd1-1a64-4b1c-88e4-542f381afeb2;kibana:application:management:",
           "headers": {
             "x-elastic-product-origin": "kibana",
             "user-agent": "Kibana/8.6.2",
             "authorization": "Basic c29jOlJEQ0BmM3RlY2gxMjM=",
             "x-opaque-id": "4775fbd1-1a64-4b1c-88e4-542f381afeb2",
             "x-elastic-client-meta": "es=8.4.0p,js=16.18.1,t=8.2.0,hc=16.18.1"
           }
         },
         "id": 1
       },
       "name": "elasticsearch-js",
       "connection": {
         "url": "https://www.lab01-home.tk:9200/",
         "id": "https://www.lab01-home.tk:9200/",
         "headers": {},
         "status": "alive"
       },
       "attempts": 0,
       "aborted": false
     },
     "warnings": null
   }
 }

```

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 24, 2023, 6:03pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-multi-node-shared-file-system-repository-smb-issue/328472/2 "2023-03-24T18:03:33Z")

</div>

> [@ali.sharjeel](#):
>
> ```auto
> "caused_by": {
> "type": "directory_not_empty_exception",
> 
> ```

Elasticsearch creates a directory, adds some files, lists the directory contents, deletes all the files it found, and finally deletes the directory. The last step is failing with the error above which indicates that the directory is not empty.

I'm not sure there's anything we can do on this forum to help further, because the problem lies in your storage system and not Elasticsearch.

---

<div class="post-metadata">

**Author:** ![ali.sharjeel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali.sharjeel/32/118043_2.png) [@ali.sharjeel](https://discuss.elastic.co/u/ali.sharjeel)\
**Post date:** [March 24, 2023, 11:47pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-multi-node-shared-file-system-repository-smb-issue/328472/3 "2023-03-24T23:47:29Z")

</div>

The directory is completely empty and freshly setup for snapshots with the read and write privileges

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 25, 2023, 3:33pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-multi-node-shared-file-system-repository-smb-issue/328472/4 "2023-03-25T15:33:01Z")

</div>

I don't doubt it, but that's not related to the problem I described above.

---

<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:** [April 22, 2023, 3:33pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-multi-node-shared-file-system-repository-smb-issue/328472/5 "2023-04-22T15:33:59Z")

</div>

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