-
Notifications
You must be signed in to change notification settings - Fork 66
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
Restore with wrong UID/GID 65532 #836
Comments
@DrZoidberg09 can you try running the restore with UID 0?
Checking your log I see that the restore runs with GUID 65532, so it probably doesn't have permission to set the UID to anything else You can set the podsecurity context for restores, see the docs: https://k8up.io/k8up/2.7/references/api-reference.html#k8s-api-github-com-k8up-io-k8up-v2-api-v1-runnablespec |
This is the restore job I used (with runAsUser 0):
However, it leads to what I described above. Is this the wrong way to run it as UID 0? |
The
|
Perfect, thank you! This did the trick. Maybe that could be something to include in the documentation? Or at least make it a little more prominent? But now it works really nicely. Great tool! |
Description
Hi there,
I am new to k8up and actually very impressed how it works. So far everything fine with backups.
However, if I want to restore the backups everything that is not owned by root will end up with UID or GID of 65532.
If I restore to S3 and extract the archive, the ownership is correct. However, if I restore directly to PVC, it will end up like this above.
Additional Context
No response
Logs
Expected Behavior
It should restore and maintain the UID/GID as it is in the source PVC.
Steps To Reproduce
Backup and restore as described in the docs
Version of K8up
v.2.7.0
Version of Kubernetes
1.24
Distribution of Kubernetes
Rancher
The text was updated successfully, but these errors were encountered: