No notifications with 5.7

Henrick Langner2 years ago

Since I updated to 5.7 I do not get any notifications via web, Mail, SMS or Push via traccar Manager. Testing notifications works, so configuration seems to be correct.

I'm talking about notifications like Device Online, Entering geofence and so on.

Any advise? Thanks a lot!

Anton Tananaev2 years ago

Have you checked logs or anything else?

Henrick Langner2 years ago

Hi Anton,

yes I allready checked, but I don't know what's the error at 2023-05-20 15:19:23 about...

2023-05-20 15:19:23  INFO: [Tfb909c2a] id: langner, time: 2023-05-20 15:19:19, lat: 52.36684, lon: 9.73369, course: 0.0, accuracy: 66.0
2023-05-20 15:19:23  INFO: [Tfb909c2a: osmand > 80.187.114.164] 
485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a

2023-05-20 15:19:23  INFO: [T9367b8dc] error - Cannot invoke "java.util.TimeZone.getOffset(long)" because "tz" is null - NullPointerException (... < TextTemplateFormatter:95 < NotificationFormatter:72 < NotificatorMail:46 < ...)

2023-05-20 15:19:23  INFO: [T9367b8dc] disconnected
2023-05-20 15:19:24  INFO: [Tfb909c2a] disconnected
Anton Tananaev2 years ago

Looks like there's some issue with a timezone configuration.

Henrick Langner2 years ago

Thanks for your quick response.

My server is running on a virtual Debian 11, seted up an a Windows Hyper-V.
Do you have any advise for me where to fix the timezone configuration?

I tried "timedatectl" and the response seems to be okay:

root@MHD-KatS-Server-Linux:/home/webmaster# timedatectl
               Local time: So 2023-05-21 03:37:16 CEST
           Universal time: So 2023-05-21 01:37:16 UTC
                 RTC time: So 2023-05-21 01:37:15
                Time zone: Europe/Berlin (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
Henrick Langner2 years ago

I just found an option and changed my timezone using "sudo timedatectl set-timezone UTC" to this:

root@MHD-KatS-Server-Linux:/home/webmaster# timedatectl                                       
Local time: So 2023-05-21 01:51:35 UTC
Universal time: So 2023-05-21 01:51:35 UTC
RTC time: So 2023-05-21 01:51:35
Time zone: UTC (UTC, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

But actualy I get the same error in my logs.

Anton Tananaev2 years ago

I was mostly talking about Traccar configuration / settings.

Henrick Langner2 years ago

In which file should I edit it? I already set Europe/Berlin as timezone in the webinterface...

Can't find examples for using decoder.timezone which is named in your documentation,.

Anton Tananaev2 years ago

Did you set it after the error or before?

Henrick Langner2 years ago

Before

Anton Tananaev2 years ago

So maybe that's the root cause?

Henrick Langner2 years ago

So I tried to change server timezone thru webinterface first to "UTC" and second to "none" (like default) > both times I restarted the server, but even afterwards still the same

Anton Tananaev2 years ago

Try removing the value through the database.

Henrick Langner2 years ago

Are u talking about the attributes in the table "tc_servers"? It immediatly changes after change settings in the webinterface. There is no difference when I change it in this table through the database and it doesn't change the result.

Anton Tananaev2 years ago

Both server and user. Make sure to restart after resetting it.