Traccar 4.14 error device blocked on map

Mark3 years ago

With version 4.14 after the fix of the device there is no movement of the vehicles. They remain stationary on the map. I downgraded to version 4.13 and everything back to normal. Are there any bugs?

Anton Tananaev3 years ago

Have you done any troubleshooting?

Mark3 years ago

Of course, I inserted a traccar.xml with basic installation options, I covered the whole procedure, I also installed version 4.13 and then upgraded to 4.14 again the new vehicle block

Anton Tananaev3 years ago

That's great to hear. Do you want to share each step results?

Mark3 years ago

First I installed version 4.14 on ubuntu 18, then on ubuntu 20, always vehicles blocked. Then I installed 4.13 and everything worked perfectly, after updating with the tools traccar_tools.sh again blocked vehicles. I have tested on two different servers and always the same problems.

Anton Tananaev3 years ago

Sorry, but I don't see anything about troubleshooting in your post.

Mark3 years ago

ok, thanks

Mark3 years ago

I did some tests on version 4.14, it seems that the traccar.xml blocks the devices on the map with consequent lack of tracker, I attach the two traccar.xml to understand if there are errors.

Traccar working on version 4.13 and 4.14

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key="config.default">./conf/default.xml</entry>

    <entry key='web.port'>80</entry>

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</entry>
    <entry key='geocoder.key'>xxxxxxxxxxxxxxxxxxxxxxxxxx</entry>
    <entry key='geocoder.format'>%r, %h, %u, %t - %s</entry>
    
    <entry key='notificator.types'>web,mail,traccar</entry>
    <entry key='notificator.traccar.key'> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</entry>
    
    
    <entry key='status.ignoreOffline'>h02</entry>
    <entry key='status.ignoreOffline'>gt06</entry>
    <entry key='tcp.timeout'>3000</entry>
    
    <entry key='database.historyDays'>360</entry>
    
    
    
    <entry key='event.motion.speedThreshold'>2.11</entry>
    <entry key='event.enable'>true</entry>
    <entry key='event.geofenceHandler'>true</entry>
    <entry key='event.motionHandler'>true</entry>
    
    <entry key='geocoder.reuseDistance'>15</entry>
    <entry key='geolocation.enable'>true</entry>
    <entry key='geocoder.onRequest'>true</entry>
    <entry key='geocoder.ignorePositions'>true</entry>
    
    <!-- EMAIL SETTINGS -->
    <entry key='mail.smtp.host'>xxxxxxxxxxxxxxx</entry>
    <entry key='mail.smtp.port'>xx</entry>
    <entry key='mail.smtp.from'>xxxxx@xxxxxxxxx</entry>
    <entry key='mail.smtp.username'>xxxxxxxxx@xxxxxxxxx</entry>
    <entry key='mail.smtp.password'>xxxxxxxxx</entry>
    
    <entry key='distance.enable'>true</entry>
    <entry key='filter.maxSpeed'>35000</entry>
    <entry key='filter.skipAttributes.enable'>true</entry>
    <entry key='filter.zero'>true</entry>
    <entry key='filter.invalid'>true</entry>
    <entry key='filter.duplicate'>true</entry>
    <entry key='coordinates.filter'>true</entry>
    
    <entry key='coordinates.minError'>60</entry>
    <entry key='coordinates.maxError'>120</entry>


    
    <entry key='database.driver'>com.mysql.jdbc.Driver</entry> 
    <entry key='database.url'>jdbc:mysql://localhost:3306/traccar?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'>xxxxx/entry> 
    <entry key='database.password'>xxxxxxxxx</entry>
 
    
    <entry key='server.timeout'>180</entry>

</properties>

Traccar NOT WORKING on 4.14 and WORKING ON VERSION 4.13

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key="config.default">./conf/default.xml</entry>

    <entry key='web.port'>80</entry>

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</entry>
    <entry key='geocoder.key'>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</entry>
    <entry key='geocoder.format'>%r, %h, %u, %t - %s</entry>
    
    <entry key='notificator.types'>web,mail,traccar</entry>
    <entry key='notificator.traccar.key'>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</entry>
    
    <entry key='distance.enable'>true</entry>
    <entry key='filter.enable'>true</entry>
    <entry key='filter.distance'>50</entry>
    <entry key='filter.maxSpeed'>35000</entry>
    <entry key='filter.skipAttributes.enable'>true</entry>
    <entry key='filter.skipAttributes'>alarm,armed,battery,charge,result</entry>
    <!-- <entry key='filter.skipLimit'>1800</entry> -->
    <entry key='filter.accuracy'>70</entry> 
    <entry key='filter.zero'>true</entry>
    <entry key='filter.invalid'>true</entry>
    <entry key='filter.duplicate'>true</entry>
    
    <entry key='database.historyDays'>360</entry>
    
    
    
    <entry key='event.motion.speedThreshold'>2.11</entry>
    <entry key='event.enable'>true</entry>
    <entry key='event.geofenceHandler'>true</entry>
    <entry key='event.motionHandler'>true</entry>
    
    <entry key='geocoder.reuseDistance'>15</entry>
    <entry key='geolocation.enable'>true</entry>
    <entry key='geocoder.onRequest'>true</entry>
    <entry key='geocoder.ignorePositions'>true</entry>
    
  
    <entry key='report.trip.minimalTripDuration'>60</entry>
    <entry key='report.trip.minimalTripDistance'>200</entry>
    <entry key='report.trip.minimalNoDataDuration'>900</entry>
    <entry key='report.trip.minimalParkingDuration'>600</entry>
    <entry key='status.updateDeviceState'>true</entry>
    
    
    
    <entry key='processing.computedAttributes.enable'>true</entry>
    <entry key='processing.engineHours.enable'>true</entry>
    <entry key='processing.copyAttributes.enable'>true</entry>
    <entry key='processing.copyAttributes'>alarm,power,ignition,battery,motion,hours</entry>
    <entry key='processing.copyAttributes'>fuel</entry> 
    
    <entry key='coordinates.filter'>true</entry>
    <entry key='coordinates.minError'>60</entry>
    <entry key='coordinates.maxError'>120</entry>

    <entry key='status.ignoreOffline'>h02</entry>
    <entry key='status.ignoreOffline'>gt06</entry>
    <entry key='tcp.timeout'>3000</entry>
    
    
    
    <!-- EMAIL SETTINGS -->
    <entry key='mail.smtp.host'>xxxxxxxxxxxxxxxxxx</entry>
    <entry key='mail.smtp.port'>xx</entry>
    <entry key='mail.smtp.from'>xxxxx@xxxxxxxxxxxxx</entry>
    <entry key='mail.smtp.username'>xxxxx@xxxxxxxxxxxx</entry>
    <entry key='mail.smtp.password'>xxxxxxxxxxxxxx</entry>
    
    

    

    
    <entry key='database.driver'>com.mysql.jdbc.Driver</entry> 
    <entry key='database.url'>jdbc:mysql://localhost:3306/traccar?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'>xxxxx</entry> 
    <entry key='database.password'>xxxxxxxx</entry>
 
    
    <entry key='server.timeout'>180</entry>

XXXX hidden parameter

Santiago3 years ago

did they find the solution?

Attached log, where it is seen that the coordinates reported in the package do not correspond to the one reported in the log

2021-09-05 09:50:31  INFO: [d08ab0a0: h02 < 186.111.142.9] HEX: 2a48512c393137313835343134302c56312c3132353031322c412c333331382e303438332c532c30363632302e343831332c572c3030342e30352c3132312c3035303932312c46464646424246462c3732322c33342c323732392c31303923
2021-09-05 09:50:31  INFO: [d08ab0a0: h02 > 186.111.142.9] HEX: 2a48512c393137313835343134302c56342c56312c323032313039303531323530333123
2021-09-05 09:50:31  INFO: [d08ab0a0] id: 9171854140, time: 2021-09-05 09:50:12, lat: -31.51973, lon: -64.22888, speed: 4.1, course: 121.0
2021-09-05 09:53:20  INFO: [d08ab0a0: h02 < 186.111.142.9] HEX: 2a48512c393137313835343134302c56312c3132353331322c412c333331382e303933302c532c30363632302e323336312c572c3030322e32362c3037312c3035303932312c46464646424246462c3732322c33342c323732392c33373123
2021-09-05 09:53:20  INFO: [d08ab0a0: h02 > 186.111.142.9] HEX: 2a48512c393137313835343134302c56342c56312c323032313039303531323533323023
2021-09-05 09:53:20  INFO: [d08ab0a0] id: 9171854140, time: 2021-09-05 09:53:12, lat: -31.51973, lon: -64.22888, speed: 2.3, course: 71.0

and this is my filter configuration, everything was fine until I went to 4.14

<!-- FILTROS -->
<entry key='filter.enable'>true</entry>
<entry key='event.overspeed.notRepeat'>true</entry>
<entry key='filter.zero'>true</entry>
<entry key='filter.duplicate'>true</entry>
<entry key='filter.invalid'>true</entry>
<entry key='database.historyDays'>90</entry>
<entry key='status.timeout'>1200</entry>
<entry key='filter.maxSpeed'>1000</entry>
<entry key ='coordinates.filter'>true</entry> 
<entry key ='coordinates.minError'>50</entry>
<entry key ='coordinates.maxError'>10000</entry>
<entry key ='event.motion.speedThreshold'>2.7</entry>
<entry key ='event.overspeed.minimalDuration'>30</entry>
<entry key='server.timeout'>300</entry>
<entry key='filter.skipLimit'>15</entry>
<entry key='filter.skipAttributes.enable'>true</entry>
<entry key='filter.skipAttributes'>alarm,result</entry>
<entry key='status.ignoreOffline'>h02,taiprinho,gt06,topin</entry> 
<!-- FILTROS -->
Anton Tananaev3 years ago

That probably has something to do with your coordinates filtering.

Mark3 years ago

Why should the parameter you indicate (coordinates filter) block vehicle movement in version 4.14? in version 4.13 it works without problems

Santiago3 years ago

If you decode the hexadecimal of the log that I publish, you will see that the coordinates reported by the log do not correspond to the packet and a filter message is not observed either.

I have been reviewing for two days without finding fault for the problem.

Anton Tananaev3 years ago

Coordinates filtering does not log any messages in the log file. Have you tried disabling it?

Santiago3 years ago

I have disabled the filters and it seems to work, but the strange thing is that those filters work fine in 4.13.

On the other hand, normally when a packet is filtered, the console shows a message informing that in these cases it is not the case, no matter how the device sends other new coordinates, the registry shows the same

Anton Tananaev3 years ago

You misunderstanding the difference between regular filtering that completely ignores messages and coordinates filter that just overrides coordinates. Former logs explicit message and latter doesn't. Both are called filtering, but they do completely different things. Please check documentation for more details.