Can not create New User

Macan3 years ago

Hello,

I just backup the database from one server and restore it to another server, everything is fine except that I can not create new users in the traccar , I get this error when I try to create an user account:

Unrecognized field "disableReports" (class org.traccar.model.User), not marked as ignorable (23 known properties: "readonly", "limitCommands", "deviceLimit", "poiLayer", "login", "name", "latitude", "administrator", "phone", "longitude", "userLimit", "zoom", "twelveHourFormat", "attributes", "deviceReadonly", "token", "id", "email", "coordinateFormat", "password", "map", "disabled", "expirationTime"])
 at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 347] (through reference chain: org.traccar.model.User["disableReports"])

Can someone help me

Anton Tananaev3 years ago

The problem is that you're not using an official release and you haven't updated all the required files.

Macan3 years ago

strange, I installed traccar normaly (latest version) . Only thing that I changed is removing some map tiles (locationIQ Satelite and hybrid) from MapBase.js and do compile app.min.js and replace it with new one.

I will try to uninstall and install again traccar and let you know is everything ok.

Than you.

Macan3 years ago

I found our that the problem is with my newly compiled app.min.js file , when I use that compiled app.min.js error came up .

I was using this tutorial to compile , is it still ok to use this tutorial: https://www.traccar.org/forums/topic/build-traccar-from-source-via-command-line-method-on-ubuntu-server-16-10/

Anton Tananaev3 years ago

This is outdated. With the latest code you should use npm to compile the app.

I think the actual issue is that you are not taking the corresponding version of the web app. It seems like you're taking latest master and that's exactly what I mean by "not using an official release". Your web app version should match backend version obviously.

Macan3 years ago

thank you Anton.

Well for the installation I was used this link: https://github.com/traccar/traccar/releases/download/v4.15/traccar-linux-64-4.15.zip

but when I compile app.min.js , I was used this links:

$ git clone https://github.com/tananaev/traccar.git
$ git clone https://github.com/tananaev/traccar-web.git
Anton Tananaev3 years ago

That's exactly the problem. You are using source code from the work-in-progress future version of Traccar, so it's not guaranteed to be compatible with 4.15 backend. You should use source code from the tag, as we clearly recommend in the documentation.

Macan3 years ago

Ah sorry, I understand now. I will do like you wrote.

Thank you again !