-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
0.15.0 regression: Load(<lock/04804cba82>, 0, 0) returned error, retrying after 720.254544ms: load(<lock/04804cba82>): invalid data returned #4143
Comments
Oh, that's odd, thanks for the report! I'm wondering though: the first thing restic does is load the file It works for me (with an OpenSSH server), what's the server software on the other end? Can you maybe do a |
The backup is on rsync.net. They appear to use:
I just tried to another backup using the B2 backend and that worked. I'm not sure I can |
That rather looks like the lock files in question are broken. Since #3569 invalid lock files are no longer ignored, and #3521 added the "invalid data returned" error. Can you delete the lock files whose name starts with |
The lock files are empty files:
After removing all empty lock files, restic works again. But the user experience is not great. Maybe ignore empty lock files? Or give a hint about removing broken lock files? |
Oh I just saw your edit about |
btw, this is probably normal behaviour but I wanted to mention it just in case. As you can see above,there's an old lock file from Jan 1.
(The error message also tells me what to do, which is good; I'm not sure what |
I agree that the warning should be more helpful. For now, I'm in favor of printing a more helpful error message. The problem with invalid lock files, is that it can be unclear whether the file is just an old failed upload or a recent lock file that cannot be read for some reason. Just ignoring empty lock files might be possible though. But I'd like to avoid that if possible. If you want you can manually delete all
|
I've done that yesterday and everything is working fine.
Ok, that's what I thought. Thanks for confirming. @MichaelEischer thanks for your exceptional support and maintenance! I really appreciate all the work you and @fd0 put into restic! |
Mine are sent to a USB 3 external HDD: with 0.15.0
With 0.14.0
|
You have to use |
[Edit confirmed without posting a message]
|
@MichaelEischer what do you think of having |
I'm having the same issue since 0.15. Just ftr is the recommended solution to remove all locks, or is this a regression and should I just go back to .14, and wait for .15.1? |
The root cause are some left-over invalid lock files. restic 0.15 is now much more strict and fails if it cannot check the validity of a lock file instead of ignoring it. For now the recommended solution is to once run
#4152 ignores empty lock files, such that empty lock files will be ignored again. To clean up the empty lock files, the |
Upgrading to 0.15.0, restic fails to connect to my repo:
0.14.0 works fine:
The backend is SFTP.
The text was updated successfully, but these errors were encountered: