boredazfcuk / docker-icloudpd

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

These log messages indicate errors that occurred while attempting to log in to iCloud, including an invalid email/password combination, as well as the inability to find the stored password in the system's keychain. The fact is that the password is entirely correct, and the login attempts are being made in China. Despite numerous attempts, the issue remains unresolved. #565

Closed jnxbk closed 1 month ago

jnxbk commented 1 month ago

Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 209, in authenticate req = self.session.post( File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 590, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 100, in request self._raise_error(code, reason) File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 122, in _raise_error raise api_error pyicloud_ipd.exceptions.PyiCloudAPIResponseError: Unknown reason

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/pyicloud_ipd/cmdline.py", line 200, in main api = pyicloud_ipd.PyiCloudService( File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 193, in init self.authenticate() File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 216, in authenticate raise PyiCloudFailedLoginException(msg, error) pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseError('Unknown reason'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/icloud", line 33, in sys.exit(load_entry_point('pyicloud-ipd==0.10.1', 'console_scripts', 'icloud')()) File "/usr/lib/python3.8/site-packages/pyicloud_ipd/cmdline.py", line 249, in main raise RuntimeError(message) RuntimeError: Bad username or password for pdas@qq.com 2024-05-19 22:14:13 INFO Correct owner on config directory, if required 2024-05-19 22:14:13 INFO Correct group on config directory, if required 2024-05-19 22:14:13 INFO Generate 2FA cookie using password stored in keyring file. iCloud Password: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/icloudpd-1.7.2-py3.8.egg/icloudpd/authentication.py", line 29, in authenticate icloud = pyicloud_ipd.PyiCloudService( File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 141, in init password = get_password_from_keyring(apple_id) File "/usr/lib/python3.8/site-packages/pyicloud_ipd/utils.py", line 40, in get_password_from_keyring raise NoStoredPasswordAvailable( pyicloud_ipd.exceptions.NoStoredPasswordAvailable: No pyicloud password for pdas@qq.com could be found in the system keychain. Use the --store-in-keyring command-line option for storing a password for this username.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 209, in authenticate req = self.session.post( File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 590, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 100, in request self._raise_error(code, reason) File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 122, in _raise_error raise api_error pyicloud_ipd.exceptions.PyiCloudAPIResponseError: Unknown reason

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/icloudpd", line 33, in sys.exit(load_entry_point('icloudpd==1.7.2', 'console_scripts', 'icloudpd')()) File "/usr/lib/python3.8/site-packages/click/core.py", line 722, in call return self.main(args, kwargs) File "/usr/lib/python3.8/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3.8/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3.8/site-packages/click/core.py", line 535, in invoke return callback(args, **kwargs) File "/usr/lib/python3.8/site-packages/icloudpd-1.7.2-py3.8.egg/icloudpd/base.py", line 255, in main icloud = authenticate( File "/usr/lib/python3.8/site-packages/icloudpd-1.7.2-py3.8.egg/icloudpd/authentication.py", line 36, in authenticate icloud = pyicloud_ipd.PyiCloudService( File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 193, in init self.authenticate() File "/usr/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 216, in authenticate raise PyiCloudFailedLoginException(msg, error) pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseError('Unknown reason')) 2024-05-19 22:14:21 INFO Two factor authentication cookie generated. Sync should now be successful.

jnxbk commented 1 month ago

Please help me analyze the cause of the issue. Thank you.

jnxbk commented 1 month ago

These log messages indicate errors that occurred while attempting to log in to iCloud, including an invalid email/password combination, as well as the inability to find the stored password in the system's keychain. The fact is that the password is entirely correct, and the login attempts are being made in China. Despite numerous attempts, the issue remains unresolved.

boredazfcuk commented 1 month ago

2024-05-19 22:47:54 INFO /usr/local/bin/sync-icloud.sh date: 2021/12/13_07:53 2024-05-19 22:47:54 INFO /usr/local/bin/sync-icloud.sh hash: 74dfafa177492086fb3c777f518fbb55 2024-05-19 22:47:54 INFO Alpine Linux 3.13.5 2024-05-19 22:47:54 INFO Python version: 3.8.10 2024-05-19 22:47:54 INFO icloudpd version: 1.7.2 2024-05-19 22:47:56 INFO pyicloud-ipd version: 0.10.1

Your version is over 3 years old.

jnxbk commented 1 month ago

2024-05-19 22:47:54 INFO /usr/local/bin/sync-icloud.sh date: 2021/12/13_07:53 2024-05-19 22:47:54 INFO /usr/local/bin/sync-icloud.sh hash: 74dfafa177492086fb3c777f518fbb55 2024-05-19 22:47:54 INFO Alpine Linux 3.13.5 2024-05-19 22:47:54 INFO Python version: 3.8.10 2024-05-19 22:47:54 INFO icloudpd version: 1.7.2 2024-05-19 22:47:56 INFO pyicloud-ipd version: 0.10.1

Your version is over 3 years old.

good Thank you very much