Runtime error: invalid memory address or nil pointer dereference Dropbox check

Hi.
I’m using duplicacy_linux_x64_2.7.1 in cloud instance to check Dropbox storage backed up a few days ago by Duplicacy Web from my own mac.
I’m using this command to check with -files (normal check does succeed without problems)
./duplicacy_linux_x64_2.7.1 check -storage restoreDropbox -id yFolder -files -threads 5
Backup size is about 60GB, just my home folder from mac mini.

I’m getting the error every so often. There is no set time when it happens, but to get through the check it takes a few runs to get through.

Linode instance is empty instances doing absolutely nothing else, fresh spawn of Ubuntu 20 LTS, memory is 8GB with about 7GB free during the run.

Anything else I can do to investigate this error further?

Here is the output.

Verified chunk 7b8509f86950bcee89e842905f9b9f046d02b0939d41499287e8818c231a4dac (2425/10732), 5.87MB/s 01:56:49 22.6%
Verified chunk 7aa5b84317c97e7bebd20e23a9449daac0fb23225a689bf3184f30c34ebbfc21 (2426/10732), 5.87MB/s 01:56:49 22.6%
Verified chunk 33b24f3b2633a0b0aa8446069ab09bdcb26c3fc482d885b2cc2e04df34344637 (2427/10732), 5.87MB/s 01:56:49 22.6%
Verified chunk 20b660d615aee45ca9e11d6afd16232461bafe1da80d3b8cf886957679dbdf13 (2428/10732), 5.87MB/s 01:56:49 22.6%
Verified chunk eacb19993a99cf27b5f36303328c271966fe38953adef902712235af3bab8812 (2429/10732), 5.87MB/s 01:56:56 22.6%
POST https://content.dropboxapi.com/2/files/download returned 503; retrying after 0.50 seconds
runtime error: invalid memory address or nil pointer dereference
goroutine 67 [running]:
runtime/debug.Stack(0x41, 0x0, 0x0)
        /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:233 +0xee
panic(0xedbb20, 0x1af58e0)
        /usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox.(*Client).do(0xc000124a40, 0xc000202800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox/client.go:107 +0x350
github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox.(*Client).download(0xc000124a40, 0x1026842, 0xf, 0xe300e0, 0xc0003253f0, 0x0, 0x0, 0x0, 0xc0000fb990, 0x2, ...)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox/client.go:76 +0x43b
github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox.(*Files).Download(0xc000122038, 0xc0003253f0, 0x5, 0xc0004b6be0, 0x49)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox/files.go:361 +0x82
github.com/gilbertchen/duplicacy/src.(*DropboxStorage).DownloadFile(0xc00049aa10, 0x0, 0xc0004b6be0, 0x49, 0xc000332540, 0x0, 0x0)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_dropboxstorage.go:197 +0x11a
github.com/gilbertchen/duplicacy/src.(*ChunkDownloader).Download(0xc000199c30, 0x0, 0x0, 0x980, 0xc001705380, 0x20, 0x0, 0x1, 0x7f04836beb01)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_chunkdownloader.go:443 +0x1b0
github.com/gilbertchen/duplicacy/src.CreateChunkDownloader.func1(0xc000199c30, 0x0)
        /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

Here is another one:

root@li940-71:~/backups# time ./duplicacy_linux_x64_2.7.1 check -storage restoreDropbox -id yFolder -files -threads 50
Storage set to dropbox://mini
Listing all chunks
^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A1 snapshots and 8 revisions
Total chunk size is 66,211M in 15076 chunks
^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[All files in snapshot yFolder at revision 1 have been successfully verified
All files in snapshot yFolder at revision 2 have been successfully verified
All files in snapshot yFolder at revision 3 have been successfully verified
All files in snapshot yFolder at revision 4 have been successfully verified
All files in snapshot yFolder at revision 5 have been successfully verified
POST https://api.dropboxapi.com/2/files/get_metadata returned 503; retrying after 0.50 seconds
All files in snapshot yFolder at revision 6 have been successfully verified
All files in snapshot yFolder at revision 7 have been successfully verified
POST https://content.dropboxapi.com/2/files/download returned 503; retrying after 0.50 seconds
runtime error: invalid memory address or nil pointer dereference
goroutine 106 [running]:
runtime/debug.Stack(0x41, 0x0, 0x0)
        /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:233 +0xee
panic(0xedbb20, 0x1af58e0)
        /usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox.(*Client).do(0xc0003e9ac0, 0xc000116f00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox/client.go:107 +0x350
github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox.(*Client).download(0xc0003e9ac0, 0x1026842, 0xf, 0xe300e0, 0xc000066390, 0x0, 0x0, 0x0, 0xc002259990, 0x2, ...)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox/client.go:76 +0x43b
github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox.(*Files).Download(0xc00012c258, 0xc000066390, 0x5, 0xc0053abb30, 0x49)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/vendor/github.com/gilbertchen/go-dropbox/files.go:361 +0x82
github.com/gilbertchen/duplicacy/src.(*DropboxStorage).DownloadFile(0xc0004083f0, 0x31, 0xc0053abb30, 0x49, 0xc000400840, 0x0, 0x0)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_dropboxstorage.go:197 +0x11a
github.com/gilbertchen/duplicacy/src.(*ChunkDownloader).Download(0xc000222d10, 0x31, 0x0, 0x16b79, 0xc0123bf1a0, 0x20, 0x0, 0x1, 0x1)
        /Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_chunkdownloader.go:443 +0x1b0
github.com/gilbertchen/duplicacy/src.CreateChunkDownloader.func1(0xc000222d10, 0x31)
        /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

real    1535m2.474s
user    60m8.787s
sys     5m59.320s

The error occurred on this line:

seeker may be nil for actions other than uploading a file, so a check should be added.

I’ll fix it for the next release.

1 Like