-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Failing to run service as nonroot #54
Comments
It may be the lack of coffee, but I am a little confused with what is wrong. Are you trying to run the vault process as a non-root user other than vault? |
Let me try for clarity...
Which I found uninformative, hence my wondering if there's a way to get more log information Then Manually examine the generated file
and see that the command that is run is:
so, in order to see if this is something environmental or systemd related, I run the command by hand, again as root (translated to bash syntax):
and vault starts just fine:
==> Vault server started! Log data will stream in below: So I'm thinking there's something wrong with the systemd invocation, maybe a missing environment variable or some such, but no way to tell, as the log information is so minimal. Does that clarify? |
Yep, thanks! I am going to bring in @coderanger here since we're using systemd through poise-service library. |
If you are using systemd, the thing to check is |
I suppose, it was fixed by #51 |
I'm thinking the problem may be related to how I'm invoking the cookbook, probably something thickheaded on my part, and assumed by more experienced chefs, or related to running in a chef-zero (local) environment. John, could I trouble you for a quick basic usage command-by-command including any berks commands you are issuing? Perhaps a sanitized set of commands the next time you do a run? If it was in chef zero (chef client -z) even better... |
We are using policyfiles to deploy our cluster using the vault-cluster and the consul-cluster cookbook. Our workflow for deploying policies is:
If you're going to use Berkshelf and the environment cookbook pattern a similar workflow to lock the cookbook dependencies with environments would be:
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Running the default recipe as a root user, but with a nonroot service user attribute (the default 'vault') results in a service start failure:
``systemd[1]: vault.service: control process exited, code=exited status=1
Apr 18 18:43:29 APP systemd[1]: Reload failed for LSB: Init script for vault.
`
Which doesn't tell me much. Deconstructing the command from
/etc/rc.d/init.d/vault
and running manually like this:# /opt/vault/0.5.2/vault server -config=/etc/vault/vault.json
works just fine. Anyone know a way to kick up the log level to see just what is dying?
The text was updated successfully, but these errors were encountered: