boredazfcuk / docker-icloudpd

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

failed to check for new files #503

Closed Boerni-tech closed 4 months ago

Boerni-tech commented 5 months ago

Hi, I'm getting this error, permanently. I already did re-setup the whole environment, without any noticable improvement. I'm running icloudpd on unraid, twice. One instance for myself, one for my wife - her instace shows the same error. Any ideas?

2024-02-01 06:48:51 INFO Synchronisation starting at 06:48:51 2024-02-01 06:48:51 INFO Keyring file exists, continuing 2024-02-01 06:48:51 INFO Check download directory mounted correctly... 2024-02-01 06:48:51 INFO Failsafe file /home/user/iCloud/.mounted exists, continuing 2024-02-01 06:48:51 INFO Check for new files using password stored in keyring file 2024-02-01 06:48:51 INFO Generating list of files in iCloud. This may take a long time if you have a large photo collection. Please be patient. Nothing is being downloaded at this time 2024-02-01 06:49:05 ERROR Failed check for new files files 2024-02-01 06:49:05 ERROR - Can you log into icloud.com without receiving pop-up notifications? 2024-02-01 06:49:05 ERROR Error debugging info: 2024-02-01 06:49:05 ERROR Traceback (most recent call last): File "starters/icloudpd.py", line 6, in File "click/core.py", line 1157, in call File "click/core.py", line 1078, in main File "click/core.py", line 1434, in invoke File "click/core.py", line 783, in invoke File "icloudpd/base.py", line 328, in main File "icloudpd/base.py", line 908, in core File "pyicloud_ipd/services/photos.py", line 357, in photos File "pyicloud_ipd/services/photos.py", line 337, in photos_request File "requests/sessions.py", line 637, in post File "pyicloud_ipd/base.py", line 92, in request PermissionError: [Errno 13] Permission denied: '/config/PERSONALEMAILADRESS.session' [9112] Failed to execute script 'icloudpd' due to unhandled exception! 2024-02-01 06:49:05 ERROR Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues 2024-02-01 06:49:05 INFO Web cookie expires: 2024-03-31 @ 11:49:01 2024-02-01 06:49:05 INFO Multifactor authentication cookie expires: 2024-04-30 @ 11:49:13 2024-02-01 06:49:05 INFO Days remaining until expiration: 89 2024-02-01 06:49:05 INFO Synchronisation ended at 06:49:05 2024-02-01 06:49:05 INFO Total time taken: 00:00:14 2024-02-01 06:49:05 INFO Next synchronisation at 06:48:51

mrblack7 commented 4 months ago

I've got the same issue on a new setup on a Synology NAS conainer

2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 INFO     Web cookie expires: 2024-04-13 @ 01:58:48
-- | -- | --
2024/02/12 18:15:47 | stdout | ash: out of range
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR    ***** Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues *****
2024/02/12 18:15:47 | stdout | Error: Invalid value for '-d' / '--directory': Path '/xxxxxxx' is not readable.
2024/02/12 18:15:47 | stdout |  
2024/02/12 18:15:47 | stdout | Try 'icloudpd-1.17.3-linux-arm64.dynamic -h' for help.
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR    Usage: icloudpd-1.17.3-linux-arm64.dynamic <options>
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR    Error debugging info:
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR     - Can you log into icloud.com without receiving pop-up notifications?
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR    Failed check for new files files
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Generating list of files in iCloud. This may take a long time if you have a large photo collection. Please be patient. Nothing is being downloaded at this time
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Check for new files using password stored in keyring file
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Failsafe file /xxxxxxx/.mounted exists, continuing
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Check download directory mounted correctly...
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Keyring file exists, continuing
sergiomguedes commented 4 months ago

new setup on a Synology

I have the same problem! Any solution ?

sergiomguedes commented 4 months ago

I've got the same issue on a new setup on a Synology NAS conainer

2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 INFO     Web cookie expires: 2024-04-13 @ 01:58:48
-- | -- | --
2024/02/12 18:15:47 | stdout | ash: out of range
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR    ***** Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues *****
2024/02/12 18:15:47 | stdout | Error: Invalid value for '-d' / '--directory': Path '/xxxxxxx' is not readable.
2024/02/12 18:15:47 | stdout |  
2024/02/12 18:15:47 | stdout | Try 'icloudpd-1.17.3-linux-arm64.dynamic -h' for help.
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR    Usage: icloudpd-1.17.3-linux-arm64.dynamic <options>
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR    Error debugging info:
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR     - Can you log into icloud.com without receiving pop-up notifications?
2024/02/12 18:15:47 | stdout | 2024-02-13 02:15:47 ERROR    Failed check for new files files
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Generating list of files in iCloud. This may take a long time if you have a large photo collection. Please be patient. Nothing is being downloaded at this time
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Check for new files using password stored in keyring file
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Failsafe file /xxxxxxx/.mounted exists, continuing
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Check download directory mounted correctly...
2024/02/12 18:15:42 | stdout | 2024-02-13 02:15:42 INFO     Keyring file exists, continuing

@mrblak7 do you resolve the problem?

mrblack7 commented 4 months ago

Not resolved yet.

If I run the standard icloudpd without docker, it works and downloads files no problem

mrblack7 commented 4 months ago

Ok, so I got this working on my Synology NAS finally!

I had to use the following settings to set up the user and group permissions. The standard User group didn't have permissions to write to the shared folder, so I set it to use the administrator group and it works.

Hope this helps!

Screenshot 2024-02-24 at 6 19 03 am
boredazfcuk commented 4 months ago

Thanks for posting the solution.

Boerni-tech commented 4 months ago

Unfortunately, it is not solved on my side. I'm running it on unraid. I had to tune the group and group ID as well. It ran several times in the beginning and downloaded pictures, but now it stopped. So this is clearly no issue of the container or the unraid system. I'm raising another issue as it seems to have changed with the latest update, as well.

boredazfcuk commented 4 months ago

PermissionError: [Errno 13] Permission denied: '/config/PERSONALEMAILADRESS.session'

You have a permission issue. You need the check the account you're using inside your container has access to the destination and that the container is running privileged.

sergioguedes commented 4 months ago

Ok, so I got this working on my Synology NAS finally!

I had to use the following settings to set up the user and group permissions. The standard User group didn't have permissions to write to the shared folder, so I set it to use the administrator group and it works.

Hope this helps!

Screenshot 2024-02-24 at 6 19 03 am

Thank you very much, it solved my problem!