Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
The article is very good, but the vault service won’t start on Ubuntu 18.04LTS:
Process: 9787 ExecStart=/usr/local/bin/vault server -config=/etc/vault.hcl (co
Main PID: 9787 (code=exited, status=213/SECUREBITS)
I have double checked the vault.hcl file, the certificates are found and valid.
Moreover, if I manually start vault using the ExecStart command line:
ExecStart=/usr/local/bin/vault server -config=/etc/vault.hcl
the software works perfectly, but of course it runs in interactive mode.
I love technical tutorials on Digital Ocean. You have set a standard of accessible technical writing. Great job!
It seems the service will not start as it’s missing permissions, to fix it, after you copy the vault executable to /usr/local/bin, you must change file ownership to user and group vault
so right afer: sudo cp vault /usr/local/bin/
you must run: chown vault:vault /usr/local/bin/vault
then resume adding the capability flag: setcap cap_ipc_lock=+ep /usr/local/bin/vault
thanks for the tutorial!
sudo chgrp -R pki /etc/letsencrypt/{archive,live} sudo chmod -R g+rx /etc/letsencrypt/{archive,live}
Otherwise, it will give permission error. Vault needs recursive permission in the sub folder. Without ‘-R’ it will not work.
Also, instead of vault init -key-shares=3 -key-threshold=2 the command should be vault operator init -key-shares=3 -key-threshold=2 most probably this is for new vault version
I was going mad and it just wasn’t working for me. I had to reinstall ubunto and start all over again. I realized that the problem was that I had tried this guide : https://blog.carbonteq.com/vault-installation-guide/ before I started with yours… somethings went wrong that I don’t understand. After starting from scratch your technique worked… I had to take help from the comments too when I was stuck with some of the same erros and requirments mentioned in the comments. But thanks. thank a lot.
I can’t seem to be able to write any secrets:
$ VAULT_TOKEN=$root_token vault write secret/message value=mypassword
Error writing data to secret/message: Error making API request.
URL: PUT https://mywebsitename.com:8200/v1/secret/message
Code: 404. Errors:
WARNING! The following warnings were returned from Vault:
* Invalid path for a versioned K/V secrets engine. See the API docs for the
appropriate API endpoints to use. If using the Vault CLI, use 'vault kv put'
for this operation.
When I use kv put:
$ root_token vault kv put secret/message value=mypassword
Error writing data to secret/message/data: Error making API request.
URL: PUT https://mywebsitename.com:8200/v1/secret/message/data
Code: 404. Errors:
WARNING! The following warnings were returned from Vault:
* Non-listing operations on the root of a K/V v2 mount are not supported.
Thanks for this write-up and for follow-up comments documenting the breaking changes to systemd since it was written. I Have this working, but rather annoyingly porting to cloud-init keeps missing steps. It’s very frustrating. But running the commands non-interactively and interactively seems to work with no modifications outside of cloud-init. Most frustrating indeed.
I’ve gotten as far as ‘vault operator init’ and getting back ‘connection refused’. What could I be doing wrong?