Default admin user has no admin permission after compile

bitflow6 years ago

Hello, I tried to compile traccar to increase zoom level to 21, so now I can zoom till 5 meters, but I notice that the menu hides the items 'server' and 'user' like if it was a normal user..and also in the profile menu the permissions can't be changed..all buttons are greyed out. So I tried to create installer traccar.run, installed my traccar-linux-3.16-SNAPSHOT and put my database..but still the items to set server and users are missing..how is it possible? thanks in advance.

Anton Tananaev6 years ago

What code are you compiling? Make sure you take tag corresponding to the back-end that you are using.

bitflow6 years ago

HI Anton, thank you for your reply. All I did was to git clone the source (yesterday) and followed this guides:
https://www.traccar.org/build-in-netbeans
https://www.traccar.org/forums/topic/build-traccar-from-source-via-command-line-method-on-ubuntu-server-16-10
compiling went straight without any errors.
What do you mean for tags?

Anton Tananaev6 years ago

I think you need to do some reading about git and git tags.

bitflow6 years ago

Thank you very much Anton..I've checkout the v3.15 and now it works!

keith siilats6 years ago

It looks like its because they renamed the admin column in database to administrator
https://github.com/traccar/traccar/commit/4aea55186a2374350f825cf2008847ce4c5ae87c
So if you checkout latest git, compile, replace jar in production and start it doesnt give you administrator

Zecman6 years ago
  • off-topic / deleted / sorry -