-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Cannot download raft storage snapshot from UI #17608
Comments
Just to clarify, the manual creation of the snapshot with the vault operator command is with the same credentials, correct? |
Yes, |
Thank you! I'll have our engineering teams take a look. :) |
np, thank you! :) |
I am having the same issue. I had Vault 1.8.8 and the download snapshot from UI was working fine. Then I upgraded to 1.11.3 and that functionality broke. In version 1.11.3 I tried both being logged as my usr and as root user. Same behaviour. I can take the snapshot using the cli but from UI it hangs and eventually I get permission denied message in the browser. |
Same with v1.12.1. |
This was fixed in PR #17769 -- will be released with 1.11.6 and 1.12.2. Thanks all! |
Describe the bug
When I login to Vault UI and go to Status/Raft storage --> Snapshots --> Download It hangs for some time and then it shows message in browser:
{"errors":["permission denied"]}
URL is:
https://vault-cluster.example.com:8200/ui/vault/storage/raft
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should offer snapshot to download.
Environment:
vault status
):vault status
Key Value
Seal Type shamir
Initialized true
Sealed false
Total Shares 5
Threshold 3
Version 1.12.0
Build Date 2022-10-10T18:14:33Z
Storage Type raft
Cluster Name vault-cluster-xxxxxx
Cluster ID xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
HA Enabled true
HA Cluster https://vault-node1.example.com:8201
HA Mode active
Active Since 2022-10-19T16:55:47.797228758Z
Raft Committed Index 2003050
Raft Applied Index 2003050
vault version
):Vault v1.12.0 (558abfa), built 2022-10-10T18:14:33Z
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Vault server configuration file(s):
vault operator raft autopilot state
Healthy: true
Failure Tolerance: 2
Leader: node1
Voters:
node1
node2
node3
node4
node5
Servers:
node1
Name: node1
Address: vault-node1.example.com:8201
Status: leader
Node Status: alive
Healthy: true
Last Contact: 0s
Last Term: 48
Last Index: 2003100
Version: 1.12.0
Node Type: voter
node2
Name: node2
Address: vault-node2.example.com:8201
Status: voter
Node Status: alive
Healthy: true
Last Contact: 139.461806ms
Last Term: 48
Last Index: 2003100
Version: 1.12.0
Node Type: voter
node3
Name: node3
Address: vault-node3.example.com:8201
Status: voter
Node Status: alive
Healthy: true
Last Contact: 434.560895ms
Last Term: 48
Last Index: 2003100
Version: 1.12.0
Node Type: voter
node4
Name: node4
Address: vault-node4.example.com:8201
Status: voter
Node Status: alive
Healthy: true
Last Contact: 1.706376111s
Last Term: 48
Last Index: 2003100
Version: 1.12.0
Node Type: voter
node5
Name: node5
Address: vault-node5.example.com:8201
Status: voter
Node Status: alive
Healthy: true
Last Contact: 156.711955ms
Last Term: 48
Last Index: 2003100
Version: 1.12.0
Node Type: voter
Additional context
Manual creation of snapshot works:
vault operator raft snapshot save 19102022.snapshot
ls -lah
total 9.2M
drwxr-xr-x 2 root root 4.0K Oct 19 17:01 .
drwx------ 8 root root 4.0K Oct 19 17:01 ..
-rw------- 1 root root 9.2M Oct 19 17:01 19102022.snapshot
The text was updated successfully, but these errors were encountered: