Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Dec 2017 12:53:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 224079] java/openjdk8: Elasticsearch won't start after OpenJDK upgrade
Message-ID:  <bug-224079-8522-6qYekXTnAr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224079-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-224079-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
bra@fsn.hu has reassigned Bugzilla Automation <bugzilla@FreeBSD.org>'s requ=
est
for maintainer-feedback to java@FreeBSD.org:
Bug 224079: java/openjdk8: Elasticsearch won't start after OpenJDK upgrade
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224079



--- Description ---
When I start Elasticsearch (5.6.4, with the default configuration) with
OpenJDK8 8.152.16, it dies with:
[2017-12-04T13:49:57,971][INFO ][o.e.n.Node		  ] initialized
[2017-12-04T13:49:57,972][INFO ][o.e.n.Node		  ] [amnEplp] starting
...
[2017-12-04T13:49:58,317][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandle=
r]
[] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: BindTransportException[Failed=
 to
bind to [9300-9400]]; nested: BindException[Can't assign requested address];
	at
org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareComma=
nd.j
ava:70)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134)
~[elasticsearch-5.6.4.jar:5.6.4]
	at org.elasticsearch.cli.Command.main(Command.java:90)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84)
~[elasticsearch-5.6.4.jar:5.6.4]
Caused by: org.elasticsearch.transport.BindTransportException: Failed to bi=
nd
to [9300-9400]
	at
org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:783)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:748)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.=
java
:174)
~[?:?]
	at
org.elasticsearch.common.component.AbstractLifecycleComponent.start(Abstrac=
tLif
ecycleComponent.java:69)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.transport.TransportService.doStart(TransportService.java:=
219)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.common.component.AbstractLifecycleComponent.start(Abstrac=
tLif
ecycleComponent.java:69)
~[elasticsearch-5.6.4.jar:5.6.4]
	at org.elasticsearch.node.Node.start(Node.java:694)
~[elasticsearch-5.6.4.jar:5.6.4]
	at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:278)
~[elasticsearch-5.6.4.jar:5.6.4]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:351)
~[elasticsearch-5.6.4.jar:5.6.4]
	at
org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132)
~[elasticsearch-5.6.4.jar:5.6.4]
	... 6 more
Caused by: java.net.BindException: Can't assign requested address
	at sun.nio.ch.Net.bind0(Native Method) ~[?:?]
	at sun.nio.ch.Net.bind(Net.java:433) ~[?:?]
	at sun.nio.ch.Net.bind(Net.java:425) ~[?:?]
	at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
~[?:?]
	at
io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketCh=
anne
l.java:128)
~[?:?]
	at
io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:5=
54)
~[?:?]
	at
io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipe=
line
.java:1258)
~[?:?]
	at
io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHa=
ndle
rContext.java:501)
~[?:?]
	at
io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerC=
onte
xt.java:486)
~[?:?]
	at
io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:98=
0)
~[?:?]
	at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:250)
~[?:?]
	at
io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:365) ~[?:=
?]
	at
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExe=
cuto
r.java:163)
~[?:?]
	at
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThread=
Even
tExecutor.java:403)
~[?:?]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:462) ~[?:?]
	at
io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventE=
xecu
tor.java:858)
~[?:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_152]
[2017-12-04T13:49:59,027][INFO ][o.e.n.Node		  ] [amnEplp] stopping
...

Taking a look at it with ktrace shows that this is where it stops:
 99579 java	CALL  bind(0x79,0x7fffdeeec278,0x1c)
 99579 java	STRU  struct sockaddr { AF_INET6, [::1%2]:9300 }
 99579 java	RET   bind -1 errno 49 Can't assign requested address

Elasticsearch works fine with the previous OpenJDK version: 8.144.1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224079-8522-6qYekXTnAr>