I'm configuring a snapshot repository on a Nagios Log Server 2024R2 2 server cluster and it keeps showing errors regarding some issue with the directory permissions.
I've checked everything possible and I cannot find a solution to the issue.
On the Opensearch logs I see the following error trace:
Code: Select all
org.opensearch.transport.RemoteTransportException: [node1][172.16.10.145:9300][cluster:admin/repository/put]
Caused by: org.opensearch.repositories.RepositoryVerificationException: [NLSPRO] cannot delete test data at
at org.opensearch.repositories.blobstore.BlobStoreRepository.endVerification(BlobStoreRepository.java:2018) ~[opensearch-2.14.0.jar:2.14.0]
at org.opensearch.repositories.RepositoriesService$3.lambda$doRun$1(RepositoriesService.java:383) ~[opensearch-2.14.0.jar:2.14.0]
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:854) ~[opensearch-2.14.0.jar:2.14.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.nio.file.DirectoryNotEmptyException: /mnt/nlspron/tests-hnoudV8AS5ab1icPpabRbg
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:289) ~[?:?]
at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:104) ~[?:?]
at java.nio.file.Files.delete(Files.java:1152) ~[?:?]
at org.opensearch.common.blobstore.fs.FsBlobContainer$1.postVisitDirectory(FsBlobContainer.java:141) ~[opensearch-2.14.0.jar:2.14.0]
at org.opensearch.common.blobstore.fs.FsBlobContainer$1.postVisitDirectory(FsBlobContainer.java:137) ~[opensearch-2.14.0.jar:2.14.0]
at java.nio.file.Files.walkFileTree(Files.java:2803) ~[?:?]
at java.nio.file.Files.walkFileTree(Files.java:2857) ~[?:?]
at org.opensearch.common.blobstore.fs.FsBlobContainer.delete(FsBlobContainer.java:137) ~[opensearch-2.14.0.jar:2.14.0]
at org.opensearch.repositories.blobstore.BlobStoreRepository.endVerification(BlobStoreRepository.java:2016) ~[opensearch-2.14.0.jar:2.14.0]
at org.opensearch.repositories.RepositoriesService$3.lambda$doRun$1(RepositoriesService.java:383) ~[opensearch-2.14.0.jar:2.14.0]
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:854) ~[opensearch-2.14.0.jar:2.14.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Is there any other thing that I should check?
I've made the same process on a standalone server cluster and it worked without errors.