Hi ,
I have a Vault Instance with backend storage as a raft. Previously, it was file storage backend, but I have migrated to raft recently and the migration is happening only with sudo
.
Now, I am trying to diagnose the vault server and can’t do it without the Sudo command. I thought that there was some problem with file permissions. I have changed all the vault files and directories to the user running vault, which is ubuntu
. While starting the server, it’s showing
vault[166870]: Error initializing storage of type raft: failed to create fsm: failed to open bolt file: error checking raft FSM db file "/opt/vault/raft/vault.db": stat /opt/vault/raft/vault.db: permission denied
As per the documentation,
By default, Vault expects the config directory and files to be owned by the user running Vault. It also expects no write or execute permissions for group or others.
So, I have owned the files and directories to ubuntu and set the 700 for directories and 600 for files. Can someone help with this?
ls -l /opt/vault/raft
I have also modified the service file.
ls -l /opt/vault/