Cannot generate syskeygen


(Dixon Almeida) #1

/bin/x-pack/syskeygen
Storing generated key in [/etc/elasticsearch/x-pack/system_key]...
Exception in thread "main" java.nio.file.NoSuchFileException: /etc/elasticsearch/x-pack/system_key
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.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
at java.nio.file.Files.newOutputStream(Files.java:216)
at java.nio.file.Files.write(Files.java:3292)
at org.elasticsearch.xpack.security.crypto.tool.SystemKeyTool.execute(SystemKeyTool.java:88)
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
at org.elasticsearch.cli.Command.main(Command.java:62)
at org.elasticsearch.xpack.security.crypto.tool.SystemKeyTool.main(SystemKeyTool.java:65)
at org.elasticsearch.xpack.security.crypto.tool.SystemKeyTool.main(SystemKeyTool.java:58)


(Jay Modi) #2

HI,

Can you provide more information such as how you installed elasticsearch, what os, what version of elasticsearch/xpack?


(Dixon Almeida) #3

I have installed elasticsearch using the tar.gz package. and i am using ubuntu 14.04 , Elasticsearch-5.1 and Xpack 5.1


(Alexander Reelsen) #4

Hey,

what is the exact path of the syskeygen binary? You can find out using the command which. The path mentioned in the error /etc/elasticsearch/x-pack/system_key - was that created by yourself? Or are you using the debian package or may have a leftover of that installation?

--Alex


(Dixon Almeida) #5

Hi Alex
path of syskeygen is elasticsearch-5.1.1/bin/syskeygen
/etc/elasticsearch/x-pack/system_key this is not created by me and not created also.
yes i used debian package for installation


(Jay Modi) #6

These statements seem to conflict a bit. Do you still have the installation from the debian package? If not, can you remove or rename the /etc/default/elasticsearch file (assuming that it exists).


(Dixon Almeida) #7

i deleted /etc/elasticsearch folder . and then generated syskeygen . now its working . Thank you for the help :slight_smile:


(system) #8

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