boredazfcuk / docker-icloudpd

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

Container Not Downloading (No Errors) #559

Closed firoze closed 3 weeks ago

firoze commented 1 month ago

I had noticed for a few days that the container was not downloading anything since the beginning of the month, but hadn't had time to look into it until today. I started by recreating the container using the latest image (it was behind by a few months IIRC). At first I thought I needed to re-authenticate, so I did that (including --init after --Remove-Keyring). However, it appears to not be downloading anything. It was complaining about a missing icloudpd.conf file, so I created it by moving all environment variables into it.

apple_id="<apple-id>"
user="<user>"
user_id="<user-id>"
group="users"
group_id="100"
TZ="America/Los_Angeles"
download_path="/icloudpd_photos"
folder_structure="{:%Y/%m/%d}"
synchronisation_interval="86400"
auto_delete=true
skip_check=true
delete_empty_directories=true
notification_type="Telegram"
telegram_token="<token>"
telegram_chat_id="<chat-id>"
telegram_polling=true

At first glance, photo_album and photo_library are not set. They were not set previously either, and the downloads ran fine. However, setting them to "all albums" or "all libraries" respectively does indeed begin downloading. But then it does not respect folder_structure and just begins dumping everything under a folder named All Photos. Here in the logs, you can see that the synchronisation starts and completes in a second. There are definitely new images that are in iCloud that need to be downloaded.

2024-05-09 06:32:02 INFO     Sending Telegram remotesync notification            
2024-05-09 06:32:02 INFO     Synchronisation starting at 06:32:02                
2024-05-09 06:32:02 INFO     Keyring file exists, continuing                     
2024-05-09 06:32:02 INFO     Check download directory mounted correctly...       
2024-05-09 06:32:02 INFO     Failsafe file /icloudpd_photos/.mounted exists, continuing                                                                           
2024-05-09 06:32:02 INFO     Deleting empty directories from /icloudpd_photos... 
2024-05-09 06:32:02 INFO     Deleting empty directories complete                 
2024-05-09 06:32:03 INFO     Synchronisation complete for <user>           
2024-05-09 06:32:03 INFO     Sending Telegram remotesync notification            
2024-05-09 06:32:03 INFO     Web cookie expires: 2024-07-08 @ 02:50:47           
2024-05-09 06:32:03 INFO     Multifactor authentication cookie expires: 2024-06-08 @ 06:03:42                                                                     
2024-05-09 06:32:03 INFO     Days remaining until expiration: 29                 
2024-05-09 06:32:03 INFO     Synchronisation ended at 06:32:03                   
2024-05-09 06:32:03 INFO     Total time taken: 00:00:01                          
2024-05-09 06:32:03 INFO     Next synchronisation at 06:32:02                    
2024-05-09 06:32:03 INFO     Monitoring Telegram for remote commands prefix: firoze-admin   

I'm not sure if I need to order the variables in the file a certain way, or if I have missed a step somewhere.

boredazfcuk commented 1 month ago

Hi,

The script will automatically create the icloudpd.conf file if it doesn't exist. It will also populate the file with any missing configuration options, as well as sort it into alphabetical order.

If it can't find it, it suggests it can't create it, or write to it, so I'd check the permissions on the /config volume.

Also, don't use any " characters in the file... except for the variables involving album/library names.

boredazfcuk commented 3 weeks ago

Closing as no response