update traccar from 4.14 to 6.6

zemidjana day ago

Hello
I am so sorry.
I updated my traccar server from 4.14 to 6.6.
When I try to create a new user, I get : Unrecognized field "twelveHourFormat" (class org.traccar.model.User), not marked as ignorable (25 known properties: "readonly", "limitCommands", "deviceLimit", "poiLayer", "fixedEmail", "login", "name", "latitude", "administrator", "phone", "longitude", "userLimit", "temporary", "zoom", "attributes", "deviceReadonly", "id", "email", "totpKey", "coordinateFormat", "disableReports", "password", "map", "disabled", "expirationTime"]) at [Source: REDACTED ('StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION' disabled); line: 1, column: 226] (through reference chain: org.traccar.model.User["twelveHourFormat"])

I followed exactely https://www.traccar.org/upgrading-traccar/
I searched everywhere in th forum how fix it.
Please, help me.
Thank you so much.

  1. Are you sure you upgraded both server and the web app?
  2. Are you using official version without any modifications?
  3. Have you cleared the browser cache?
zemidjan18 hours ago

Hi Anton
Thanks so much for your work.
I think it is ok now. Here is what I did :

  1. I stopped traccar : systemctl stop traccar
  2. I renamed the old traccar folder : mv /opt/traccar /opt/traccar.v4.14
  3. I downloaded and I reinstalled the last version so /opt/traccar has been recreated by ./traccar.run command
  4. After that I just copied traccar.xml from /opt/traccar.v4.14 to the new /opt/traccar
  5. I restarted traccar : systemctl start traccar
Anton Tananaev15 hours ago

How is that different from what you did before?

rolsch15 hours ago

...and the DB-File or use you a external SQL DB?

zemidjan13 hours ago

@Anton Before, I just saved my old traccar.xml and reinstalled the last version of traccar over the old /opt/traccar.
@Rolsc, I don't know what do you mean by external ? my DB is on the same host with traccar server but I use a mariadb docker in a docker-compose file.

Anton Tananaev11 hours ago

But you said you followed the guide exactly. The guide clearly says you have to remove the old version.