API Error – Unsupported Path During Backup of Vault

I’m using a single node vault server on AWS with autounseal.

I’m trying to take a snapshot of the vault cluster as detailed here.

But my commands are ultimately unsuccessful because of a 404 error.

I’ve attempted it as root on the server itself as well as from a remote client.

# vault operator raft snapshot save backup.snap
Error taking the snapshot: Error making API request.

URL: GET https://vault_fqdn:8200/v1/sys/storage/raft/snapshot
Code: 404. Errors:

* 1 error occurred:
	* unsupported path
# vault status
Key                      Value
---                      -----
Recovery Seal Type       shamir
Initialized              true
Sealed                   false
Total Recovery Shares    3
Threshold                2
Version                  1.9.3
Storage Type             file
Cluster Name             vault-cluster-fa6718f8
Cluster ID               0f8f531c-b7d3-0070-e298-651e0c27ef5b
HA Enabled               false

Looks like you’re using the filesystem storage type and not integrated. That API endpoint will only work with Integrated/Raft.

2 Likes

Thanks a ton. a very silly mistake on my part.