CrateDB & Elasticsearch problem running as root and binding IP
so i am trying to install CrateDB on a brand new centos7 box and i am running into issues. When running ./crate -Cnetwork.host=[myip] i recieve the following errors
[2018-11-23T11:05:20,857][INFO ][o.e.n.Node ] [Tête de Gaulent] initializing ...
[2018-11-23T11:05:20,873][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [Tête de Gaulent] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.bootstrap.StartupExceptionProxy.<init>(StartupExceptionProxy.java:31) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:159) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.execute(CrateDB.java:135) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:85) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.4.jar:3.1.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.4.jar:3.1.3]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:88) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:81) ~[crate-app-3.1.3.jar:3.1.3]
Caused by: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.node.Node.<init>(Node.java:268) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.node.CrateNode.<init>(CrateNode.java:66) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:267) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.3.jar:3.1.3]
... 6 more
Caused by: java.nio.file.AccessDeniedException: /home/data
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[?:1.8.0_191]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_191]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_191]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) ~[?:1.8.0_191]
at java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0_191]
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[?:1.8.0_191]
at java.nio.file.Files.createDirectories(Files.java:767) ~[?:1.8.0_191]
at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:204) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.node.Node.<init>(Node.java:265) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.node.CrateNode.<init>(CrateNode.java:66) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:267) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.3.jar:3.1.3]
... 6 more
I have tried a number of changes however googling the errors brings back, understandably entirely elasticsearch topics, given this is just coming as part of crate a lot of the solutions do not work.
any advice very very gratefully recieved
Thanks!
Sam
java elasticsearch cratedb
add a comment |
so i am trying to install CrateDB on a brand new centos7 box and i am running into issues. When running ./crate -Cnetwork.host=[myip] i recieve the following errors
[2018-11-23T11:05:20,857][INFO ][o.e.n.Node ] [Tête de Gaulent] initializing ...
[2018-11-23T11:05:20,873][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [Tête de Gaulent] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.bootstrap.StartupExceptionProxy.<init>(StartupExceptionProxy.java:31) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:159) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.execute(CrateDB.java:135) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:85) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.4.jar:3.1.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.4.jar:3.1.3]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:88) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:81) ~[crate-app-3.1.3.jar:3.1.3]
Caused by: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.node.Node.<init>(Node.java:268) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.node.CrateNode.<init>(CrateNode.java:66) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:267) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.3.jar:3.1.3]
... 6 more
Caused by: java.nio.file.AccessDeniedException: /home/data
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[?:1.8.0_191]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_191]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_191]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) ~[?:1.8.0_191]
at java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0_191]
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[?:1.8.0_191]
at java.nio.file.Files.createDirectories(Files.java:767) ~[?:1.8.0_191]
at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:204) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.node.Node.<init>(Node.java:265) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.node.CrateNode.<init>(CrateNode.java:66) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:267) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.3.jar:3.1.3]
... 6 more
I have tried a number of changes however googling the errors brings back, understandably entirely elasticsearch topics, given this is just coming as part of crate a lot of the solutions do not work.
any advice very very gratefully recieved
Thanks!
Sam
java elasticsearch cratedb
The program just doesn't have access to /home/data: Caused by: java.nio.file.AccessDeniedException: /home/data. Grant it read/write access.
– deHaar
Nov 23 '18 at 11:16
add a comment |
so i am trying to install CrateDB on a brand new centos7 box and i am running into issues. When running ./crate -Cnetwork.host=[myip] i recieve the following errors
[2018-11-23T11:05:20,857][INFO ][o.e.n.Node ] [Tête de Gaulent] initializing ...
[2018-11-23T11:05:20,873][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [Tête de Gaulent] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.bootstrap.StartupExceptionProxy.<init>(StartupExceptionProxy.java:31) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:159) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.execute(CrateDB.java:135) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:85) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.4.jar:3.1.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.4.jar:3.1.3]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:88) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:81) ~[crate-app-3.1.3.jar:3.1.3]
Caused by: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.node.Node.<init>(Node.java:268) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.node.CrateNode.<init>(CrateNode.java:66) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:267) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.3.jar:3.1.3]
... 6 more
Caused by: java.nio.file.AccessDeniedException: /home/data
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[?:1.8.0_191]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_191]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_191]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) ~[?:1.8.0_191]
at java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0_191]
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[?:1.8.0_191]
at java.nio.file.Files.createDirectories(Files.java:767) ~[?:1.8.0_191]
at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:204) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.node.Node.<init>(Node.java:265) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.node.CrateNode.<init>(CrateNode.java:66) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:267) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.3.jar:3.1.3]
... 6 more
I have tried a number of changes however googling the errors brings back, understandably entirely elasticsearch topics, given this is just coming as part of crate a lot of the solutions do not work.
any advice very very gratefully recieved
Thanks!
Sam
java elasticsearch cratedb
so i am trying to install CrateDB on a brand new centos7 box and i am running into issues. When running ./crate -Cnetwork.host=[myip] i recieve the following errors
[2018-11-23T11:05:20,857][INFO ][o.e.n.Node ] [Tête de Gaulent] initializing ...
[2018-11-23T11:05:20,873][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [Tête de Gaulent] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.bootstrap.StartupExceptionProxy.<init>(StartupExceptionProxy.java:31) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:159) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.execute(CrateDB.java:135) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:85) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.4.jar:3.1.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.4.jar:3.1.3]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:88) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:81) ~[crate-app-3.1.3.jar:3.1.3]
Caused by: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.node.Node.<init>(Node.java:268) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.node.CrateNode.<init>(CrateNode.java:66) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:267) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.3.jar:3.1.3]
... 6 more
Caused by: java.nio.file.AccessDeniedException: /home/data
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[?:1.8.0_191]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_191]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_191]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) ~[?:1.8.0_191]
at java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0_191]
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[?:1.8.0_191]
at java.nio.file.Files.createDirectories(Files.java:767) ~[?:1.8.0_191]
at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:204) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.node.Node.<init>(Node.java:265) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.node.CrateNode.<init>(CrateNode.java:66) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy$1.<init>(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.setup(BootstrapProxy.java:202) ~[crate-app-3.1.3.jar:3.1.3]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:267) ~[crate-app-3.1.3.jar:3.1.3]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.3.jar:3.1.3]
... 6 more
I have tried a number of changes however googling the errors brings back, understandably entirely elasticsearch topics, given this is just coming as part of crate a lot of the solutions do not work.
any advice very very gratefully recieved
Thanks!
Sam
java elasticsearch cratedb
java elasticsearch cratedb
edited Nov 23 '18 at 11:41
deHaar
2,15631527
2,15631527
asked Nov 23 '18 at 11:12
Samuel A
82
82
The program just doesn't have access to /home/data: Caused by: java.nio.file.AccessDeniedException: /home/data. Grant it read/write access.
– deHaar
Nov 23 '18 at 11:16
add a comment |
The program just doesn't have access to /home/data: Caused by: java.nio.file.AccessDeniedException: /home/data. Grant it read/write access.
– deHaar
Nov 23 '18 at 11:16
The program just doesn't have access to /home/data: Caused by: java.nio.file.AccessDeniedException: /home/data. Grant it read/write access.
– deHaar
Nov 23 '18 at 11:16
The program just doesn't have access to /home/data: Caused by: java.nio.file.AccessDeniedException: /home/data. Grant it read/write access.
– deHaar
Nov 23 '18 at 11:16
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445623%2fcratedb-elasticsearch-problem-running-as-root-and-binding-ip%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445623%2fcratedb-elasticsearch-problem-running-as-root-and-binding-ip%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The program just doesn't have access to /home/data: Caused by: java.nio.file.AccessDeniedException: /home/data. Grant it read/write access.
– deHaar
Nov 23 '18 at 11:16