Cannot generate searchguard_node_key

[com.floragunn.searchguard.service.SearchGuardService] Cannot generate or read secrety key j

ava.io.FileNotFoundException: ./searchguard_node_key.key (Permission denied)

installed on centos 7

its not able to create searchguard_node_key file

configure searchguard.key_path to a path where you have write permissions (e.g. the user under which you run elasticsearch)

Path where to write/read the searchguard master key file

searchguard.key_path: /path/to/where/you/have/write/perms

···

[com.floragunn.searchguard.service.SearchGuardService] Cannot generate or read secrety key j

ava.io.FileNotFoundException: ./searchguard_node_key.key (Permission denied)

installed on centos 7

its not able to create searchguard_node_key file

searchguard.key was not created even with configuring yml to path. elasticsearch is running under root so it is also not the write permission issue.

Found work around by installing searchguard at windows 7 and copied file to Centos

···

On Monday, June 1, 2015 at 1:51:53 AM UTC-7, in...@search-guard.com wrote:

configure searchguard.key_path to a path where you have write permissions (e.g. the user under which you run elasticsearch)

Path where to write/read the searchguard master key file

searchguard.key_path: /path/to/where/you/have/write/perms

[com.floragunn.searchguard.service.SearchGuardService] Cannot generate or read secrety key j

ava.io.FileNotFoundException: ./searchguard_node_key.key (Permission denied)

installed on centos 7

its not able to create searchguard_node_key file

workaround on linux : Change one line in the source code in file, before building the 1.6.0 plugin by Maven src/main/java/com/floragunn/searchguard/service/SearchGuardService.java
The key file will be generated in /var/tmp/directory and install the plugin from this resulting target zip file search-guard-16-0.6-SNAPSHOT.zip in search-guard/target/releases directory
Cheers
Ajay

···

from : final String keyPath = settings.get(ConfigConstants.SEARCHGUARD_KEY_PATH, “.”);
to: final String keyPath = settings.get(ConfigConstants.SEARCHGUARD_KEY_PATH, “/var/tmp/”);

On Tuesday, June 2, 2015 at 1:01:29 PM UTC-4, koup...@gmail.com wrote:

searchguard.key was not created even with configuring yml to path. elasticsearch is running under root so it is also not the write permission issue.

Found work around by installing searchguard at windows 7 and copied file to Centos

On Monday, June 1, 2015 at 1:51:53 AM UTC-7, in...@search-guard.com wrote:

configure searchguard.key_path to a path where you have write permissions (e.g. the user under which you run elasticsearch)

Path where to write/read the searchguard master key file

searchguard.key_path: /path/to/where/you/have/write/perms

[com.floragunn.searchguard.service.SearchGuardService] Cannot generate or read secrety key j

ava.io.FileNotFoundException: ./searchguard_node_key.key (Permission denied)

installed on centos 7

its not able to create searchguard_node_key file