Skip to content
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

Create custom Exception for remote list verification failures #4520

Merged

Conversation

warwickmm
Copy link
Member

Previously, we would catch any Exception thrown by VerifyRemoteList and perform an auto-cleanup (if specified in the options). However, we should only perform the auto-cleanup if VerifyRemoteList detected an issue with the uploaded files. Otherwise, an unrelated exception can cause the database repair to be performed unnecessarily. In the case of a connection issue, the attempted repair (which requires listing the backend files) can leave the database in a corrupted (RepairInProgress) state.

This fixes #4516.

Previously, we would catch any Exception thrown by VerifyRemoteList and
perform an auto-cleanup (if specified in the options).  However, we
should only perform the auto-cleanup if VerifyRemoteList detected an
issue with the uploaded files.  Otherwise, an unrelated exception can
cause the database repair to be performed unnecessarily.  In the case of
a connection issue, this can leave the database in a corrupted state.

This fixes duplicati#4516.
@kenkendk kenkendk merged commit 6dcbcca into duplicati:master Aug 11, 2021
@warwickmm warwickmm deleted the remote_list_verification_exception branch August 11, 2021 15:52
@duplicatibot
Copy link

This pull request has been mentioned on Duplicati. There might be relevant details there:

https://forum.duplicati.com/t/unable-to-backup/16087/7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Corrupted database after communication / connection errors
3 participants