WARN: Unknown device on a linux docker server install

andi3 years ago

I am receiving following errors:

[object Object]

The device Tb894e4e2 is an android phone using Traccar Client v6.17 with Device Identifier set to 123456
The device is registered on the server in drivers section on the server web portal.
It is also visible in the mariaDB:

[object Object]

I have tried to use phone IMEI as ID but the result is the same.
I have tried embedded H2 database initially and got this error. Then I configured mariaDB database to see if it is some problem with the embedded H2 DB and Docker. But error persists with mariaDB too.

I used Traccar in the past without docker and I had no issue with the same android phone.

Long story short:
-I receive "WARN: Unknown device".
-The device data is not logged on the database.
-The ID is configured in drivers list and it's the same as on Android traccar app.
-Network connectivity exists.
-Trafic is decoded correctly with HexDecoder in the format:

[object Object]

What could be the problem?

Anton Tananaev3 years ago

Have you registered the device before configuring it? That might be the problem.

andi3 years ago

I have added the a device name and it's ID in the web portal first, then I configured Traccar client device identifier on the phone and started the service in Traccar Client. I hope registering the device means to add it's ID in the drivers list.

Anton Tananaev3 years ago

Yes, but the error means that you haven't added it.

Anton Tananaev3 years ago

I see that you have an extra space in your id. That's probably the issue.

andi3 years ago

Now i stopped the service on the phone. Removed all IDs from server's driver list. Added a new one with ID 9842474.
Then I stopped the docker container. Restarted the docker container.
Then set the phone ID to 9842474 and started the phone service.
I still receive the unknown device warning.
There are some errors(info only) on the docker start:

[object Object]
[object Object]
Anton Tananaev3 years ago

Wait. Why are you looking at the drivers table in the database instead of devices?

andi3 years ago

All tc_device_* tables are empty. No records there.
It's not the drivers page (http://205.200.10.24:8082/settings/drivers) where you register your device IDs?
Maybe I miss-understood how to register a new device. I have read all documentation available.

Anton Tananaev3 years ago

Drivers are not devices obviously. Devices are on the main screen. There's an add button there.

andi3 years ago

My fault. I did it the right way now and it works. Thank you!