Cannot change the short template for deviceInactive

Anton Tananaeva year ago
  1. Java
  2. You need to check the code. I don't remember
Victor Butlera year ago

Thanks. I did check the code - the two files below:

TaskDeviceInactivityCheck.java
ScheduleManager.java

The only log reference there is this one but no such WARN messages in the log:

catch (StorageException e) {
     LOGGER.warn("Database error", e);
}
Victor Butlera year ago

I suspect there might be some link to how big the server load is - I have a test machine with the exact same setup/configuration (just no live incoming data from devices) and it doesn't exhibit those issues.
I will do a test with the Traccar demo server now and let you know the results.

Victor Butlera year ago

So...
It works well on Traccar demo server.

In my case...
I noticed that the inactive events were missing for 2 months, during which period the server has not been restarted.

Last week I did a restart for another reason and volia - the inactive events were recorded again...for 2 days. Then nothing. Now I did another server restart and the inactive events are recorded again.
I can't explain it yet but it seems the restart fixes the issue.