WARN: Unknown device showing even that device added in DB

Ighare5 years ago

Hello Anton,

So many devices showing WARN: Unknown device and that devices already in database. and after restarted listener it working fine.
Please help for this to find root cause and also attached server-log file URL it may be helpful to find cause.

2020-01-15 05:24:02  INFO: [dee946e3: watch < 1.129.105.242] HEX: 5b33472a303830343631313136302a303030392a4c4b2c302c302c35305d
2020-01-15 05:24:02  WARN: Unknown device - 0804611160 (1.129.105.242)

https://drive.google.com/file/d/1ER70cxWxQfrmBjkWlJNy4grRSg3q2QEq/view?usp=sharing

Anton Tananaev5 years ago

Unknown device means that it's not in the database.

Ighare5 years ago

Anton,
its already in the database and it works properly when restarted traccar. please check attached log file you will get idea

I thinks its bug in system.

Below is configuration related to DB.

<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/devDB?serverTimezone=UTC&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
<entry key='database.user'>root</entry>
<entry key='database.password'>Cu#l8jMDN#Dn25</entry> 
<entry key='database.selectDevicesAll'>
       SELECT * FROM tc_devices;
</entry>
Anton Tananaev5 years ago

Very unlikely it's a bug in the system. There are thousands of installations out there working just fine.

Ighare5 years ago

Why it showing unknown device even that device is already in database. Can you please check log file that all recorded and check other devices which is showing unknown device. This all devices available in the database.
If showing unknown device then, I restarted traccar then it works well and getting proper data but after one or two hours it showing again unknown device. What is the exactly problem?? And i already followed your doc before you ask question. thanks for reply.

Ighare5 years ago

Anton, please help to us get out sortable this issue.

Anton Tananaev5 years ago

We have paid support if you need someone to check your server.

when you are adding the device are you adding the leading zero 0804611160. I had the same issue as device imei comes as a long but on conversion the string adds the leading zero

Ighare5 years ago

Yes but after restart traccar it working fine until two or three hours and then it same again showing unknown device. its bug in traccar system and Anton said for paid support to look into our server.

Anton Tananaev5 years ago

Please don't claim that there is a bug in Traccar unless you have a proof. This is just your guess based on zero evidence.

From the logs its actually showing unknown device after a while. Can you do a fresh installation with the latest code base. I have a couple of devices and am not facing the same issue c