database.registerUnknown set to true but log still indicating Unknown device

tiborko8 years ago

I have a server running Traccar - I think it is Version 3.7-Snapshot.

  1. I edited the following entry in the traccar.xml file:
    <entry key='database.ignoreUnknown'>true</entry>
    
    and changed it ot:
    <entry key='database.ignoreUnknown'>false</entry>
    
  2. I added the following to the traccar.xml:
    <entry key='database.registerUnknown'>true</entry>
    
  3. I shut down the service and re-started it.
  4. My log file tracker-server.txt indicates:
    2017-01-19 15:51:27  WARN: Unknown device - 90688566 
    
    How do I make traccar not ignore unknown entries and automatically register them?

Thanks.

Anton Tananaev8 years ago

Your config is correct, but your version of Traccar is old. It doesn't support "registerUnknown" parameter.

tiborko8 years ago

Anton,

Thank you. I updated to version 3.9, however the device with the unknown/unregistered id does not show up in the device list when logged in as admin.

The tracker-server log says the following:

2017-01-19 16:58:10 DEBUG: [5F3E3138: 5055 < 172.56.29.75] HEX: 474554202f3f69643d39303638383536382674696d657374616d703d31343834383633333030266c61743d33392e3638303933266c6f6e3d2d37352e37343733303636363636363636362673706565643d302e302662656172696e673d302e3026616c7469747564653d3133312e3026626174743d35332e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420352e313b20543033204275696c642f4c4d59343744290d0a486f73743a203132382e3137352e36332e37333a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-01-19 16:58:10  INFO: Automatically registered device 90688568
2017-01-19 16:58:10 DEBUG: [5F3E3138: 5055 > 172.56.29.75] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-01-19 16:58:10  INFO: [5F3E3138] id: 90688568, time: 2017-01-19 17:01:40, lat: 39.68093, lon: -75.74731, speed: 0.0, course: 0.0
2017-01-19 16:58:37 DEBUG: [5F3E3138: 5055 < 172.56.29.75] HEX: 474554202f3f69643d39303638383536382674696d657374616d703d31343834383633333330266c61743d33392e363831303435303030303030303035266c6f6e3d2d37352e37343738363333333333333333332673706565643d302e302662656172696e673d302e3026616c7469747564653d3131362e3426626174743d35332e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420352e313b20543033204275696c642f4c4d59343744290d0a486f73743a203132382e3137352e36332e37333a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-01-19 16:58:37 DEBUG: [5F3E3138: 5055 > 172.56.29.75] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-01-19 16:58:37  INFO: [5F3E3138] id: 90688568, time: 2017-01-19 17:02:10, lat: 39.68105, lon: -75.74786, speed: 0.0, course: 0.0
Anton Tananaev8 years ago

By default automatically created devices are not linked to any user account. You have to link it to yourself as an admin if you want to see it.

tiborko8 years ago

Anton,

Thank you again. But how do "Link it yourself as an admin if you ant to see it"? Is there a list where these unregistered devices are listed?

Anton Tananaev8 years ago

Yes, you go into Settings -> Users, select your user account there and click Devices button in the toolbar. There you can link devices to your own or any other account.

tiborko8 years ago

Thank you!

Jesse Techno8 months ago

It would be nice to have a config setting that would allow auto-assignment to admin (or other user) if desired. I know that would be a HUGE perk for my use-case.