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
Missing lock file should be skipped #2596
Comments
This could be solved rather elegantly by making the |
@ProactiveServices do you remember whether the lock loading error repeated more than 10 or 20 times? I'm no longer sure how I ended up talking about the Remove command (probably too much reading about other lock issues...). If the error only showed up that many times, then these are just unnecessary retries like in #1523. |
When trying to access a lock to which it has no permission there were 10 retries before restic aborted. When trying to access a pre-existing lock which initially existed, but was then removed, there were also 10 retries. Looks like I jumped the gun when I saw the repeated retries; for some reason I assumed it would continue retrying indefinitely. |
Duplicate of #1523. |
If a rest-server cannot access a lock file, which is deleted during the restic session, restic (client) will continue to try to remove the non-existent lock file because it is not aware the lock file has disappeared. To resolve this perhaps restic could get a list of the locks dir before each attempt to query/remove locks. A corner case but it's not my call as to whether to address it, I thought it worth reporting anyway.
Output of
restic version
restic 0.9.6 compiled with go1.13.4 on linux/amd64
How did you run restic exactly?
Against a rest-server:
restic check -r <rest server> -p <password> --cacert <file>
The rest server didn't have permission to access a lock file, which was an unrelated problem of my making. The rest server logs:
While restic is waiting I removed the lockfile on the server manually then restic (client) retried access to the lockfile, rest-server reported:
...and they continued on.
Restic assumed that the lockfile existed with every retry, meanwhile it had been deleted, so the lock query could never succeed in the session.
The text was updated successfully, but these errors were encountered: