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

Missing Vault token in Nomad servers #1

Closed
lgfa29 opened this issue Feb 6, 2022 · 4 comments
Closed

Missing Vault token in Nomad servers #1

lgfa29 opened this issue Feb 6, 2022 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@lgfa29
Copy link

lgfa29 commented Feb 6, 2022

What OS are you using?

macOS

Unexpected behavior

Nomad servers are not able to start due to missing Vault token

Steps to reproduce

$ make init

Navigate to a Nomad server (e.g. http://192.168.60.10:4646/)

Expected behavior

The Nomad UI is displayed.

Logs

$ vagrant ssh node-server-1
$ journalctl -u nomad
Feb 06 20:14:25 node-server-1 systemd[1]: Started "HashiCorp Nomad".
Feb 06 20:14:25 node-server-1 nomad[15561]: ==> Loaded configuration from /hashibox/defaults/nomad/config/defaults.hcl, /hashibox/overrides/nomad/config/overrides.hcl
Feb 06 20:14:25 node-server-1 nomad[15561]: ==> Starting Nomad agent...
Feb 06 20:14:25 node-server-1 nomad[15561]: ==> Error starting agent: server setup failed: Failed to setup Vault client: Vault token must be set
Feb 06 20:14:25 node-server-1 nomad[15561]:     2022-02-06T20:14:25.833Z [WARN]  agent.plugin_loader: skipping external plugins since plugin_dir doesn't exist: plugin_dir=/opt/nomad/plugins
Feb 06 20:14:25 node-server-1 nomad[15561]:     2022-02-06T20:14:25.837Z [INFO]  agent: detected plugin: name=raw_exec type=driver plugin_version=0.1.0
Feb 06 20:14:25 node-server-1 nomad[15561]:     2022-02-06T20:14:25.837Z [INFO]  agent: detected plugin: name=exec type=driver plugin_version=0.1.0
Feb 06 20:14:25 node-server-1 nomad[15561]:     2022-02-06T20:14:25.837Z [INFO]  agent: detected plugin: name=qemu type=driver plugin_version=0.1.0
Feb 06 20:14:25 node-server-1 nomad[15561]:     2022-02-06T20:14:25.837Z [INFO]  agent: detected plugin: name=java type=driver plugin_version=0.1.0
Feb 06 20:14:25 node-server-1 nomad[15561]:     2022-02-06T20:14:25.837Z [INFO]  agent: detected plugin: name=docker type=driver plugin_version=0.1.0
Feb 06 20:14:25 node-server-1 nomad[15561]:     2022-02-06T20:14:25.837Z [INFO]  nomad: shutting down server
@loicsaintroch loicsaintroch self-assigned this Feb 6, 2022
@loicsaintroch
Copy link
Member

Thank you @lgfa29 for trying this out.

As written at the end of the Installation document:

Vault is not yet initialized. Therefore, Vault health checks don't pass and Nomad can't properly run since it's configured to integrate with Vault.

Did you follow the Vault initialization document after? Do you have a suggestion to improve or automate this onboarding?

@lgfa29
Copy link
Author

lgfa29 commented Feb 6, 2022

Oh, of course there is, sorry I missed that 😅

I saw the table with the URLs and started clicking on then, which moved me away from the instructions, and then I went debugging.

Maybe move the Vault notice before the table with the links? But the steps are all there, it was my fault that I missed.

Thanks for the reply!

@lgfa29 lgfa29 closed this as completed Feb 6, 2022
@loicsaintroch loicsaintroch added the documentation Improvements or additions to documentation label Feb 6, 2022
loicsaintroch added a commit that referenced this issue Feb 6, 2022
Signed-off-by: Loïc Saint-Roch <loic@nunchi.studio>
@loicsaintroch
Copy link
Member

No problem, thanks for the feedback. 😉

I just improved the documentation and navigation between steps. It should be easier to follow now.

@lgfa29
Copy link
Author

lgfa29 commented Feb 8, 2022

image

All green after actually following the instructions 😅 🥳

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

No branches or pull requests

2 participants