boredazfcuk / docker-icloudpd

An Alpine Linux container for the iCloud Photos Downloader command line utility
1.58k stars 149 forks source link

Fails to create temporary directory #526

Closed DatBoiRo closed 2 months ago

DatBoiRo commented 3 months ago

Greetings all, I'm having an issue getting the initialise script to complete. As you can see below, I'm getting a "icloud: Failed to create temporary directory in /tmp: Permission denied". I'm installing on a QNAP NAS via container station (Docker). I'm able to locate the .sh and .conf files, just unsure of how to solve the permissions error. I've applied the permissions on directories (and their subfolders) on the NAS itself and I'm ssh'd in as an Administrator, I've also created a .mounted file and placed it where I'd like my photos to download to. Any help would be greatly appreciated.

[UserAdmin@NAS ~]$ docker exec -it iCloudPD sync-icloud.sh --Initialise

2024-03-19 16:54:23 INFO boredazfcuk/icloudpd container for icloud_photo_downloader v1.0.718 started 2024-03-19 16:54:23 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2024-03-19 16:54:23 INFO Alpine Linux 3.19.0 2024-03-19 16:54:23 INFO Python version: 3.11.6 2024-03-19 16:54:23 INFO Loading configuration from: /config/icloudpd.conf 2024-03-19 16:54:23 INFO Apple ID: my@appleid.com 2024-03-19 16:54:23 INFO Authentication Type: MFA 2024-03-19 16:54:23 INFO Cookie path: /config/my@email.com 2024-03-19 16:54:23 INFO Cookie expiry notification period: 7 2024-03-19 16:54:23 INFO Download destination directory: /User/iCloudPD 2024-03-19 16:54:23 INFO Folder structure: {:%Y/%m/%d} 2024-03-19 16:54:23 INFO Synchronisation interval: 86400 2024-03-19 16:54:23 INFO Synchronisation delay (minutes): 0 2024-03-19 16:54:23 INFO Set EXIF date/time: false 2024-03-19 16:54:23 INFO Auto delete: false 2024-03-19 16:54:23 INFO Delete after download: false 2024-03-19 16:54:23 INFO Photo size: original 2024-03-19 16:54:23 INFO Single pass mode: false 2024-03-19 16:54:23 INFO Skip download check: false 2024-03-19 16:54:23 INFO Skip live photos: false 2024-03-19 16:54:23 INFO Number of most recently added photos to download: Download All Photos 2024-03-19 16:54:23 INFO Downloading photos from: Download All Photos 2024-03-19 16:54:23 INFO Stop downloading when prexisiting files count is: Download All Photos 2024-03-19 16:54:23 INFO Live photo size: original 2024-03-19 16:54:23 INFO Skip videos: false 2024-03-19 16:54:23 INFO Convert HEIC to JPEG: false 2024-03-19 16:54:23 INFO Downloading from: icloud.com 2024-03-19 16:54:23 INFO Authentication domain: com 2024-03-19 16:54:23 INFO Ignore Synology extended attribute directories: Disabled 2024-03-19 16:54:24 INFO Script launch parameters: --Initialise icloud: Failed to create temporary directory in /tmp: Permission denied 2024-03-19 16:54:24 ERROR Keyring file does not exist. Please try again. [UserAdmin@NAS ~]$

boredazfcuk commented 3 months ago

I think I've seen this issue on some notification that popped up... I think it's some sort of security "feature" of the container platform which prevents the containers writing to the /tmp directory. You'll need to switch that off.

It might just be as simple as making sure the container is running privileged, but I'm not familiar with the QNAP container platform so can't point you in the direction of that option... if it even exists.