Geofence Events don't trigger in version 6.10.0

ysv 3 months ago

Hi everyone,

We recently updated to Traccar 6.10.0. Since the upgrade, I’ve noticed an issue with geofence events.

When I create new geofences and link devices to them, no events are triggered. If I restart the Traccar service, the existing geofence events start working again. However, any newly created geofences still won’t trigger events unless I do another restart.

Has anyone else experienced this, or is there a known fix/workaround?

Anton Tananaev 3 months ago

Does it start working if device reconnects?

ysv 3 months ago

HI Anton ,
It did not work , I tried to to unlink geofence in the device and then re-link but it does not work.
If I restart the Traccar it starts working .
I have not done any changes in configurations , except adding <entry key='status.timeout'>3600</entry> in crease the status timeout.
could this affect Geofence events ?

Anton Tananaev 3 months ago

Just tested and it works for me.

ysv 3 months ago

Hi ,
thanks for your confirmation .
Maybe try to link geofence to several devices and see if it will work for all the devices?
and I was using the API to create geofences , just noticed that Traccar interface does not show option to create "circle" type , (I can see only Polygonal and Line) is this normal behaviour ?

Anton Tananaev 3 months ago

That's normal.

ysv 3 months ago

Hi Anton ,

Thanks , I will check logs and try to find what causes the issue , failing which I will write to professional support.

Elcio Messias Junior 25 days ago

Hi friend, I'm having the same problem when creating a fence and adding 20 vehicles to it. It only starts generating events if I restart Traccar. Did you manage to solve it?

ysv 14 days ago

HI ,
What I faced was different , we tried linking the Geofences from an external app , the method we used was not very correct , then we switched to api (/permission)and the problem was sorted.

But recently I was testing linking about 500+ geofences to a device group and noticed some inconsistencies , Im trying to figure out if its Traccar or due the huge number of Geofences.Ill share my findings here.

Elcio Messias Junior 14 days ago

I also use an external app with API communication, but I see here with your information that the fence was created directly in the database, as were the permissions. The interesting thing is that it works for 1 or 2 vehicles, but if you add many, even though you add them, it only starts working when you restart Traccar. I'll change the way I use the API and see if that solves it.

Anton Tananaev 14 days ago

You definitely should not write into the database directly. There's internal cache that won't be updated in that case.