Netty error on 5.2

Luiz Kill2 years ago

Hi folks. I'm trying to run the 5.2 release on two fresh Oracle Linux 8 machines. Tha dabatase is MariaDb. Here's what I've got:

Exception in thread "main" java.lang.RuntimeException: io.netty.channel.StacklessClosedChannelException
    at org.traccar.Main.run(Main.java:148)
    at org.traccar.Main.main(Main.java:112)
Caused by: io.netty.channel.StacklessClosedChannelException
    at io.netty.channel.AbstractChannel$AbstractUnsafe.ensureOpen(ChannelPromise)(Unknown Source)

My config:

    <entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://XXX/traccar?serverTimezone=UTC&amp;allowPublicKeyRetrieval=true&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>traccar</entry>
    <entry key='database.password'>XXX</entry>

Any ideas?

Anton Tananaev2 years ago

There's no line 148 in Main.java. Are you sure you're using an official release?

Also check logs.

Anton Tananaev2 years ago

Sorry, looked at the old version. There's line 148, but you need to check logs for a more relevant error.

Luiz Kill2 years ago

My bad! It was just a connection issue, wrong network security groups. God save the logs!

Thanks Anton!