Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.36k stars 1.06k forks source link

Blank page after logging out #12894

Closed snghoshi closed 2 years ago

snghoshi commented 2 years ago

Since upgrading to version 4.2.x and now at 4.3.1. My Graylog server works find until i logout then the browser just display a blank page. The only way to login via the browser is to restart the graylog service again then it will work (display the page) until i log out. Running on Ubuntu.

dennisoelkers commented 2 years ago

Hey @snghoshi,

do you see anything in your browser's JS console when you try to login/seeing the blank page?

snghoshi commented 2 years ago

Hi @dennisoelkers,

I get the following:

Uncaught SyntaxError: expected property name, got '&'
config.js:6:2
GEThttps://10.10.x.x/assets/plugin/org.graylog.aws.AWSPlugin/plugin.org.graylog.aws.AWSPlugin.a365ae42c6adc7b2e522.js
[HTTP/1.1 200 OK 0ms]

GEThttps://10.10.x.x/assets/plugin/de.irgendwr.TelegramNotificationPlugin/plugin.de.irgendwr.TelegramNotificationPlugin.45b2a68657d722b1f0d2.js
[HTTP/1.1 200 OK 0ms]

GEThttps://10.10.x.x/assets/app.3ce412862026e2958937.js
[HTTP/1.1 200 OK 0ms]

Uncaught TypeError: undefined is not a valid argument for URI
    i URI.js:54
    joinPaths URI.js:961
    <anonymous> webpack-entry.js:26
    <anonymous> index.jsx:72
    <anonymous> index.jsx:72
URI.js:54:14
Uncaught TypeError: undefined is not a valid argument for URI
    i URI.js:54
    joinPaths URI.js:961
    <anonymous> webpack-entry.js:9
    <anonymous> index.jsx:60
    <anonymous> index.jsx:60
URI.js:54:14
Uncaught TypeError: undefined is not a valid argument for URI
    i URI.js:54
    joinPaths URI.js:961
    <anonymous> webpack-entry.js:25
    <anonymous> index.jsx:51
    <anonymous> index.jsx:51
URI.js:54:14
Uncaught TypeError: undefined is not a valid argument for URI
    i URI.js:54
    joinPaths URI.js:961
    <anonymous> webpack-entry.js:25
    <anonymous> index.jsx:87
    <anonymous> index.jsx:87
URI.js:54:14
    i URI.js:54
    joinPaths URI.js:961
    <anonymous> webpack-entry.js:25
    <anonymous> index.jsx:87
    <anonymous> index.jsx:87
Uncaught TypeError: undefined is not a valid argument for URI
    i URI.js:54
    joinPaths URI.js:961
    <anonymous> webpack-entry.js:25
    <anonymous> index.jsx:119
    <anonymous> index.jsx:119
URI.js:54:14
Uncaught TypeError: undefined is not a valid argument for URI
    i URI.js:54
    joinPaths URI.js:961
    <anonymous> webpack-entry.js:25
    <anonymous> index.jsx:28
    <anonymous> index.jsx:28
URI.js:54:14
Uncaught TypeError: e is undefined
    exports vendor.3b152b3d9c1d8273aa7e.js:2
    exports vendor.3b152b3d9c1d8273aa7e.js:2
    U8HBYKER punycode.js:2
    Webpack 10
vendor.3b152b3d9c1d8273aa7e.js:2:4948
Uncaught TypeError: undefined is not a valid argument for URI
    i URI.js:54
    joinPaths URI.js:961
    <anonymous> webpack-entry.js:26
    <anonymous> index.jsx:56
    <anonymous> index.jsx:56
URI.js:54:14
GEThttps://10.10.x.x/assets/favicon.png
[HTTP/1.1 200 OK 0ms]

dennisoelkers commented 2 years ago

Hey @snghoshi,

thanks for getting back to me. Can you do the following and post the output?

curl -v https://10.10.x.x/config.js

(Please replace the ip with the one of your Graylog server)

snghoshi commented 2 years ago

Hi @dennisoelkers , thanks for your reply. Please find requested info below (please note i masked the IP details):

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.

dennisoelkers commented 2 years ago

Can you try it like this (with an additional -k)?

curl -kv https://10.10.x.x/config.js
snghoshi commented 2 years ago

Hi @dennisoelkers , alright cool, here below:

ubuntu@graylog:/etc/nginx$ ubuntu@graylog:/etc/nginx$ curl -kv https://10.10.x.x/config.js

dennisoelkers commented 2 years ago

Okay, that looks good. I am suspecting the telegram notification plugin to be the culprit, as it is probably outdated. Can you try removing the plugin and see if it still happens?

snghoshi commented 2 years ago

Hi @dennisoelkers , Thanks. i have renewed the TLS cert.

Im getting the following: There are 2 notifications

Notifications are triggered by Graylog and indicate a situation you should act upon. Many notification types will also provide a link to the Graylog documentation if you need more information or assistance. Failed to send Telegram messages. (triggered 3 days ago) API request failed: api.telegram.org: Temporary failure in name resolution (java.net.UnknownHostException: api.telegram.org: Temporary failure in name resolution) You are running an outdated Graylog version. (triggered 4 days ago) The most recent stable Graylog version is 4.3.2 (Noir) released at 2022-06-15T00:00:00.000Z. Get it from https://www.graylog.org/.

I would like to upgrade to version 4.3.2 and then i will look at the Telegram notification plugin. I will revert back with the results.

snghoshi commented 2 years ago

Hi @dennisoelkers , thanks a lot for your help.

I upgraded to version 4.3.2 and also the Telegram notification api to version 2.3.9 and now it seems all is fine again.

Appreciated.