I’m using vault community edition v1.3.0 with a single node cluster deployed on ubuntu machine.
I tried to restore vault by taking a snapshot and restoring it to a new deployment.
My vault conf:
pi_addr = "https://0.0.0.0:8200"
disable_clustering = true
disable_mlock = true
disable_cache = true
ui = true
listener "tcp" {
address = "0.0.0.0:8200"
http_idle_timeout = "1m"
tls_disable=true
}
seal "awskms" {
region = "ap-south-1"
access_key = "******"
secret_key = "******"
kms_key_id = "******"
endpoint = "https://vpce-*****.kms.ap-south-1.vpce.amazonaws.com"
}
storage "dynamodb" {
ha_enabled = "true"
region = "ap-south-1"
table = "vaultKMS"
}
I took a snapshot from the existing vault cluster using
vault operator raft snapshot save backup.snap
I then copied it to the another server using scp where i ran a fresh vault single instance deployment with the same conf as above and vault version. I tried restoring it to the new deployment using the command: vault operator raft snapshot restore -force backup.snap
I got the following error:
Error installing the snapshot: Error making API request.
URL: POST http://127.0.0.1:8200/v1/sys/storage/raft/snapshot-force
Code: 404. Errors:
* 1 error occurred:
* unsupported path