"Failed to add the chunk" warnings (and then errors)

I’ve got Duplicacy running on my Raspberry Pi 4 to backup my NAS, and, for the most part, it’s working well.

I have 6 different directories that are mounted on /media/NAS. I got them all backed up manually, and now have a shell backup script for each one that I can call via cron (or manually).

I just finished getting the scripts and such set up this morning, and now, when I run the script for one of them manually, I get some warnings that it can’t add a chunk, and then an error that it failed to list the directory where that chunk was supposed to be added. Both of them have “permission denied” errors.

The relevant portions of the output for my music directory:

2019-10-14 14:39:40.712 INFO STORAGE_SET Storage set to *********
2019-10-14 14:39:41.287 TRACE CONFIG_ITERATIONS Using 16384 iterations for key derivation
2019-10-14 14:39:41.568 TRACE SNAPSHOT_DOWNLOAD_LATEST Downloading latest revision for snapshot xxxxx
2019-10-14 14:39:41.568 TRACE SNAPSHOT_LIST_REVISIONS Listing revisions for snapshot xxxxx
2019-10-14 14:39:42.256 WARN DOWNLOAD_CACHE Failed to add the chunk 7527450a037b711c60837b63767a5bd894d57808ca395b92bedb0a78313e2cc4 to the snapshot cache: open /media/NAS/music/.duplicacy/cache/gui7/chunks/75/27450a037b711c60837b63767a5bd894d57808ca395b92bedb0a78313e2cc4.prpinzob.tmp: permission denied
2019-10-14 14:39:42.924 WARN DOWNLOAD_CACHE Failed to add the chunk 47107205cced54712d27ccd97eee58cc7959e5ff55bf30c836db64a90f371d5e to the snapshot cache: open /media/NAS/music/.duplicacy/cache/gui7/chunks/47/107205cced54712d27ccd97eee58cc7959e5ff55bf30c836db64a90f371d5e.pjdliisz.tmp: permission denied
2019-10-14 14:39:43.461 INFO BACKUP_START Last backup at revision 7 found
2019-10-14 14:39:43.462 INFO BACKUP_INDEXING Indexing /media/NAS/music
2019-10-14 14:39:43.462 INFO SNAPSHOT_FILTER Parsing filter file /media/NAS/music/.duplicacy/filters
2019-10-14 14:39:43.463 INFO SNAPSHOT_FILTER Loaded 1 include/exclude pattern(s)
2019-10-14 14:39:43.463 TRACE SNAPSHOT_PATTERN Pattern: -System Volume Information/
2019-10-14 14:39:47.565 TRACE LIST_FILES Listing snapshots/
2019-10-14 14:39:47.566 TRACE LIST_FILES Listing snapshots/xxxxx/
2019-10-14 14:39:47.572 TRACE LIST_FILES Listing chunks/
2019-10-14 14:39:47.574 TRACE LIST_FILES Listing chunks/ea/
2019-10-14 14:39:47.575 TRACE LIST_FILES Listing chunks/cf/
2019-10-14 14:39:47.576 TRACE LIST_FILES Listing chunks/83/
2019-10-14 14:39:47.577 TRACE LIST_FILES Listing chunks/75/
2019-10-14 14:39:47.578 ERROR LIST_FILES Failed to list the directory chunks/75/: lstat /media/NAS/music/.duplicacy/cache/gui7/chunks/75/27450a037b711c60837b63767a5bd894d57808ca395b92bedb0a78313e2cc4: permission denied

Any ideas what would be causing this? The Pi should have full write permissions in the associated folders (and I’m quite sure I didn’t have a problem with it before).

Thanks!

How are you mounting the directories on the pi?

Have you always run Duplicacy as the user that it’s using to run Duplicacy via cron?

If you’ve run it previously using a different user, I wonder if some of the files in the cache are inaccessible to the user running backups from cron.

Thanks for the reply. I’m running both the cron jobs and the console jobs as the default user, so I don’t think that’s the issue. Strangely enough, last night’s overnight cron jobs all executed flawlessly with no warnings or errors, so perhaps it was some temporary glitch with the NAS box… I’d love to know the reason, but at this point I’m not going to worry any more about it until it becomes an issue again…

Thanks again!

1 Like