Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graylog won't start, says configuration file is missing #68

Open
cmerkle opened this issue May 31, 2024 · 2 comments
Open

Graylog won't start, says configuration file is missing #68

cmerkle opened this issue May 31, 2024 · 2 comments

Comments

@cmerkle
Copy link

cmerkle commented May 31, 2024

When trying to run the docker compose stack, I get the following errors in the graylog docker logs saying that the graylog.conf file is missing. I was under the impression that I could completely configure graylog with env variables but it seems like it will not start without a conf file.

09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog2.configuration.VersionCheckConfiguration@7fc4780b
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog2.plugin.KafkaJournalConfiguration@3b79fd76
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog2.inputs.transports.NettyTransportConfiguration@48c76607
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog.plugins.pipelineprocessor.PipelineConfig@43599640
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog.plugins.views.ViewsConfig@1f81aa00
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog2.system.processing.ProcessingStatusConfig@6b6776cb
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog.scheduler.JobSchedulerConfiguration@1863d2fe
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog.metrics.prometheus.PrometheusExporterConfiguration@1787bc24
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog2.configuration.TLSProtocolsConfiguration@544d57e
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog.plugins.map.config.GeoIpProcessorConfig@55c53a33
09:23:31.103 [main] INFO  com.github.joschi.jadconfig.JadConfig - Added configuration bean org.graylog2.configuration.TLSProtocolsConfiguration@53b7f657
09:23:31.104 [main] ERROR org.graylog2.bootstrap.CmdLineTool - Couldn't load configuration: Properties file /usr/share/graylog/data/config/graylog.conf doesn't exist!
@CrazyWolf13
Copy link

CrazyWolf13 commented Aug 19, 2024

@cmerkle
Okay so I was able to figure this out, due to graylog just being trash and having just plain wrong outdated messed up and difficult to understand docs, you need to mount the /usr/share/graylog/data/config make the UID of graylog (1100) has full access to it and then download the following two config files:

sudo chown -R 1100:1100 <path/to/the/config/mountpoint>
sudo wget https://raw.githubusercontent.com/Graylog2/graylog-docker/6.0/config/graylog.conf
sudo wget https://raw.githubusercontent.com/Graylog2/graylog-docker/6.0/config/log4j2.xml

If you then restart graylog, you should at least get rid of the greylog config error, but holy **** I've never had such a complicated and so little documented software setup than graylog.

@strichte
Copy link

If you then restart graylog, you should at least get rid of the greylog config error, but holy **** I've never had such a complicated and so little documented software setup than graylog.

100% with you. Graylog is such a hot mess. Seriously wondering if it is worth it for just monitoring. How do they mess up a docker image so badly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants