# Can't launch Elasticsearch

**URL:** <https://discuss.elastic.co/t/cant-launch-elasticsearch/144101>\
**Category:** Elasticsearch\
**Created:** [August 13, 2018, 7:47am UTC](https://discuss.elastic.co/t/cant-launch-elasticsearch/144101 "2018-08-13T07:47:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diederik](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Diederik](https://discuss.elastic.co/u/Diederik)\
**Post date:** [August 13, 2018, 7:47am UTC](https://discuss.elastic.co/t/cant-launch-elasticsearch/144101/1 "2018-08-13T07:47:43Z")

</div>

Hi,

I am very happy using Elasticsearch and are trying to upgrade from 1.2.1 to 6.3.2.

I have downloaded 6.3.2 and set java to 1.8.0, see:

$ java -version  
java version "1.8.0\_181"  
Java(TM) SE Runtime Environment (build 1.8.0\_181-b13)  
Java HotSpot(TM) Server VM (build 25.181-b13, mixed mode)

When I try to launch Elasticsearch I get a java.nio.file.AccessDeniedException.

I know it has to do with file or folder permissions, I just don't know which file or folder's permission to edit. Does anyone have pointers for solving this?

This is the output I get:

[dgam@vps-... srv]$ cd elasticsearch-6.3.2  
[dgam@vps-... elasticsearch-6.3.2]$ bin/elasticsearch -d  
Exception in thread "main" java.nio.file.AccessDeniedException: /srv/elasticsearch-6.3.2/config/jvm.options  
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)  
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)  
at java.nio.file.Files.newByteChannel(Files.java:361)  
at java.nio.file.Files.newByteChannel(Files.java:407)  
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)  
at java.nio.file.Files.newInputStream(Files.java:152)  
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:58)

Many thanks,

Diederik

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [August 15, 2018, 10:16pm UTC](https://discuss.elastic.co/t/cant-launch-elasticsearch/144101/2 "2018-08-15T22:16:51Z")

</div>

This is basically file permission issues and it is not an issue with Elasticsearch.

It seems that you are using a user named `dgam`. You need to make sure that this user has full read/write permissions to this Elasticsearch directory.

---

<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 12, 2018, 10:16pm UTC](https://discuss.elastic.co/t/cant-launch-elasticsearch/144101/3 "2018-09-12T22:16:52Z")

</div>

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