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

NodeId validator fails if no file exists #4434

Closed
bernd opened this issue Dec 20, 2017 · 0 comments
Closed

NodeId validator fails if no file exists #4434

bernd opened this issue Dec 20, 2017 · 0 comments
Assignees
Milestone

Comments

@bernd
Copy link
Member

bernd commented Dec 20, 2017

Expected Behavior

The server should start and create a node-id file if none exists.

Current Behavior

If there is no existing node-id file, the NodeId validator fails with the following message:

2017-12-20 09:41:20,337 ERROR: org.graylog2.bootstrap.CmdLineTool - Invalid configuration
com.github.joschi.jadconfig.ValidationException: Node ID file at path /usr/share/graylog/data/config/node-id isn't a file, readable. Please specify the correct path or change the permissions
	at org.graylog2.Configuration$NodeIdFileValidator.validate(Configuration.java:375) ~[graylog.jar:?]
	at org.graylog2.Configuration$NodeIdFileValidator.validate(Configuration.java:345) ~[graylog.jar:?]
	at com.github.joschi.jadconfig.JadConfig.validateParameter(JadConfig.java:215) ~[graylog.jar:?]
	at com.github.joschi.jadconfig.JadConfig.processClassFields(JadConfig.java:148) ~[graylog.jar:?]
	at com.github.joschi.jadconfig.JadConfig.process(JadConfig.java:99) ~[graylog.jar:?]
	at org.graylog2.bootstrap.CmdLineTool.processConfiguration(CmdLineTool.java:351) [graylog.jar:?]
	at org.graylog2.bootstrap.CmdLineTool.readConfiguration(CmdLineTool.java:344) [graylog.jar:?]
	at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:177) [graylog.jar:?]
	at org.graylog2.bootstrap.Main.main(Main.java:44) [graylog.jar:?]

Steps to Reproduce (for bugs)

  1. Download and extract the Graylog server artifact
  2. Create graylog.conf file
  3. Start server via ./bin/graylogctl run
  4. Check out error message

Context

Related issues and PRs:

We reverted the changes in 2.4 to avoid more risk and delays for the release.

Your Environment

  • Graylog Version: 2.4.0-rc.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants