Solved: Problem Upgrading from ver 23.3 to ver 24.0

Hi

I am trying to upgrade my local server from ver 23.3 to ver 24.0.

I see there is a new server.properties files, so I migrated to the new version.

When I run version 24.0 everything starts up and runs perfectly.
All my projects seem to be working and I can login via the phone application.

However, I can access the admin console.
I am not running any separate DB.

I get the following rather Long error

2017-04-23 15:23:16.223 ERROR- Unexpected error!!!
java.lang.ClassCastException: java.net.Inet4Address cannot be cast to java.net.Inet6Address
	at io.netty.handler.ipfilter.IpSubnetFilterRule$Ip6SubnetFilterRule.matches(IpSubnetFilterRule.java:150) ~[server-0.24.0.jar:?]
	at io.netty.handler.ipfilter.IpSubnetFilterRule.matches(IpSubnetFilterRule.java:67) ~[server-0.24.0.jar:?]
	at cc.blynk.server.admin.http.handlers.IpFilterHandler.accept(IpFilterHandler.java:64) ~[server-0.24.0.jar:?]
	at cc.blynk.server.api.http.handlers.HttpAndWebSocketUnificatorHandler.isIpNotAllowed(HttpAndWebSocketUnificatorHandler.java:128) ~[server-0.24.0.jar:?]
	at cc.blynk.server.api.http.handlers.HttpAndWebSocketUnificatorHandler.initAdminPipeline(HttpAndWebSocketUnificatorHandler.java:132) ~[server-0.24.0.jar:?]
	at cc.blynk.server.api.http.handlers.HttpAndWebSocketUnificatorHandler.channelRead(HttpAndWebSocketUnificatorHandler.java:116) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[server-0.24.0.jar:?]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[server-0.24.0.jar:?]
	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) ~[server-0.24.0.jar:?]
	at io.netty.handler.codec.http.HttpServerKeepAliveHandler.channelRead(HttpServerKeepAliveHandler.java:64) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[server-0.24.0.jar:?]
	at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:438) ~[server-0.24.0.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) ~[server-0.24.0.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) ~[server-0.24.0.jar:?]
	at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:253) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[server-0.24.0.jar:?]
	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1240) ~[server-0.24.0.jar:?]
	at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1041) ~[server-0.24.0.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411) ~[server-0.24.0.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[server-0.24.0.jar:?]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[server-0.24.0.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[server-0.24.0.jar:?]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) ~[server-0.24.0.jar:?]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134) ~[server-0.24.0.jar:?]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:624) ~[server-0.24.0.jar:?]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:559) ~[server-0.24.0.jar:?]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:476) ~[server-0.24.0.jar:?]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438) ~[server-0.24.0.jar:?]
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[server-0.24.0.jar:?]
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) ~[server-0.24.0.jar:?]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
2017-04-23 15:23:16.223 ERROR- Handler class : class cc.blynk.server.api.http.handlers.HttpAndWebSocketUnificatorHandler. Name : HttpsWebSocketUnificator

What do I need to change/fix?

Thanks in advance

Hello. This is known issue and already fixed - https://github.com/blynkkk/blynk-server/issues/568. Fix will be available in 0.24.1 version.

As quick fix you may change :

allowed.administrator.ips

to

allowed.administrator.ips=::/0

Hi

I have made the change and still have the same error. The admin/login page does not even load.

Did you restart server?

I did restart the local server and have even tried restarting the whole machine.

Ok. What was previous value for that field?

When running version 23.3 is was 0.0.0.0/0

When I upgraded to version 24.0 I used 0.0.0.0/0,::/0

It’s now set to ::/0

Ah, I see. You took latest properties… Ok. Please use allowed.administrator.ips=0.0.0.0/0

That worked like a charm.

Thank you so much for all your assistance.