ERROR Unable to delete file

Hi ,
I use elasticsearch for windows
amd getting

What is the issue?

Using elasticsearch for Windows i keep on getting errors as in :
Unable to delete file and unable to move file

How do I fix it?

What are elaticsearch full logs?

Here you go:

[RONEZEKIEL4FAE][scheduler][T#1 ] ERROR Unable to move file C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch_server.json to C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch-2020-06-21-1.json: java.nio.file.AccessDeniedException C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch_server.json -> C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch-2020-06-21-1.json
[RONEZEKIEL4FAE][scheduler][T#1 ] ERROR Unable to delete file C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch_server.json: java.nio.file.AccessDeniedException C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch_server.json
[RONEZEKIEL4FAE][scheduler][T#1 ] ERROR Unable to move file C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch.log to C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch-2020-06-21-1.log: java.nio.file.AccessDeniedException C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch.log -> C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch-2020-06-21-1.log
[RONEZEKIEL4FAE][scheduler][T#1 ] ERROR Unable to delete file C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch.log: java.nio.file.AccessDeniedException C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch.log


Ron E. Ezekiel

A Rosh Ha'ayin, Israel

M +972 549777122


Create your own WiseStamp email signature

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:


This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

A guess is that elasticsearch process does not have the rights to remove the logs? (Log rotation).
How did you install Elasticsearch?

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