Problem with notifications: MessageBodyReader not found for media

Daniel Höldera year ago

Hi,
my Traccar server (5.9) run without problem until today in the afternoon. I suddenly started to send the same notification continously:

  • I observed it with geofence exit and entry
  • the notification message is sent every time the tracker sends data
  • after the entry to the geofence, the geofence isn't shown in the pop-up info
  • the problem occures for different devices; if one notification repeats, no other notification (for another device) comes through
  • in the log file this message repeats with every repeated notification:
2023-11-15 23:18:52  INFO: [Te145c5fd] error - MessageBodyReader not found for media type=text/plain;charset=utf-8, type=interface jakarta.json.JsonObject, genericType=interface jakarta.json.JsonObject. - MessageBodyProviderNotFoundException (... < NotificatorTraccar:106 < NotificationManager:110 < ... < *:107 < ... < *:106 < *:148 < BaseEventHandler:40 < ...)

I restarted the Traccar server and rebooted the RPi.

Now, I have no idea what I could do.

Anton Tananaeva year ago

The error is coming from push notifications. Try disabling them.

Daniel Höldera year ago

I deleted traccar in the traccar.xml. Then, I got this error message:

2023-11-15 23:45:29  INFO: [Tc57b1ab3] error - Failed to get notificator traccar - RuntimeException (NotificatorManager:75 < NotificationManager:110 < ... < *:107 < ... < *:106 < *:148 < BaseEventHandler:40 < ...)

Then, I tried to delete Traccar from the notifications in Settings -> Notifications, but that didn't work even if Traccar wasn't a choosable option anymore.
So, I re-entered traccar in traccar.xml and deleted it from the notifiucations under Settings -> Notifications.

Now: no more push notifications, but the geofences are still not shown under the pop-up info

Anton Tananaeva year ago

Where in the popup are you expecting to see it?

Daniel Höldera year ago

In the log there is still the error message:

2023-11-15 23:56:34  INFO: [Tc664dba6] error - MessageBodyReader not found for media type=text/plain;charset=utf-8, type=interface jakarta.json.JsonObject, genericType=interface jakarta.json.JsonObject. - MessageBodyProviderNotFoundException (... < NotificatorTraccar:106 < NotificationManager:110 < ... < *:107 < ... < *:106 < *:148 < BaseEventHandler:40 < ...)

I guess I have to delete traccar from the traccar.xml as well; I mean in the line

<entry key='notificator.types'>web,mail,traccar,telegram</entry>
Daniel Höldera year ago

Under Settings -> Preferences you can set popup info

Anton Tananaeva year ago

You can only show the data from positions. Geofence is not a part of position. It's not coming from the device.

Daniel Höldera year ago

Now, the traccar server doesn't start anymore.

Logfile says:

2023-11-16 00:01:37  INFO: Stopping server...

I already rebboted the RPi. But Traccar didn't start.

Daniel Höldera year ago

Ok, Traccar server runs again... (I had a typo in the trraccar.xml; it was too late last night.)

It always worked to show geofences in the popup info (i.e. that a device is inside a geofence that was defined in Traccar).

I deactivated Push in traccar.xml. (It would be very time-consuming to delete push (i.e. traccat) from all notifications for all users under settings -> notifications.) That didn't help. I get still error messages and repeated web notifications:

2023-11-16 07:56:45  INFO: [T6ed17557] error - Failed to get notificator traccar - RuntimeException (NotificatorManager:75 < NotificationManager:110 < ... < *:107 < ... < *:106 < *:148 < BaseEventHandler:40 < ...)
Daniel Höldera year ago

I'm testing now with the Traccar client on my iPhone.

The client shows upload error.

And the logfile:

2023-11-16 08:11:28  INFO: [T07f790e3] error - Failed to get notificator traccar - RuntimeException (NotificatorManager:75 < NotificationManager:110 < ... < *:107 < ... < *:106 < *:148 < BaseEventHandler:40 < ...)
Daniel Höldera year ago

Ok, I deleted "Traccar" from all notifications for all users.

Now, the error messages and the repeated notifications are gone and the popup info shows the geofence as it was before.

And now: How can I re-activate push notifications?

Daniel Höldera year ago

How the issue was solved:

I deactivated push notifications (i.e. traccar) for all users and all notificatifications (settings -> notifications). Then, ther error was gone. Ond day later, I activated push notifications again.

The deactivation of the notification channel "traccar" in the config file traccar.xml didn't solve the problem and was not neccessary.

Victor Butlera year ago

Hey Daniel, have you experienced any other irregularities with the latest Traccar server?

For example, traccar service running but no data saved from any device until traccar service restart? Also, no incoming HEX data in the logs, just user login and reports working?

Anton Tananaeva year ago

Please try again. We improved response errors.

Daniel Höldera year ago

Hi Victor, sorry, I missed your question. No, I didn’t observe other irregularities.

Hi Anton, meanwhile I updated to 5.11 and the to the preview (in order to avoid the multiple notifications in 5.11).