Random lock issue

So this happens periodically using the v2 repo. I don’t thiiiiink I’ve seen it out of v1.

smitmark@RJHB595 ~ % restic2 snapshots -c
repository f186139f opened (repo version 2) successfully, password is correct
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 552.330144ms: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 1.080381816s: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 1.31013006s: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 1.582392691s: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 2.340488664s: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 4.506218855s: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 3.221479586s: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 5.608623477s: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 7.649837917s: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
Load(<lock/5ca29ebf1f>, 0, 0) returned error, retrying after 15.394871241s: open /Volumes/Fusion Drive/bak/ohsu_v2/locks/5ca29ebf1f851b7f3766991ebc5ea97e694f6040c6c71338eef2d6dd22489e1e: no such file or directory
  signal interrupt received, cleaning up
^[[A%
smitmark@RJHB595 ~ % restic2 snapshots -c
repository f186139f opened (repo version 2) successfully, password is correct
ID        Time                 Host                       Tags
-------------------------------------------------------------------------
d7ba7013  2021-06-23 11:33:10  Philips-MacBook-Pro.local  copenhav
598ba61c  2022-02-23 18:27:34  RJHB105                    copenhav
6f219d6c  2022-02-24 09:55:44  RJHB525                    copenhav
0c5859c3  2022-03-08 12:40:01  RJHB525                    copenhav
ef7d4ca3  2022-03-21 12:32:46  RJHB525                    copenhav
2e4998c2  2022-03-28 11:53:20  APRICORN                   copenhav
74c2e512  2022-03-29 17:35:51  Philips-MacBook-Pro.local  copenhav
2b3faf90  2022-04-19 12:29:49  RJHB525                    copenhav
d68c078e  2022-04-22 15:51:04  RJHB525                    copenhav
                                                          mailbox
                                                          fixed
fd67e2a9  2022-04-26 10:36:44  RJHB525                    copenhav
                                                          mailbox
                                                          fixed
4d7270cd  2022-05-02 10:58:01  RJHB525                    copenhav
                                                          mailbox
                                                          b4_mail_restore
f722a4dd  2022-05-03 08:41:00  RJHB525                    copenhav
                                                          b4_mail_wipe
2969e86f  2022-05-03 09:01:04  RJHB525                    copenhav
                                                          mailbox
                                                          exports
                                                          b4_mail_wipe
-------------------------------------------------------------------------
13 snapshots
smitmark@RJHB595 ~ %

TL;DR: Sometimes I get “no such file or directory” errors when trying to list snapshots (or other operations), and I see the locks being created, and deleted, over and over in the locks folder. If I cancel, and try again, it usually works immediately.

Which backend are you using? The compression support doesn’t change anything about lock handling so I’d be surprised if it causes that behavior.

The initial snapshots call had already completed all retries, so it should just have printed the snapshots list at that point (after 15 seconds).

It’s a local drive, which makes it even weirder. The drive checks out. SMART data seems OK. Not sure what’s going on.

That’s indeed very odd. It would be interesting to get a debug log of when that problem occurs again, see restic/CONTRIBUTING.md at master · restic/restic · GitHub for instruction to generate such a log.

1 Like