Error upgrading v4 to 5.1

Sergio Cano2 years ago

Hi,

I have updated my Ubuntu server with version of Traccar 4 to 5.1 and when starting the service it gives me the following error:

root@traccar:~# service traccar status
● traccar.service - traccar
     Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2022-07-11 19:37:27 UTC; 3min 26s ago
   Main PID: 2573 (java)
      Tasks: 24 (limit: 4612)
     Memory: 148.1M
     CGroup: /system.slice/traccar.service
             └─2573 /opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml

jul 11 19:37:27 traccar systemd[1]: Started traccar.
jul 11 19:37:32 traccar traccar[2573]: Exception in thread "main" java.lang.RuntimeException: io.netty.channel.StacklessClosedChannelException
jul 11 19:37:32 traccar traccar[2573]:         at org.traccar.Main.run(Main.java:148)
jul 11 19:37:32 traccar traccar[2573]:         at org.traccar.Main.main(Main.java:112)
jul 11 19:37:32 traccar traccar[2573]: Caused by: io.netty.channel.StacklessClosedChannelException
jul 11 19:37:32 traccar traccar[2573]:         at io.netty.channel.AbstractChannel$AbstractUnsafe.ensureOpen(ChannelPromise)(Unknown Source)

Any ideas how to correct this?

Replacing the files in the /opt/traccar/data folder gives that error.
If I leave the files in the data folder by default if I skip at least the login on the web

Thanks!!!

Anton Tananaev2 years ago

Check logs.

Sergio Cano2 years ago
2022-07-11 19:58:03  INFO: Operating system name: Linux version: 5.4.0-122-generic architecture: amd64
2022-07-11 19:58:03  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: ojdkbuild version: 11.0.13+8-LTS
2022-07-11 19:58:03  INFO: Memory limit heap: 984mb non-heap: 0mb
2022-07-11 19:58:03  INFO: Character encoding: UTF-8 charset: UTF-8
2022-07-11 19:58:03  INFO: Version: 5.1
2022-07-11 19:58:03  INFO: Starting server...
2022-07-11 19:58:04  INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer>
2022-07-11 19:58:05  INFO: HikariPool-1 - Starting...
2022-07-11 19:58:06 ERROR: HikariPool-1 - Exception during pool initialization. - The write format 1 is smaller than the supported format 2 [2.0.206/5] - MVStor>
2022-07-11 19:58:06  WARN: Failed to initialize a channel. Closing: [id: 0x243f700a] - The write format 1 is smaller than the supported format 2 [2.0.206/5] - M>
2022-07-11 19:58:06 ERROR: Main method error - StacklessClosedChannelException (...)
Anton Tananaev2 years ago

You should search. This issue has been discussed multiple times on the forum.

Sergio Cano2 years ago

Hi,

Indeed I have followed these steps and I have been able to repair the DB H2.

https://www.traccar.org/forums/topic/error-to-update-to-415/#post-68711

The next step is to see to migrate to MySQL.

Thank you