-
Notifications
You must be signed in to change notification settings - Fork 68
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
Job keeps failing with unable to save snapshot: snapshot is empty
#1181
Comments
Update: so the snapshot was empty, it seems that when I was using 0.8.1 the empty snapshot didn't result in an error. So thinking this wasn't a bug after all in my case. I’m seeing the same issue myself if any extra info needed. Only occurs on one of my backup jobs the remainder are all working as expected. Only thing different is that this is the newest backup job I’ve created, not sure what version of volsync it was originally created with but likely 0.8.1. Issue only arose after upgrading to 0.9.0. |
My guess is this is due to a fix I put in to ignore "lost+found" (it is new for v0.9.0). Do you have a lost+found dir in your empty source volume? We do have a check to see if the source is empty and skip the backup, but it will think the dir is not empty if there's a lost+found. I think I will need to fix this empty dir check to also ignore lost+found. |
@tesshuflower yeah the directory is empty, which is weird because it shouldn't be empty. I don't know if it's the program using the PVC deleted the data or I'm gonna close this issue now as this is an intended behavior. But I still need to investigate how the data went missing. Thank you for the reply! |
@tesshuflower So, it was my BAD. I'm mounting the storage to a wrong location the whole time (budimanjojo/home-cluster@f02ee27). But, there's a "lost+found" directory there. And, can you provide me on how to make the job not failing when the directory is empty? Like make it just skip without failing (maybe your "I think I will need to fix this empty dir check to also ignore lost+found" means this?) |
@budimanjojo I think the "lost+found" is causing an issue - normally our empty dir check would skip the backup if there was no data present in the volume. But now that we tell restic to ignore "lost+found", we still try to backup, only for restic to error out with no data to backup. I will reopen this issue to implement a fix to the empty dir check so it ignores "lost+found". |
Fixes: backube#1181 Signed-off-by: Tesshu Flower <[email protected]>
Fixes: backube#1181 Signed-off-by: Tesshu Flower <[email protected]>
Describe the bug
After upgrading to v0.9.0, one of my backup job keeps failing and I don't know why.
Steps to reproduce
No idea yet.
Expected behavior
Job should run fine as the older version.
Actual results
Additional context
Here's the log of the failing pod:
I don't know what's causing the problem or how to fix it, but I'll be glad to provide more information if needed to help with this issue. Thanks before!
The text was updated successfully, but these errors were encountered: