Having trouble to login the server with authlib-injector


#1

Recently I’m trying to use Velocity with authlib-injector but failed to login
Logs(Velocity):

[15:20:10] [Netty NIO Worker #2/ERROR]: Unable to enable encryption
java.util.concurrent.CompletionException: io.netty.handler.codec.DecoderException: javax.net.ssl.SSLException: Received fatal alert: handshake_failure
at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:1.8.0_191]
at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) ~[?:1.8.0_191]
at java.util.concurrent.CompletableFuture.uniAccept(Unknown Source) ~[?:1.8.0_191]
at java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source) ~[?:1.8.0_191]
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source) ~[?:1.8.0_191]
at java.util.concurrent.CompletableFuture.completeExceptionally(Unknown Source) ~[?:1.8.0_191]
at com.velocitypowered.proxy.network.http.SimpleHttpResponseCollector.exceptionCaught(SimpleHttpResponseCollector.java:53) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:285) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:264) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.fireExceptionCaught(AbstractChannelHandlerContext.java:256) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireExceptionCaught(CombinedChannelDuplexHandler.java:426) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.ChannelHandlerAdapter.exceptionCaught(ChannelHandlerAdapter.java:87) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.CombinedChannelDuplexHandler$1.fireExceptionCaught(CombinedChannelDuplexHandler.java:147) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.ChannelInboundHandlerAdapter.exceptionCaught(ChannelInboundHandlerAdapter.java:131) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.CombinedChannelDuplexHandler.exceptionCaught(CombinedChannelDuplexHandler.java:233) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:285) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:264) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.fireExceptionCaught(AbstractChannelHandlerContext.java:256) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.ssl.SslHandler.exceptionCaught(SslHandler.java:1074) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:285) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.notifyHandlerException(AbstractChannelHandlerContext.java:856) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:364) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:656) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:591) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:508) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:470) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
Caused by: io.netty.handler.codec.DecoderException: javax.net.ssl.SSLException: Received fatal alert: handshake_failure
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:472) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
… 13 more
Caused by: javax.net.ssl.SSLException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.fatal(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.fatal(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.recvAlert(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.readRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.readNetRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.unwrap(Unknown Source) ~[?:1.8.0_191]
at javax.net.ssl.SSLEngine.unwrap(Unknown Source) ~[?:1.8.0_191]
at io.netty.handler.ssl.SslHandler$SslEngineType$3.unwrap(SslHandler.java:295) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1301) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1203) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1247) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
… 13 more
[15:20:10] [Netty NIO Worker #2/WARN]: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
io.netty.handler.codec.DecoderException: javax.net.ssl.SSLException: Received fatal alert: handshake_failure
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:472) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:405) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:372) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:355) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.ssl.SslHandler.channelInactive(SslHandler.java:1054) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1429) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:947) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:826) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:474) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
Caused by: javax.net.ssl.SSLException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.fatal(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.fatal(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.recvAlert(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.readRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.readNetRecord(Unknown Source) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.unwrap(Unknown Source) ~[?:1.8.0_191]
at javax.net.ssl.SSLEngine.unwrap(Unknown Source) ~[?:1.8.0_191]
at io.netty.handler.ssl.SslHandler$SslEngineType$3.unwrap(SslHandler.java:295) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1301) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1203) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1247) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441) ~[velocity-proxy-1.0-SNAPSHOT-all%23396.jar:1.0-SNAPSHOT (git-7c065e5c-b396)]
… 17 more

Server environment:
OS:Windows 2016 Server Standard running JRE1.8.0_191
JVM options: -javaagent:authlib-injector-1.1.23-209ba0e.jar=https://skin.ripplecraft.gq/api/yggdrasil
Is there anybody who succeeded in using authlib-injector? Please help me.:grin:


#2

It looks like your proxy cannot communicate with your “skin server” due to some SSL problem. My advice is to add -Djavax.net.debug=ssl:handshake:verbose to your startup flags and work off that.

We’re not supporting hacks like authlib-injector that only exist to perpetuate piracy. If you have problems with this, then you’re on your own; you can’t expect help from us.