Issue
I have a scheduled backup that runs daily. It targets B2 for the backend. I’ve found that it frequently (once or twice a week) fails with errors indicating that it cannot find the lock file. The backups always succeed, but it produces errors that get flagged by my monitoring. From what I’ve seen the retry logic continues until success, and typically takes about half a min to resolve the issue. From what I can tell, it doesn’t appear to be related to internet connectivity… but it certainly could be.
Questions
Is there a way to suppress these errors so they don’t pollute my log files? I don’t really care if there’s a temporary error, as long as it recovers and the backup is successful.
Alternatively, is there something I can do avoid these errors in the first place?
Many thanks!
Version
restic 0.16.4 compiled with go1.21.6 on linux/amd64
Command
restic backup --limit-upload=300 --exclude-caches --exclude-if-present .nobackup --exclude-if-present .resticignore --exclude-file /tmp/tmp.leUfmAfVKu --tag mytag /location1 /location2 /location3
Environment vars
export B2_ACCOUNT_ID=‘numbers’
export B2_ACCOUNT_KEY=‘key’
export RESTIC_REPOSITORY=‘b2:restic’
export RESTIC_PASSWORD=‘password’`
Output
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 538.711416ms: b2_download_file_by_name: 404: File with such name does not exist.
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 951.476121ms: b2_download_file_by_name: 404: File with such name does not exist.
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 901.793845ms: b2_download_file_by_name: 404: File with such name does not exist.
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 2.360498931s: b2_download_file_by_name: 404: File with such name does not exist.
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 3.540423034s: b2_download_file_by_name: 404: File with such name does not exist.
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 5.600433689s: b2_download_file_by_name: 404: File with such name does not exist.
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 3.147820101s: b2_download_file_by_name: 404: File with such name does not exist.
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 4.528310464s: b2_download_file_by_name: 404: File with such name does not exist.
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 8.192409453s: b2_download_file_by_name: 404: File with such name does not exist.
Load(<lock/cdfd940510>, 0, 0) returned error, retrying after 23.584056688s: b2_download_file_by_name: 404: File with such name does not exist.
using parent snapshot d76e22bdFiles: 0 new, 0 changed, 205353 unmodified
Dirs: 0 new, 21086 changed, 0 unmodified
Added to the repository: 118.703 MiB (35.427 MiB stored)processed 205353 files, 827.956 GiB in 3:57
snapshot 337b4d61 saved