Graylog2 / graylog-docker

Official Graylog Docker image
https://hub.docker.com/r/graylog/graylog/
Apache License 2.0
356 stars 133 forks source link

Startup issue in Enterprise Docker image 4.1.3-3 #176

Closed coffee-squirrel closed 2 years ago

coffee-squirrel commented 2 years ago

It seems the Docker image graylog/graylog-enterprise:4.1.3-3 (notably not graylog/graylog:4.1.3-3) has an issue:

graylog_1  | adding environment opts
graylog_1  | /docker-entrypoint.sh: line 109: /usr/local/openjdk-/bin/java: No such file or directory

Comparing the current OSS and Enterprise Dockerfiles, it seems the most relevant difference is the Enterprise version sets a default value for argument JAVA_VERSION_MAJOR (see image below). Specifically, it seems to be due to #172 commit 7d8b6da2d9bbabe5bac9a294b4a2b8e20acb692b, which fixed this issue for OSS but not Enterprise. I’ve tried passing in env vars JAVA_VERSION_MAJOR=8 and JAVA_HOME=/usr/local/openjdk-8 (individually and both; via docker-compose.yml with down+up), however the error above still occurs.

As a workaround I’ve reverted from graylog/graylog-enterprise:4.1.3-3 to graylog/graylog-enterprise:4.1.3-1, however that image has the unclean shutdown (journal corruption) issue previously reported (#174).

Ticket ID #554048406

Graylog_Dockerfile_diff

malcyon commented 2 years ago

That is embarrassing, and I am annoyed that I didn't catch it. I will fix it!

malcyon commented 2 years ago

@coffee-squirrel Alright, I published 4.1.3-4. Can you pull it and see if it works okay for you now?

coffee-squirrel commented 2 years ago

@juju2112 Thanks, that image fixes this issue.

malcyon commented 2 years ago

@juju2112 Thanks, that image fixes this issue.

Thanks for pointing it out!!