Error writing pack: can't save pack data content

Today kopia failed to create a snapshot on cloud storage via rclone backend. This is the first snapshot of a newly created repository.

Kopia’s thrown this error twice. The first time it was less than an hour into the upload. I restarted it and it ran for almost 24 hours before having the same problem again. (My upload speed is slow and I expected the initial backup to take 24-48 hours)

kopia: error: encountered 1 errors:
unable to process directory “Backup”: unable to process directory “kopia”: unable to process directory “p02”: unable to process directory “9c8”: unable to write content chunk 5 of FILE:e79a9f9bef9f47e08ff275d7fe9.f: unable to write pack: error writing pack: can’t save pack data content: Write p6e/e17/9176a2736aac7d096ada067db2e.f-5265176936851498044: 405: unable to write pack: error writing pack: can’t save pack data content: Write p6e/e17/9176a2736aac7d096ada067db2e.f-5265176936851498044: 405, try --help

Because it’s somewhat random and can clearly run for hours without issue, my uneducated guess is that sometimes the cloud provider has ‘blips’ that prevent operations from succeeding and kopia doesn’t attempt to retry.

I don’t know if it’s relevant but the upload was also running very slowly, less than 1mb/s, not even saturating my 2mb/s upload connection that I can achieve with rclone directly.

Any ideas?

Are you using 0.8 or 0.7? This retry policy issue should be fixed in 0.8 betas

I thought kopia was updated to the latest version but looks like it wasn’t. I’ll try again on beta 3 and report back.

This seems to have worked. I can’t tell if the improved retry handling helped because there were no errors writing content that needed retrying this time.

Thank you for making Kopia.