# Keep running into file permission problems when running elasticsearch automated tests on Windows

**URL:** <https://discuss.elastic.co/t/keep-running-into-file-permission-problems-when-running-elasticsearch-automated-tests-on-windows/97692>\
**Category:** Elasticsearch\
**Created:** [August 20, 2017, 4:07pm UTC](https://discuss.elastic.co/t/keep-running-into-file-permission-problems-when-running-elasticsearch-automated-tests-on-windows/97692 "2017-08-20T16:07:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saralor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saralor/32/21330_2.png) [@saralor](https://discuss.elastic.co/u/saralor)\
**Post date:** [August 20, 2017, 4:07pm UTC](https://discuss.elastic.co/t/keep-running-into-file-permission-problems-when-running-elasticsearch-automated-tests-on-windows/97692/1 "2017-08-20T16:07:44Z")

</div>

After cloning the repo from Github, I've tried running the tests several times with `gradle check`, but every time, sooner or later I run into some kind of file permission problem:

`Caused by: java.nio.file.AccessDeniedException: D:\code\elasticsearch\distribution\integ-test-zip\build\cluster\integTestCluster node0\elasticsearch-7.0.0-alpha1-SNAPSHOT`

Or

`Caused by: org.gradle.api.file.UnableToDeleteFileException: Unable to delete directory: D:\code\elasticsearch\distribution\zip\build\cluster\integTestCluster node0\elasticsearch-7.0.0-alpha1-SNAPSHOT\data\nodes\0`

The errors are different but always related to this. My antivirus is disabled.

I'm using Windows 10 and Java 1.8.0\_66. Any idea of what's going on?

---

<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:** [September 17, 2017, 4:07pm UTC](https://discuss.elastic.co/t/keep-running-into-file-permission-problems-when-running-elasticsearch-automated-tests-on-windows/97692/2 "2017-09-17T16:07:51Z")

</div>

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