Mac LIST_FAILURE from sandboxing

Using OS X 10.14.6 and Duplicacy Web installed via Homebrew.

I’m seeing these failure messages when starting a backup job. Judging by the directories involved, it seems that the OS X sandboxing might be preventing it from accessing protected directories like contacts, mail and photos.

Is that the cause, and how can I solve this?

2020-04-28 10:18:53.012 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Application Support/AddressBook: operation not permitted
2020-04-28 10:18:53.447 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Application Support/CallHistoryDB: operation not permitted
2020-04-28 10:18:53.449 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Application Support/CallHistoryTransactions: operation not permitted
2020-04-28 10:18:58.332 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Application Support/MobileSync: operation not permitted
2020-04-28 10:18:59.625 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Application Support/com.apple.TCC: operation not permitted
2020-04-28 10:19:00.043 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Calendars: operation not permitted
2020-04-28 10:19:00.514 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Containers/com.apple.Home: operation not permitted
2020-04-28 10:19:00.790 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Containers/com.apple.Safari: operation not permitted
2020-04-28 10:19:00.874 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Containers/com.apple.VoiceMemos: operation not permitted
2020-04-28 10:19:03.662 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Containers/com.apple.iChat: operation not permitted
2020-04-28 10:19:03.772 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Containers/com.apple.mail: operation not permitted
2020-04-28 10:19:03.837 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Containers/com.apple.news: operation not permitted
2020-04-28 10:19:04.130 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Containers/com.apple.stocks: operation not permitted
2020-04-28 10:19:05.760 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Cookies: operation not permitted
2020-04-28 10:19:05.952 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/HomeKit: operation not permitted
2020-04-28 10:19:05.952 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/IdentityServices: operation not permitted
2020-04-28 10:19:06.072 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Mail: operation not permitted
2020-04-28 10:19:06.073 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Messages: operation not permitted
2020-04-28 10:19:06.074 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Metadata/CoreSpotlight: operation not permitted
2020-04-28 10:19:06.074 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Metadata/com.apple.IntelligentSuggestions: operation not permitted
2020-04-28 10:19:06.217 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/PersonalizationPortrait: operation not permitted
2020-04-28 10:19:06.421 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Safari: operation not permitted
2020-04-28 10:19:06.486 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Library/Suggestions: operation not permitted
2020-04-28 10:19:08.912 WARN LIST_FAILURE Failed to list subdirectory: open /Users/Me/Pictures/Photos Library.photoslibrary: operation not permitted

Can you try running the web GUI with sudo?

Try giving Duplicacy full disk access permission from security settings in macOS system preferences

Full disk access seems to have resolved that issue. Is that part of the install missing from the installer or just via Homebrew?

I don’t think applications are allowed to add themselves there. Only users can do that. Otherwise that would defeat the purpose. But I agree, the duplicacy could gently prompt the user to do so based on some heuristics – such as if sensitive protected folders are included in the backup. Which would be the case close to always – people usually want to backup important data and that important data is usually sensitive.

Some macOS apps already do that – good example is Daisy Disk. Once you try to scan entire drive it asks you to add itself to that list to gain access to full disk.

1 Like

I just had this same problem:
Library.photoslibrary: operation not permitted
And it was also solved by giving Duplicacy full disk access.

I should note, I am updating to the Web GUI from the old style gui app… and I had not noticed any errors for the old app without this permission. (edit: I could be wrong about this bit)

At any rate, prompting the user during the install about this would be a good idea.

With duplciacy lauchled by web gui or with a console app?

launched with web gui

Oh, my bad. I misread it as the issue wasn’t solved by full disk access entitlement.

It’s expected and it’s the same issue and I agree Duplicacy shall prompt the user to grant access during install or first launch or whenever this type of access error occurs.

Recent discussion: