Running traccar after compilation

absingh7 years ago

Hi

Am trying to build traccar and (possibly to add logs to understand the flow better and maybe add a couple of features in API if I could). But am unable to get it to run properly.
These are the steps I followed.

  1. Downloaded and installed 3.13 for Linux. Added a device and things worked beautifully.
  2. Cloned the most recent code from github (master branch), packaged it using maven and replaced the traccar-server.jar file and restarted the service.
  3. The service restarts with following informational logs
    2017-08-09 18:05:37  INFO: Query not provided: database.selectUsers
    2017-08-09 18:05:37  INFO: Query not provided: database.selectUserUsers
    2017-08-09 18:05:37  INFO: Query not provided: database.selectGroups
    2017-08-09 18:05:37  INFO: Query not provided: database.selectDevices
    2017-08-09 18:05:37  INFO: Query not provided: database.selectGroups
    2017-08-09 18:05:37  INFO: Query not provided: database.selectDevices
    2017-08-09 18:05:37  INFO: Query not provided: database.selectUserGroups
    2017-08-09 18:05:37  INFO: Query not provided: database.selectUserDevices
    2017-08-09 18:05:37  INFO: Query not provided: database.selectGroups
    2017-08-09 18:05:37  INFO: Query not provided: database.selectGeofences
    2017-08-09 18:05:37  INFO: Query not provided: database.selectUserGeofences
    2017-08-09 18:05:37  INFO: Query not provided: database.selectDevices
    2017-08-09 18:05:37  INFO: Query not provided: database.selectDevices
    2017-08-09 18:05:37  INFO: Query not provided: database.selectCalendars
    2017-08-09 18:05:37  INFO: Query not provided: database.selectUserCalendars
    2017-08-09 18:05:38  INFO: Query not provided: database.selectUserAttributes
    2017-08-09 18:05:38  INFO: Query not provided: database.selectDevices
    2017-08-09 18:05:38  INFO: Query not provided: database.selectDrivers
    2017-08-09 18:05:38  INFO: Query not provided: database.selectUserDrivers
    2017-08-09 18:05:38  INFO: Query not provided: database.selectGroupDrivers
    2017-08-09 18:05:38  INFO: Query not provided: database.selectDeviceDrivers
    2017-08-09 18:05:38  INFO: Query not provided: database.selectDevices
    

Now when I open traccar web, it seems like a fresh installation. It does not remember old credentials. API access through old credentials gives a SecurityException and my device is now shows as unknown in logs. However, if I try to re-register myself on the web server it recognises my email and gives me an error of duplicate email which is fine.

Somewhat baffled. In all probability, I am doing something very stupid but somehow unable to solve. I am using traccar with mysql, in case it matters.

Anton Tananaev7 years ago

Your problem is that you are trying to compile latest code from master branch, which has some major modifications since last release. I would recommend you to use source code from release tag, unless you absolutely know what you are doing.

absingh7 years ago

Thanks. That worked well. My bad that I assumed master and 3.13 would be quite close!