Graylog 4.3 to 5.1 not start

I upgrade Graylog from 4.3 to 5.0 and then to 5.1 but have the same problem at version 5.0 and 5.1.
Graylog service not start and nothing is in the graylog server.log file.

  • OS Information:
    Ubuntu 22.04.3 LTS

  • Package Version:
    apt list --installed | grep ‘mongod|elasticsearch|graylog|openjdk’:

elasticsearch-oss/now 7.10.2 amd64 [installed,local]
graylog-5.1-repository/stable,now 1-2 all [installed]
graylog-server/stable,now 5.1.5-1 amd64 [installed]
mongodb-database-tools/now 100.8.0 amd64 [installed,local]
mongodb-mongosh/now 2.0.1 amd64 [installed,local]
mongodb-org-database-tools-extra/now 5.0.21 amd64 [installed,local]
mongodb-org-database/now 5.0.21 amd64 [installed,local]
mongodb-org-mongos/now 5.0.21 amd64 [installed,local]
mongodb-org-server/now 5.0.21 amd64 [installed,local]
mongodb-org-shell/now 5.0.21 amd64 [installed,local]
mongodb-org-tools/now 5.0.21 amd64 [installed,local]
mongodb-org/now 5.0.21 amd64 [installed,local]
openjdk-17-jdk-headless/jammy-updates,jammy-security,now amd64 [installed,automatic]
openjdk-17-jdk/jammy-updates,jammy-security,now amd64 [installed]
openjdk-17-jre-headless/jammy-updates,jammy-security,now amd64 [installed,automatic]
openjdk-17-jre/jammy-updates,jammy-security,now amd64 [installed]

  • Service logs, configurations, and environment variables:
    journalctl -u graylog-server:

systemd[1]: graylog-server.service: Scheduled restart job, restart counter is at 40.
systemd[1]: Stopped Graylog server.
systemd[1]: Started Graylog server.
graylog-server[16088]: Unrecognized VM option ‘UseConcMarkSweepGC’
graylog-server[16088]: Error: Could not create the Java Virtual Machine.
graylog-server[16088]: Error: A fatal exception has occurred. Program will exit.
systemd[1]: graylog-server.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: graylog-server.service: Failed with result ‘exit-code’.

It seems that there is some problem with java, but I don’t know what it could be?

So first guess is that you dont have java 17 (as the required version changed from between graylog 4 and 5), or it is somehow not available to graylog Breaking Notes

java -version
openjdk version “” 2023-08-24
OpenJDK Runtime Environment (build
OpenJDK 64-Bit Server VM (build, mixed mode, sharing)

Have you checked out this thread? Java version issue?


I looked at it, but in the end I couldn’t find the right graylog-server file to edit.

Now I have it, on my system it is located at /etc/default/graylog-server. I re-edited it and graylog now works.

Thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.