-
Notifications
You must be signed in to change notification settings - Fork 80
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
repair index
has no effect
#1084
Comments
@Schweber Thanks a lot for reporting the issue! And very sorry for the late reply. Actually, what you are reporting is a mystery for me. The #1078 won't fix this as it does exactly the same as Can you try to re-run your example with the latest nightly builds? I would like to see if you can still reproduce it there. If you still get the same behavior we have to get more debug information of what's going wrong... |
I compiled I ran the commands again with debug log-level, i hope this is useful to you: |
@Schweber Sorry for coming back so late to this topic. I tried to reproduce the behavior using rustic v0.7.0 - but wasn't able to. To summarize your problem:
I tried to reproduce this by manually adding packfiles to the repository.
and afterwards, So, it seems not to be a general Unfortunately, the debug logs do not contain any more information here, but can you please:
Thanks a lot for your support and patience! |
I'm back on "mainline" so
Nothing stands out to me in the /data directory but i wouldn't know what to look for anyway. I append the screenshots as i didn't find a way to export them in text form: |
Sorry for being not precise. I actually meat the files which are bailed by
|
Ok, this is interesting and could be the cause of the issue. Those seem to be completely identical files. This is usually not even possible...Which storage backend are you using here? |
I can't imagine that this is caused by a I also wonder how these duplicates could appear. rustic would normally only try to save a file a second time if the storage backend reported an error while saving it. And as said, usually backends don't even allow to save identical duplicates. |
The backend is mega.nz (via rclone). |
So, I think this is the cause for this issue:
@Schweber In general, this is something which can't be repaired by rustic, as the API to the backend assumes that there is no possibility for duplicates. You can however repair it by hand: If you can compare the files and make sure, that files with same name are identical (which seems to be), just remove the duplicates. Else, you might want to backup them just in case only one of the duplicates would work and choose the right one. Anyway, after that, I will add this extra check to |
And thanks a lot @Schweber for reporting - this is indeed a rare edge case which I haven't thought of when implementing |
Oh, ok. It would be nice if it could do that as One question regarding this: what happens if i were to delete the wrong "duplicates"? Would rustic notice this during
Sure, thank you for creating |
Yes, a |
Alright, i deleted the duplicates and the
What does that mean and how can i fix this? Or is this beyond the scope of |
Ok, this is a different problem, unrelated to the |
Checking my repository yields the following:
I then run
If i then run the check again, exactly the same output is shown. I rebooted my system and went through the steps again, the result is the same.
I once started the
forget
command and then cancelled it after a short while, so i think that is where the errors are from. However, i don't know whyrepair
doesn't work.The text was updated successfully, but these errors were encountered: