After upgrading the Graylog cluster (docker) from 4.0.15 to 4.3.15 there is a 500 error in the browser /api/authz/shares/entities/…/prepare when clicking Share on the stream:
"type": "ApiError",
"message": "IOException encountered while reading from a byte array input stream"
I updated it a little incorrectly:
On version 4.0.15, I updated the mongo to version 4.4, then immediately tried to update Graylog to 4.3.15. It didn’t work. Then I ran sequentially Graylog 4.1.14 and 4.2.13, 4.3.15. Graylog is working except for the two above errors.
As I understand it, it’s about mongodb, probably some kind of migration was missed.
UPD: Founded in debug logs:
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "type" (class org.graylog.events.notifications.EventNotificationConfig$FallbackNotificationConfig), not marked as ignorable (0 known properties: ])
Please run ‘db.getCollection(“event_notifications”).distinct(‘config.type’)’ against the graylog database within Mongodb, what does the return look like?
A little context to anyone who finds this same issue, it can occur when the system has at some point used a third party plugin that is no longer supported or has been removed. In this case Graylog does not recognise "telegram-notification-v2’, once removed Graylog will cool its jets.