-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Error initializing storage of type raft: failed to create fsm: invalid argument #9474
Comments
The underlying error is raised by Can you try setting up a persistent volume to use as the path for Raft storage and see if that works? Update: Alternatively, you can follow the instructions over here to use the Vault Helm chart to a deploy an HA Vault cluster with Integrated Storage. |
Thanks @calvn ! It does make sense since I'm using a local folder synchronized with a Box.com folder for raft data. Let me try creating a minikube PV for raft that is not shared with Box or shared. |
Unfortunately I'm still getting the same error message even though I'm using a PV now.
vault.json
vault1-deploy.yaml
PVC
Local path:
If I don't create the I have updated minikube and kubectl to the latest version, but no changes. |
I tested Everything works fine with the |
No luck @calvn, same error even shutdown all possible software in my MacBook. I tried to mimic the
I don't think this raft error is related to the same |
Can you also output the actual persistent volumes (via |
If you're able to use helm, can you give the helm guide over here a try to see if you can get it running on your laptop? Since we're using minikube, run this command instead to get a 3-node cluster with Raft set up on a single k8s node.
|
Sure, below is the persistent volume and related persistent volume claim PV
PVC
Also, I'm mapping the minikube node filesystem to my MacBook filesystem:
I'll try |
The issue could be the mapping between the minikube node and MacOS. Can you try a path for raft that's not mapped to the host? |
Indeed, if I don't use
Thanks for the help! |
Describe the bug
When trying to use Raft as the backend storage for a Vault running as a container inside minikube (Kubernetes), the following error message is threw:
Error initializing storage of type raft: failed to create fsm: invalid argument
To Reproduce
Steps to reproduce the behavior:
Apply the deployment
kubectl apply -f k8s-vault1-deploy.yaml
Get POD log to see an unique log entry
Expected behavior
Vault server initializes using Raft backend storage.
Environment:
vault status
): 1.4.2 (Default image)vault version
):Vault v1.4.2
Darwin Kernel Version 19.5.0
Vault server configuration file(s):
Additional context
Host Filesystem:
Host Filesystem permissions:
raft directory, raft.db, snapshots were NOT created here for unknown reason.
The text was updated successfully, but these errors were encountered: