# Unable to create snapshots even though es has read/write access to smb drive

**URL:** <https://discuss.elastic.co/t/unable-to-create-snapshots-even-though-es-has-read-write-access-to-smb-drive/228832>\
**Category:** Elasticsearch\
**Created:** [April 20, 2020, 10:12am UTC](https://discuss.elastic.co/t/unable-to-create-snapshots-even-though-es-has-read-write-access-to-smb-drive/228832 "2020-04-20T10:12:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![modec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/modec/32/66670_2.png) [@modec](https://discuss.elastic.co/u/modec)\
**Post date:** [April 20, 2020, 10:12am UTC](https://discuss.elastic.co/t/unable-to-create-snapshots-even-though-es-has-read-write-access-to-smb-drive/228832/1 "2020-04-20T10:12:14Z")

</div>

Elasticsearch 6.8.8 - this worked fine in 6.5.1. - Error is

```auto
    [2020-04-20T11:47:13,669][WARN][o.e.r.RepositoriesService] [Cassiopeia] [linkstacks-backup-3] failed to finish repository verification
    org.elasticsearch.repositories.RepositoryVerificationException: [linkstacks-backup-3] cannot delete test data at 
    	at org.elasticsearch.repositories.blobstore.BlobStoreRepository.endVerification(BlobStoreRepository.java:644) ~[elasticsearch-6.8.8.jar:6.8.8]
    	at org.elasticsearch.repositories.RepositoriesService$3.lambda$onResponse$1(RepositoriesService.java:238) ~[elasticsearch-6.8.8.jar:6.8.8]
    	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:681) [elasticsearch-6.8.8.jar:6.8.8]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_241]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_241]
    	at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
    Caused by: java.io.IOException: could not remove the following files (in the order of attempts):
       \\mercury\backup\2020\es\tests-2pC8TNeDS5OQw06b8vaFzA: java.nio.file.DirectoryNotEmptyException: \\mercury\backup\2020\es\tests-2pC8TNeDS5OQw06b8vaFzA

```

* * *

Read and write access seems to work fine

Here is a log (image) of SMB actions in reverse order:

 ![Screenshot 2020-04-20 at 12.03.43](https://us1.discourse-cdn.com/elastic/original/3X/1/6/16cc145a680b2b49850ea4edd25e94d9a01bdf94.jpeg)

Same in (messy) text form:

```auto
delete
Fil
22 Bytes
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/master.dat
Windows-filoverførsel
2020-04-20 11:47:14
192.168.1.202
guest
delete
Fil
22 Bytes
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/data-n10o0Vd1TYCRhkttNI6kxQ.dat
Windows-filoverførsel
2020-04-20 11:47:14
192.168.1.200
guest
write
Fil
22 Bytes
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/data-LC0RnV0RSuqaFQqc_hxD3g.dat
Windows-filoverførsel
2020-04-20 11:47:14
192.168.1.200
guest
create
Fil
NA
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/data-LC0RnV0RSuqaFQqc_hxD3g.dat
Windows-filoverførsel
2020-04-20 11:47:14
192.168.1.205
guest
write
Fil
22 Bytes
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/data-HQEKTJS8RVex2H9EyYEBUg.dat
Windows-filoverførsel
2020-04-20 11:47:14
192.168.1.205
guest
create
Fil
NA
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/data-HQEKTJS8RVex2H9EyYEBUg.dat
Windows-filoverførsel
2020-04-20 11:47:13
192.168.1.202
guest
write
Fil
22 Bytes
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/data-n10o0Vd1TYCRhkttNI6kxQ.dat
Windows-filoverførsel
2020-04-20 11:47:13
192.168.1.202
guest
create
Fil
NA
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/data-n10o0Vd1TYCRhkttNI6kxQ.dat
Windows-filoverførsel
2020-04-20 11:47:13
192.168.1.202
guest
rename
Fil
22 Bytes
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/pending-master.dat-rSmojTwJTVS2hl0WZcAfZg -> /backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/master.dat
Windows-filoverførsel
2020-04-20 11:47:13
192.168.1.202
guest
write
Fil
22 Bytes
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/pending-master.dat-rSmojTwJTVS2hl0WZcAfZg
Windows-filoverførsel
2020-04-20 11:47:13
192.168.1.202
guest
create
Fil
NA
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA/pending-master.dat-rSmojTwJTVS2hl0WZcAfZg
Windows-filoverførsel
2020-04-20 11:47:12
192.168.1.202
guest
create
Mappe
NA
/backup/2020/es/tests-2pC8TNeDS5OQw06b8vaFzA

```

* * *

Thanks.

Poul

---

<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:** [May 18, 2020, 10:12am UTC](https://discuss.elastic.co/t/unable-to-create-snapshots-even-though-es-has-read-write-access-to-smb-drive/228832/2 "2020-05-18T10:12:21Z")

</div>

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