Service running but error "File corrupted in chunk xxxxx" when trying to display tracks

xav lec 6 years ago

Hello,
My traccar service is actually running (Raspberry Pi), and the live positions of my vehicles are correct.

But when I try to display the track history of one of the devices, it displays this error :

File corrupted in chunk 153113, expected page length 4..8192, got -1 [1.4.199/6] - IllegalStateException (... < QueryBuilder:424 < DataManager:347 < Route:46 < ...)

I suppose that the db is corrupted, but I'd rather ask before doing anything stupid.... :)

What I've checked:
Disk space/inodes available ==> OK
Process running ==> OK
Ports opened ==> OK

Thanks for help.

Anton Tananaev 6 years ago

It is corrupted.

xav lec 6 years ago

What is the best practice to start a new one ? Full reinstall ?
If i want to save my users and devices, is it possible ?

Anton Tananaev 6 years ago

You can try to recover the data:

http://www.h2database.com/html/advanced.html#using_recover_tool

Best practice is not to use default H2 database. I would recommend MySQL.

xav lec 6 years ago

Ok I will try your solution.

Thank you