500 Error when attempting to load streams page

Hello all,

We have a Graylog server that will not display the streams page. Everything else appears to be working fine. This seems to have started after upgrading to Graylog 4.

Error in UI:

Error in server.log:

2021-01-06T10:39:15.617-05:00 ERROR [AnyExceptionClassMapper] Unhandled exception in 
REST resource
java.lang.RuntimeException: IOException encountered while reading from a byte array input stream

Hey @jtbis, are your elasticsearch and mongo versions on compatible versions as well? Are there any errors in the Graylog server logs?

Hello,

ES is version 6.8.0 and Mongo is on 3.6.18. Are these compatible?

The only error in the server log is this:

2021-01-06T10:39:15.617-05:00 ERROR [AnyExceptionClassMapper] Unhandled exception in 
REST resource
java.lang.RuntimeException: IOException encountered while reading from a byte array input stream

Yes those are supported. What Java version are you running?

We are on Java 1.8.0_201 (openjdk-8-jre-headless)

Are you seeing any specific errors in the browser console?

Java 1.8.0_201 is quite old, latest version is 1.8.0_275

Just updated Java to 1.8.0_275 and same error. There are a few errors on the browser console:

Error 1:

Uncaught TypeError: Cannot read property 'call' of undefined
    at n (vendor.594b2a39cb22b445205e.js:2)
    at Object.<anonymous> (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:1)
    at t (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:1)
    at Object.<anonymous> (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:52)
    at t (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:1)
    at plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:13
    at Object.<anonymous> (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:13)
    at t (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:1)
    at Object.<anonymous> (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:104)
    at t (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:1)
    at Object.<anonymous> (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:104)
    at t (plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:1)
    at plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:1
    at plugin.org.graylog.plugins.aggregates.AggregatesPlugin.35bec86190a36f35693e.js:1

Error 2 (Additional information is same as Graylog server log):

There was an error fetching a resource: cannot GET http://10.0.16.162:9000/api/streams/paginated?page=1&per_page=10 (500). Additional information: IOException encountered while reading from a byte array input stream
i @ builtins.a41ce78e1beaf9cde903.js:2

Error 3:

Unhandled rejection TypeError: Cannot read property 'streams' of undefined at http://10.0.16.162:9000/assets/ec6967f4-120.a41ce78e1beaf9cde903.js:1:25921From previous event: at I.G [as _captureStackTrace] (http://10.0.16.162:9000/assets/builtins.a41ce78e1beaf9cde903.js:2:282623) at I._then (http://10.0.16.162:9000/assets/builtins.a41ce78e1beaf9cde903.js:2:308935) at I.then (http://10.0.16.162:9000/assets/builtins.a41ce78e1beaf9cde903.js:2:307291) at f.list (http://10.0.16.162:9000/assets/builtins.a41ce78e1beaf9cde903.js:2:105752) at o.n (http://10.0.16.162:9000/assets/vendor.594b2a39cb22b445205e.js:2:97012) at o.emit (http://10.0.16.162:9000/assets/vendor.594b2a39cb22b445205e.js:2:1094809) at Function.trigger (http://10.0.16.162:9000/assets/vendor.594b2a39cb22b445205e.js:2:97893) at http://10.0.16.162:9000/assets/vendor.594b2a39cb22b445205e.js:2:97998 at WjuRTkSc.t.exports (http://10.0.16.162:9000/assets/polyfill.a41ce78e1beaf9cde903.js:1:64278) at y.<computed> (http://10.0.16.162:9000/assets/polyfill.a41ce78e1beaf9cde903.js:1:28949) at Number.P (http://10.0.16.162:9000/assets/polyfill.a41ce78e1beaf9cde903.js:1:28807) at MessagePort.S (http://10.0.16.162:9000/assets/polyfill.a41ce78e1beaf9cde903.js:1:28829)