CrateDB Bind Local IP












3














I have setup 3 node with same cluster.



Is there any way to bind local ip for individual createdb node which can only be accessible from same host ?



I tried following but not working.



    crate01:
image: crate
container_name: raycrate01
hostname: crate01
volumes:
- ~/docker-volumes/demo/data/crate:/data
ports:
- "4200:4200"
- "4300:4300"
- "5432:5432"
environment:
CRATE_HEAP_SIZE: 1g
command: crate -Ccluster.name=cluster -Cnode.name=crate01 -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 -Cgateway.recover_after_nodes=2 -Cgateway.recover_after_time=2m -Cgateway.expected_nodes=3 -Clicense.enterprise=false -Cdiscovery.zen.minimum_master_nodes=2


Getting Exception while applying above configuration



org.elasticsearch.bootstrap.StartupException: BindPostgresException[Failed to bind to [5432-5532]]; nested: BindException[Address not available];
at org.elasticsearch.bootstrap.StartupExceptionProxy.<init>(StartupExceptionProxy.java:31) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:159) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.execute(CrateDB.java:135) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:85) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.4.jar:3.1.2]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.4.jar:3.1.2]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:88) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:81) ~[crate-app-3.1.2.jar:3.1.2]
Caused by: io.crate.protocols.postgres.BindPostgresException: Failed to bind to [5432-5532]
at io.crate.protocols.postgres.PostgresNetty.bindAddress(PostgresNetty.java:224) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.protocols.postgres.PostgresNetty.resolveBindAddress(PostgresNetty.java:191) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.protocols.postgres.PostgresNetty.doStart(PostgresNetty.java:153) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:66) ~[crate-app-3.1.2.jar:3.1.2]
at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_181]
at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1080) ~[?:1.8.0_181]
at org.elasticsearch.node.Node.start(Node.java:595) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.bootstrap.BootstrapProxy.start(BootstrapProxy.java:215) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:269) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.2.jar:3.1.2]
... 6 more
Caused by: java.net.BindException: Address not available
at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:433) ~[?:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:425) ~[?:1.8.0_181]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[?:1.8.0_181]
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:130) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:446) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]









share|improve this question






















  • Silly question but there wouldn't be something running on 5432-5532 ports? PostgreSQL?
    – metase
    Nov 30 at 1:15










  • @metase Hey the postgresql running on port 5432. but when we used -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 Its stared throwing this exception. This is more about bind ip to single host not a port.
    – Bhargav Patel
    Dec 6 at 5:18












  • if you're binding on private ip then you may want to use <pre>network.host: _site_</pre> setting instead, I also had trouble with setting hosts incorrectly, I think the documentation makes it a little unclear -
    – metase
    Dec 6 at 9:58












  • @metase The syntax which i have used that is available on CrateDB official site
    – Bhargav Patel
    Dec 6 at 11:16










  • ha yeah but there are mistakes :), if you remove all those commands from startup and edit yml file instead you should be able to run it successfully
    – metase
    Dec 6 at 12:10
















3














I have setup 3 node with same cluster.



Is there any way to bind local ip for individual createdb node which can only be accessible from same host ?



I tried following but not working.



    crate01:
image: crate
container_name: raycrate01
hostname: crate01
volumes:
- ~/docker-volumes/demo/data/crate:/data
ports:
- "4200:4200"
- "4300:4300"
- "5432:5432"
environment:
CRATE_HEAP_SIZE: 1g
command: crate -Ccluster.name=cluster -Cnode.name=crate01 -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 -Cgateway.recover_after_nodes=2 -Cgateway.recover_after_time=2m -Cgateway.expected_nodes=3 -Clicense.enterprise=false -Cdiscovery.zen.minimum_master_nodes=2


Getting Exception while applying above configuration



org.elasticsearch.bootstrap.StartupException: BindPostgresException[Failed to bind to [5432-5532]]; nested: BindException[Address not available];
at org.elasticsearch.bootstrap.StartupExceptionProxy.<init>(StartupExceptionProxy.java:31) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:159) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.execute(CrateDB.java:135) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:85) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.4.jar:3.1.2]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.4.jar:3.1.2]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:88) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:81) ~[crate-app-3.1.2.jar:3.1.2]
Caused by: io.crate.protocols.postgres.BindPostgresException: Failed to bind to [5432-5532]
at io.crate.protocols.postgres.PostgresNetty.bindAddress(PostgresNetty.java:224) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.protocols.postgres.PostgresNetty.resolveBindAddress(PostgresNetty.java:191) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.protocols.postgres.PostgresNetty.doStart(PostgresNetty.java:153) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:66) ~[crate-app-3.1.2.jar:3.1.2]
at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_181]
at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1080) ~[?:1.8.0_181]
at org.elasticsearch.node.Node.start(Node.java:595) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.bootstrap.BootstrapProxy.start(BootstrapProxy.java:215) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:269) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.2.jar:3.1.2]
... 6 more
Caused by: java.net.BindException: Address not available
at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:433) ~[?:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:425) ~[?:1.8.0_181]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[?:1.8.0_181]
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:130) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:446) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]









share|improve this question






















  • Silly question but there wouldn't be something running on 5432-5532 ports? PostgreSQL?
    – metase
    Nov 30 at 1:15










  • @metase Hey the postgresql running on port 5432. but when we used -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 Its stared throwing this exception. This is more about bind ip to single host not a port.
    – Bhargav Patel
    Dec 6 at 5:18












  • if you're binding on private ip then you may want to use <pre>network.host: _site_</pre> setting instead, I also had trouble with setting hosts incorrectly, I think the documentation makes it a little unclear -
    – metase
    Dec 6 at 9:58












  • @metase The syntax which i have used that is available on CrateDB official site
    – Bhargav Patel
    Dec 6 at 11:16










  • ha yeah but there are mistakes :), if you remove all those commands from startup and edit yml file instead you should be able to run it successfully
    – metase
    Dec 6 at 12:10














3












3








3


2





I have setup 3 node with same cluster.



Is there any way to bind local ip for individual createdb node which can only be accessible from same host ?



I tried following but not working.



    crate01:
image: crate
container_name: raycrate01
hostname: crate01
volumes:
- ~/docker-volumes/demo/data/crate:/data
ports:
- "4200:4200"
- "4300:4300"
- "5432:5432"
environment:
CRATE_HEAP_SIZE: 1g
command: crate -Ccluster.name=cluster -Cnode.name=crate01 -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 -Cgateway.recover_after_nodes=2 -Cgateway.recover_after_time=2m -Cgateway.expected_nodes=3 -Clicense.enterprise=false -Cdiscovery.zen.minimum_master_nodes=2


Getting Exception while applying above configuration



org.elasticsearch.bootstrap.StartupException: BindPostgresException[Failed to bind to [5432-5532]]; nested: BindException[Address not available];
at org.elasticsearch.bootstrap.StartupExceptionProxy.<init>(StartupExceptionProxy.java:31) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:159) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.execute(CrateDB.java:135) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:85) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.4.jar:3.1.2]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.4.jar:3.1.2]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:88) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:81) ~[crate-app-3.1.2.jar:3.1.2]
Caused by: io.crate.protocols.postgres.BindPostgresException: Failed to bind to [5432-5532]
at io.crate.protocols.postgres.PostgresNetty.bindAddress(PostgresNetty.java:224) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.protocols.postgres.PostgresNetty.resolveBindAddress(PostgresNetty.java:191) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.protocols.postgres.PostgresNetty.doStart(PostgresNetty.java:153) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:66) ~[crate-app-3.1.2.jar:3.1.2]
at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_181]
at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1080) ~[?:1.8.0_181]
at org.elasticsearch.node.Node.start(Node.java:595) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.bootstrap.BootstrapProxy.start(BootstrapProxy.java:215) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:269) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.2.jar:3.1.2]
... 6 more
Caused by: java.net.BindException: Address not available
at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:433) ~[?:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:425) ~[?:1.8.0_181]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[?:1.8.0_181]
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:130) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:446) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]









share|improve this question













I have setup 3 node with same cluster.



Is there any way to bind local ip for individual createdb node which can only be accessible from same host ?



I tried following but not working.



    crate01:
image: crate
container_name: raycrate01
hostname: crate01
volumes:
- ~/docker-volumes/demo/data/crate:/data
ports:
- "4200:4200"
- "4300:4300"
- "5432:5432"
environment:
CRATE_HEAP_SIZE: 1g
command: crate -Ccluster.name=cluster -Cnode.name=crate01 -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 -Cgateway.recover_after_nodes=2 -Cgateway.recover_after_time=2m -Cgateway.expected_nodes=3 -Clicense.enterprise=false -Cdiscovery.zen.minimum_master_nodes=2


Getting Exception while applying above configuration



org.elasticsearch.bootstrap.StartupException: BindPostgresException[Failed to bind to [5432-5532]]; nested: BindException[Address not available];
at org.elasticsearch.bootstrap.StartupExceptionProxy.<init>(StartupExceptionProxy.java:31) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:159) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.execute(CrateDB.java:135) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:85) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.4.jar:3.1.2]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.4.jar:3.1.2]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:88) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.main(CrateDB.java:81) ~[crate-app-3.1.2.jar:3.1.2]
Caused by: io.crate.protocols.postgres.BindPostgresException: Failed to bind to [5432-5532]
at io.crate.protocols.postgres.PostgresNetty.bindAddress(PostgresNetty.java:224) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.protocols.postgres.PostgresNetty.resolveBindAddress(PostgresNetty.java:191) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.protocols.postgres.PostgresNetty.doStart(PostgresNetty.java:153) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:66) ~[crate-app-3.1.2.jar:3.1.2]
at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_181]
at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1080) ~[?:1.8.0_181]
at org.elasticsearch.node.Node.start(Node.java:595) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.bootstrap.BootstrapProxy.start(BootstrapProxy.java:215) ~[crate-app-3.1.2.jar:3.1.2]
at org.elasticsearch.bootstrap.BootstrapProxy.init(BootstrapProxy.java:269) ~[crate-app-3.1.2.jar:3.1.2]
at io.crate.bootstrap.CrateDB.init(CrateDB.java:155) ~[crate-app-3.1.2.jar:3.1.2]
... 6 more
Caused by: java.net.BindException: Address not available
at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:433) ~[?:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:425) ~[?:1.8.0_181]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[?:1.8.0_181]
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:130) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:446) ~[netty-transport-4.1.29.Final.jar:4.1.29.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) ~[netty-common-4.1.29.Final.jar:4.1.29.Final]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]






crate cratedb






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 at 13:29









Bhargav Patel

606514




606514












  • Silly question but there wouldn't be something running on 5432-5532 ports? PostgreSQL?
    – metase
    Nov 30 at 1:15










  • @metase Hey the postgresql running on port 5432. but when we used -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 Its stared throwing this exception. This is more about bind ip to single host not a port.
    – Bhargav Patel
    Dec 6 at 5:18












  • if you're binding on private ip then you may want to use <pre>network.host: _site_</pre> setting instead, I also had trouble with setting hosts incorrectly, I think the documentation makes it a little unclear -
    – metase
    Dec 6 at 9:58












  • @metase The syntax which i have used that is available on CrateDB official site
    – Bhargav Patel
    Dec 6 at 11:16










  • ha yeah but there are mistakes :), if you remove all those commands from startup and edit yml file instead you should be able to run it successfully
    – metase
    Dec 6 at 12:10


















  • Silly question but there wouldn't be something running on 5432-5532 ports? PostgreSQL?
    – metase
    Nov 30 at 1:15










  • @metase Hey the postgresql running on port 5432. but when we used -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 Its stared throwing this exception. This is more about bind ip to single host not a port.
    – Bhargav Patel
    Dec 6 at 5:18












  • if you're binding on private ip then you may want to use <pre>network.host: _site_</pre> setting instead, I also had trouble with setting hosts incorrectly, I think the documentation makes it a little unclear -
    – metase
    Dec 6 at 9:58












  • @metase The syntax which i have used that is available on CrateDB official site
    – Bhargav Patel
    Dec 6 at 11:16










  • ha yeah but there are mistakes :), if you remove all those commands from startup and edit yml file instead you should be able to run it successfully
    – metase
    Dec 6 at 12:10
















Silly question but there wouldn't be something running on 5432-5532 ports? PostgreSQL?
– metase
Nov 30 at 1:15




Silly question but there wouldn't be something running on 5432-5532 ports? PostgreSQL?
– metase
Nov 30 at 1:15












@metase Hey the postgresql running on port 5432. but when we used -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 Its stared throwing this exception. This is more about bind ip to single host not a port.
– Bhargav Patel
Dec 6 at 5:18






@metase Hey the postgresql running on port 5432. but when we used -Cnetwork.host=192.16.18.121 -Cnetwork.bind_host=192.16.18.121 -Cnetwork.publish_host=192.16.18.121 Its stared throwing this exception. This is more about bind ip to single host not a port.
– Bhargav Patel
Dec 6 at 5:18














if you're binding on private ip then you may want to use <pre>network.host: _site_</pre> setting instead, I also had trouble with setting hosts incorrectly, I think the documentation makes it a little unclear -
– metase
Dec 6 at 9:58






if you're binding on private ip then you may want to use <pre>network.host: _site_</pre> setting instead, I also had trouble with setting hosts incorrectly, I think the documentation makes it a little unclear -
– metase
Dec 6 at 9:58














@metase The syntax which i have used that is available on CrateDB official site
– Bhargav Patel
Dec 6 at 11:16




@metase The syntax which i have used that is available on CrateDB official site
– Bhargav Patel
Dec 6 at 11:16












ha yeah but there are mistakes :), if you remove all those commands from startup and edit yml file instead you should be able to run it successfully
– metase
Dec 6 at 12:10




ha yeah but there are mistakes :), if you remove all those commands from startup and edit yml file instead you should be able to run it successfully
– metase
Dec 6 at 12:10

















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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282110%2fcratedb-bind-local-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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282110%2fcratedb-bind-local-ip%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Guess what letter conforming each word

Port of Spain

Run scheduled task as local user group (not BUILTIN)