Upgrade from Traccar 4.14 to 4.15 - However devices and accounts were not moved

gabriel85 4 years ago

Hi,

I use CentOS 7 and used this guide to remove and then install the new version:
https://www.traccar.org/linux/

Problem is that accounts and devices were not moved, so all was "new" without keeping devices and accounts from 4.14.
I don't use a manual configuration so not sure what I'm doing wrong or what went wrong.
Thanks for your help.

Anton Tananaev 4 years ago

You didn't follow the upgrade guide?

https://www.traccar.org/upgrading-traccar/

gabriel85 4 years ago

I removed the old traccar version and installed the new one.
I don't have a modified config file so didn't move or backup that.
However if I also need to backup and restore the database how can I do that with centos 7?

Anton Tananaev 4 years ago

What database are you using?

gabriel85 4 years ago

The default one that came with Traccar when I first installed it, which was 4.7.

Anton Tananaev 4 years ago

OK. It means you are using H2 database. You can just copy files as a backup.

Two important things:

  1. Don't use H2. Migrate to something else like MySQL.
  2. In version 4.15 the file format has changed, so you would need to do migration. Search forum.
Richard Acosta 4 years ago

Probably you deleted the old H2 database when installing new Traccar. That's one of the reasons not to use H2 but Mysql or something alike.

gabriel85 4 years ago

How can I move the existing H2 database data to a MySQL / mariadb database? Using CentOS 7 command line?

And how is file format migration done with CentOS 7?