Upgrade from 5.8 to 5.9 Error

gLeW7 months ago

Hi im trying to update my traccar server (ubuntu) from 5.8 to 5.9

  1. i try to download version 5.9 and run sudo ./traccar.run

  2. i follow the steps 1 to 8 from this page https://www.traccar.org/upgrading-traccar/

when i start the service of traccar again the file database.trace.db start to grow up, i leave more than 30 min and nothing (the database.mv.db size its 2.2gb)

When i try to login via the browser localhost:8082 NetworkError when attempting to fetch resource.

And if i try to enter via any other computer receive this message

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>503 Service Unavailable</title> </head><body> <h1>Service Unavailable</h1> <p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p> <hr> <address>Apache/2.4.57 (Ubuntu) Server at Port 443</address> </body></html>

I try to stop and restart the service, the computer and nothing, if i put the version 5.8 again work fine.

gLeW7 months ago

And the log give this error continually

2023-10-21 22:46:35  INFO: Operating system name: Linux version: 6.2.0-35-generic architecture: amd64
2023-10-21 22:46:35  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.6+10
2023-10-21 22:46:35  INFO: Memory limit heap: 3942mb non-heap: 0mb
2023-10-21 22:46:35  INFO: Character encoding: UTF-8 charset: UTF-8
2023-10-21 22:46:35  INFO: Version: 5.9
2023-10-21 22:46:35  INFO: Starting server...
2023-10-21 22:46:35  INFO: HikariPool-1 - Starting...
2023-10-21 22:46:36 ERROR: HikariPool-1 - Exception during pool initialization. - The write format 2 is smaller than the supported format 3 [2.2.220/5] - MVStoreException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < MainModule:126 < ...)
2023-10-21 22:46:36 ERROR: Main method error - The write format 2 is smaller than the supported format 3 [2.2.220/5] - MVStoreException (... < DatabaseModule:79 < <gener:-1 < *:-1 < ... < MainModule:126 < ...)
Anton Tananaev7 months ago

Have you tried searching? Basically you're using H2 database against our recommendation and they changed the format, so it's incompatible with the old version. You have to migrate it manually.