# Error=13, Permission denied

**URL:** <https://discuss.elastic.co/t/error-13-permission-denied/140056>\
**Category:** Elasticsearch\
**Created:** [July 15, 2018, 11:58am UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056 "2018-07-15T11:58:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![guenter.platzerworld](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guenter.platzerworld/32/32426_2.png) [@guenter.platzerworld](https://discuss.elastic.co/u/guenter.platzerworld)\
**Post date:** [July 15, 2018, 11:58am UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/1 "2018-07-15T11:58:44Z")

</div>

Hi,  
in ELK-Stack 6.3.x i get following Error:  
[2018-07-15T13:37:00,885][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [zebra-log-node-1] uncaught exception in thread [main]  
org.elasticsearch.bootstrap.StartupException: org.elasticsearch.bootstrap.BootstrapException: java.io.IOException: Cannot run program "/global/zebra/elkstack/oem/elasticsearch-6.3.1/modules/x-pack/x-pack-ml/platform/linux-x86\_64/bin/controller": error=13, Permission denied  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.1.jar:6.3.1]  
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.1.jar:6.3.1]  
Caused by: org.elasticsearch.bootstrap.BootstrapException: java.io.IOException: Cannot run program "/global/zebra/elkstack/oem/elasticsearch-6.3.1/modules/x-pack/x-pack-ml/platform/linux-x86\_64/bin/controller": error=13, Permission denied  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:168) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.1.jar:6.3.1]  
... 6 more  
Caused by: java.io.IOException: Cannot run program "/global/zebra/elkstack/oem/elasticsearch-6.3.1/modules/x-pack/x-pack-ml/platform/linux-x86\_64/bin/controller": error=13, Permission denied  
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[?:1.8.0\_171]  
at org.elasticsearch.bootstrap.Spawner.spawnNativeController(Spawner.java:118) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Spawner.spawnNativeControllers(Spawner.java:86) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:166) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.1.jar:6.3.1]  
... 6 more  
Caused by: java.io.IOException: error=13, Permission denied  
at java.lang.UNIXProcess.forkAndExec(Native Method) ~[?:1.8.0\_171]  
at java.lang.UNIXProcess.(UNIXProcess.java:247) ~[?:1.8.0\_171]  
at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[?:1.8.0\_171]  
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[?:1.8.0\_171]  
at org.elasticsearch.bootstrap.Spawner.spawnNativeController(Spawner.java:118) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Spawner.spawnNativeControllers(Spawner.java:86) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:166) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.1.jar:6.3.1]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.1.jar:6.3.1]  
... 6 more

Thanks

Regards  
Günter

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 15, 2018, 8:43pm UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/2 "2018-07-15T20:43:46Z")

</div>

How did you install Elasticsearch?  
What user are you running as?

---

<div class="post-metadata">

**Author:** ![guenter.platzerworld](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guenter.platzerworld/32/32426_2.png) [@guenter.platzerworld](https://discuss.elastic.co/u/guenter.platzerworld)\
**Post date:** [July 16, 2018, 3:36am UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/3 "2018-07-16T03:36:51Z")

</div>

hi,  
i installed with user zebra.  
i made my own Installation Zip-File.  
in ELK 6.2.4 it was installed correctly

Regards  
Günter

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 16, 2018, 4:30am UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/4 "2018-07-16T04:30:49Z")

</div>

There is some issue between the way you installed Elasticsearch, the user you installed it as and the user you are running it as.

You have a permissions problem running the `/global/zebra/elkstack/oem/elasticsearch-6.3.1/modules/x-pack/x-pack-ml/platform/linux-x86_64/bin/controller` process.

The 6.3.1 zip file has the correct permissions for that file:

```
-rwxr-xr-x 2.0 unx 84352 b- 31823 defN 18-Jun-29 22:04 elasticsearch-6.3.1/modules/x-pack/x-pack-ml/platform/linux-x86_64/bin/controller

```

So it appears that your installation process has failed to set the correct permissions.

> in ELK 6.2.4 it was installed correctly

In 6.2.4 X-Pack was a plugin which was installed for you by `elasticsearch-plugin`, so the process you used to install Elasticsearch would not have affected the permissions on the ML controller.

---

<div class="post-metadata">

**Author:** ![guenter.platzerworld](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guenter.platzerworld/32/32426_2.png) [@guenter.platzerworld](https://discuss.elastic.co/u/guenter.platzerworld)\
**Post date:** [July 16, 2018, 4:28pm UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/5 "2018-07-16T16:28:17Z")

</div>

Thanks.  
in ELK 6.2.4 i don't use xpack.

Is it possible to install ELK 6.3.x without xpack.

i use search-guard for security

Regards  
Günter

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 16, 2018, 7:42pm UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/6 "2018-07-16T19:42:46Z")

</div>

Here: [https://www.elastic.co/downloads/elasticsearch-oss](https://www.elastic.co/downloads/elasticsearch-oss)

---

<div class="post-metadata">

**Author:** ![guenter.platzerworld](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guenter.platzerworld/32/32426_2.png) [@guenter.platzerworld](https://discuss.elastic.co/u/guenter.platzerworld)\
**Post date:** [July 17, 2018, 4:13am UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/7 "2018-07-17T04:13:39Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![guenter.platzerworld](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guenter.platzerworld/32/32426_2.png) [@guenter.platzerworld](https://discuss.elastic.co/u/guenter.platzerworld)\
**Post date:** [July 24, 2018, 4:55am UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/8 "2018-07-24T04:55:20Z")

</div>

Hi,  
when i set in elasticsearch.yml and kibany.yml **xpack.ml.enabled:false** the error also coming

the OSS Version worked for me correctly.

Best Regards  
Günter

---

<div class="post-metadata">

**Author:** ![vgindin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vgindin/32/42012_2.png) [@vgindin](https://discuss.elastic.co/u/vgindin)\
**Post date:** [August 16, 2018, 2:56pm UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/9 "2018-08-16T14:56:01Z")

</div>

Hi, I'm trying to impement custom StemFilter, that uses external program as stemmer. I got the same error.

I've implemented simple TokenFilter, that calls external program like this

```
        SecurityManager sm = System.getSecurityManager();
    if (sm != null) {
        sm.checkPermission(new SpecialPermission());
    }

    mystemProcess = AccessController.doPrivileged((PrivilegedAction<Process>) () -> {
        ProcessBuilder pb = new ProcessBuilder("/usr/local/bin/mystem", "-ign", "--format", "json");
        try {
            return pb.start();
        } catch (IOException e) {
            LOG.error(e);
            return null;
        }
    });

```

And I got the same error:

```
Caused by: java.io.IOException: error=13, Permission denied
    at java.lang.UNIXProcess.forkAndExec(Native Method) ~[?:1.8.0_161]
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) ~[?:1.8.0_161]
    at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[?:1.8.0_161]
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[?:1.8.0_161]
    ... 24 more

```

Could you help me?

P.S. File permissions are set correctly:

```
user@server:/usr/local/bin$ ls -la | grep mystem
-rwxrwxrwx 1 root staff 21135640 Aug 16 14:38 mystem
```

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [August 17, 2018, 5:31am UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/10 "2018-08-17T05:31:25Z")

</div>

@vgindin Please start a new thread - your issue is different.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [August 17, 2018, 5:31am UTC](https://discuss.elastic.co/t/error-13-permission-denied/140056/11 "2018-08-17T05:31:35Z")

</div>


