Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpMonitorTransport - Exception while executing request #7

Open
elgersonloco opened this issue Aug 10, 2016 · 5 comments
Open

HttpMonitorTransport - Exception while executing request #7

elgersonloco opened this issue Aug 10, 2016 · 5 comments

Comments

@elgersonloco
Copy link

2016-08-10 18:00:44,949 DEBUG: org.graylog2.plugin.httpmonitor.HttpMonitorTransport - Exception while executing request for URL https://midominio.com:8081/v1
java.util.concurrent.ExecutionException: java.net.ConnectException: https://midominio.com:8081
at com.ning.http.client.providers.netty.future.NettyResponseFuture.abort(NettyResponseFuture.java:231) ~[?:?]
at com.ning.http.client.providers.netty.request.NettyConnectListener.onFutureFailure(NettyConnectListener.java:135) ~[?:?]
at com.ning.http.client.providers.netty.request.NettyConnectListener.access$200(NettyConnectListener.java:37) ~[?:?]
at com.ning.http.client.providers.netty.request.NettyConnectListener$1.operationComplete(NettyConnectListener.java:104) ~[?:?]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:409) ~[graylog.jar:?]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:395) ~[graylog.jar:?]
at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:362) ~[graylog.jar:?]
at org.jboss.netty.handler.ssl.SslHandler.channelDisconnected(SslHandler.java:575) ~[graylog.jar:?]
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102) ~[graylog.jar:?]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) ~[graylog.jar:?]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) ~[graylog.jar:?]
at org.jboss.netty.channel.Channels.fireChannelDisconnected(Channels.java:396) ~[graylog.jar:?]
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:360) ~[graylog.jar:?]
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:93) ~[graylog.jar:?]
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) ~[graylog.jar:?]
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) ~[graylog.jar:?]
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) ~[graylog.jar:?]
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) ~[graylog.jar:?]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) ~[graylog.jar:?]
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) ~[graylog.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_91]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]
Caused by: java.net.ConnectException: https://midominio.com:8081
at com.ning.http.client.providers.netty.request.NettyConnectListener.onFutureFailure(NettyConnectListener.java:131) ~[?:?]
... 21 more
Caused by: java.nio.channels.ClosedChannelException
... 16 more

@sivasamyk
Copy link
Owner

Looks like there is some issue with SSL handshake. I have fixed the issues by explicitly specifying the SSL protocols to be used. Please use this update plugin and jar let me know if your issue is fixed.

Attached is the zip file. Please unzip to get the jar.

graylog2-plugin-input-httpmonitor-1.0.3.jar.zip

@sivasamyk
Copy link
Owner

sivasamyk commented Aug 18, 2016

Hi @elgersonloco
Did you get time to try out the above plugin jar with fix?

@danvey
Copy link

danvey commented Jun 7, 2017

Hijacking this one, as no reply from user :-) I just installed the plugin, and I am also getting a SSL handshake issue.

Tried the .jar file you provided above, but now I am getting the following:
Request failed :java.net.ConnectException: handshake alert: unrecognized_name

Any tips?

sivasamyk added a commit that referenced this issue Jun 7, 2017
@sivasamyk
Copy link
Owner

@danvey This is due to wildcard / multi-domain SSL certificates when SNI is enabled in Java. There is a workaround for this issue. You can pass -Djsse.enableSNIExtension=false setting to graylog JVM to disable SNI at JVM level. Please be aware of security implications. The JVM settings can be changed in graylog-server file

@danvey
Copy link

danvey commented Jun 8, 2017

@sivasamyk Thanks, this worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants