When running a duplicacy check
, duplicacy doesn’t retry on any download errors (eg 4xx/5xx), even if they’re transient and will immediately exit on the first error it encounters.
Is there a way to make duplicacy retry automatically on these transient chunk download errors?
...
Verified chunk 6711c4559cf863f123b51ab5f8438b7a9405737b98a6ffc2b0c55bdd1c41ae39 (7856/1976783), 11.25MB/s 9 days 23:54:58 0.4%
Prefetching chunk ee3c1b65f32eba2d7db4dc9088630e44f5d9a5bbca2bd081be152e80a897fc79
Chunk ee3c1b65f32eba2d7db4dc9088630e44f5d9a5bbca2bd081be152e80a897fc79 has been downloaded
Failed to download the chunk 360d0f6deefc71fff0c9ba673c2e2b8fcbe43860e9a2d5c9bb3c3300e2baf4bc: googleapi: got HTTP response code 400 with body: {"error":{"errors":[{"domain":"global","reason":"failedPrecondition","message":"Bad Request"}],"code":400,"message":"Bad Request"}}
goroutine 147 [running]:
runtime/debug.Stack(0xc0000bc0c0, 0x0, 0xc052487700)
/usr/local/go/src/runtime/debug/stack.go:24 +0x9d
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x22
github.com/gilbertchen/duplicacy/src.CatchLogException()
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_log.go:227 +0x88
panic(0xf49d60, 0xc00294f3e0)
/usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/gilbertchen/duplicacy/src.logf(0x2, 0x1027d12, 0xe, 0x1040875, 0x23, 0xc052487cf0, 0x2, 0x2)
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_log.go:180 +0x8f9
github.com/gilbertchen/duplicacy/src.LOG_WERROR(0xc02ab4e300, 0x1027d12, 0xe, 0x1040875, 0x23, 0xc052487cf0, 0x2, 0x2)
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_log.go:114 +0xe6
github.com/gilbertchen/duplicacy/src.(*ChunkDownloader).Download(0xc0004b8000, 0x2, 0x0, 0x221e, 0xc00ad91220, 0x20, 0x0, 0x1, 0x1b02c01)
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_chunkdownloader.go:453 +0x400
github.com/gilbertchen/duplicacy/src.CreateChunkDownloader.func1(0xc0004b8000, 0x2)
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_chunkdownloader.go:87 +0xb7
created by github.com/gilbertchen/duplicacy/src.CreateChunkDownloader
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_chunkdownloader.go:82 +0x1e6
Added 7856 chunks to the list of verified chunks
I’ve also gotten errors like Failed to download the chunk 18027d9645f322f7a920cfddc51e23412edd5e1a3578c592b41d37aacddd503e: stream error: stream ID 11337; INTERNAL_ERROR
, but was running without debugging.