# CONFIG\_SECCOMP not compiled into kernel, CONFIG\_SECCOMP and CONFIG\_SECCOMP\_FILTER are needed

**URL:** <https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723>\
**Category:** Elasticsearch\
**Created:** [May 31, 2017, 11:14am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723 "2017-05-31T11:14:42Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [May 31, 2017, 11:14am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/1 "2017-05-31T11:14:43Z")

</div>

Hello EveryOne,

I just installed elasticsearch on a server as a service. It's a brand new VM.  
Elasticsearch worked normally but wanting to restart the service it shows me now the following error :  
`elasticsearch dead but pid file exists`

I have done a df -h to know the state of my files system and I get this :

> Filesystem Size Used Avail Use% Mounted on  
> /dev/mapper/rootvg-lvroot  
> 3.9G 3.1G 555M 86% /  
> tmpfs 935M 0 935M 0% /dev/shm  
> /dev/mapper/rootvg-lvappli  
> 2.0G 6.1M 1.9G 1% /appli  
> /dev/mapper/rootvg-lvapplilog  
> 2.0G 3.1M 1.9G 1% /appli\_log  
> /dev/mapper/rootvg-lvapplivar  
> 2.0G 476M 1.4G 26% /appli\_var  
> /dev/sda1 240M 36M 193M 16% /boot  
> /dev/mapper/rootvg-lvtmp  
> 2.0G 3.3M 1.9G 1% /tmp  
> /dev/mapper/rootvg-lvvar  
> 3.9G 1.4G 2.3G 39% /var

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [May 31, 2017, 11:29am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/2 "2017-05-31T11:29:44Z")

</div>

Hi,

would be nice to know why is dead. Maybe you can post log file.  
If you don't care the cause, just delete pid file and restart 🙂 elasticsearch.

pts0

---

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [May 31, 2017, 11:47am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/3 "2017-05-31T11:47:06Z")

</div>

The worry is that every time I restart elasticsearch the PID change. And he gives me the same error again.

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [May 31, 2017, 11:51am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/4 "2017-05-31T11:51:20Z")

</div>

Sure PID change every time you restart elasticsearch. This is the normal way unix process work.  
Normally when elasticsearch ist stopped regulary the PID file will be deleted. You got the message because elasticsearch crashed oder the VM crashed.

---

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [May 31, 2017, 12:02pm UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/5 "2017-05-31T12:02:24Z")

</div>

OK. Is that the good command To delete pid file ?

$ bin/elasticsearch -d -p pid  
$ kill `cat pid`

When I try this command, that told me :

```
cat: pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
[root@lcmci023 elasticsearch]# Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config
Likely root cause: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
        at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
        at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
        at java.nio.file.Files.readAttributes(Files.java:1737)
        at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225)
        at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
        at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
        at java.nio.file.Files.walkFileTree(Files.java:2662)
        at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:101)
        at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:84)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326)
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123)
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)
        at org.elasticsearch.cli.Command.main(Command.java:88)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84)
Refer to the log for complete error details.
```

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [May 31, 2017, 12:38pm UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/6 "2017-05-31T12:38:43Z")

</div>

no 🙂  
`kill` is to kill a process.  
Just let elasticsearch handle himself pid file please, is safer.  
To delete pidfile just use `rm /this/is/my/pidfile`

---

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [May 31, 2017, 12:51pm UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/7 "2017-05-31T12:51:58Z")

</div>

Thanks for you help.  
I have remove the elasticsearch.pid like tou told me and I restart Elasticsearch service. But I still have the error message : elasticsearch dead but pid file exists.

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [May 31, 2017, 1:09pm UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/8 "2017-05-31T13:09:36Z")

</div>

Then you removed the wrong file.

---

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [May 31, 2017, 1:18pm UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/9 "2017-05-31T13:18:15Z")

</div>

I removed this one : `rm /var/run/elasticsearch/elasticsearch.pid`  
It is the good one or there is another one ?

---

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [May 31, 2017, 1:25pm UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/10 "2017-05-31T13:25:26Z")

</div>

When I deleted it and restarted elasticsearch, I ran the command status. He told me that elasticsearch is running : `elasticsearch (pid 64795) is running...`

Then I restarted the command status a second time and again the error message :  
`elasticsearch dead but pid file exists`

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [May 31, 2017, 1:26pm UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/11 "2017-05-31T13:26:11Z")

</div>

You should have a look where the pid is stored in the start script of service.

---

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [May 31, 2017, 1:50pm UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/12 "2017-05-31T13:50:28Z")

</div>

The path of pid file is the good one : /var/run/elasticsearch/

So I don't understand why I have this error.

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [May 31, 2017, 2:24pm UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/13 "2017-05-31T14:24:29Z")

</div>

Can you provide us the log file. It see to me elasticsearch ist crashing for some reason at startup.

---

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [June 1, 2017, 7:30am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/14 "2017-06-01T07:30:11Z")

</div>

I have many of them :  
Here is the contents of one of them :

```
[2017-06-01T09:23:18,185][WARN][o.e.b.JNANatives] unable to install syscall filter:
java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
        at org.elasticsearch.bootstrap.SystemCallFilter.linuxImpl(SystemCallFilter.java:363) ~[elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.SystemCallFilter.init(SystemCallFilter.java:638) ~[elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.JNANatives.tryInstallSystemCallFilter(JNANatives.java:215) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.Natives.tryInstallSystemCallFilter(Natives.java:99) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:111) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:204) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.4.0.jar:5.4.0]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.4.0.jar:5.4.0]
~

```

Thank you for the help.

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [June 1, 2017, 7:40am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/15 "2017-06-01T07:40:01Z")

</div>

Hi,  
How you can read in the log, your kernel (linux installation) is not providing all needed component in the kernel needed to run elasticsearch.  
Did you have a custom Kernel ? What is telling you  
`uname -r`  
and  
`cat /lib/modules/$(uname -r)/modules.builtin`

---

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [June 1, 2017, 7:54am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/16 "2017-06-01T07:54:11Z")

</div>

For the command `uname -r` I have the following result :  
`2.6.32-696.1.1.el6.x86_64`

And for the second command I have this :  
`cat: /lib/modules/2.6.32-696.1.1.el6.x86_64/modules.builtin: No such file or directory`

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [June 1, 2017, 8:30am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/17 "2017-06-01T08:30:37Z")

</div>

Try to contact you sysadmin and send him 🙂

`java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed`

You probably can't solve yourself this issue.

Maybe change the subject of thread, the issue is not pid file.

---

<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:** [June 29, 2017, 8:30am UTC](https://discuss.elastic.co/t/config-seccomp-not-compiled-into-kernel-config-seccomp-and-config-seccomp-filter-are-needed/87723/18 "2017-06-29T08:30:55Z")

</div>

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