[BUG] Error during 2FA authentification
See original GitHub issueDescribe the bug
After execting the login command given in README.md
docker exec -it icloud /bin/sh -c "icloud --username=xxxx --session-directory=/app/session_data"
The following error shows:
tian@dorm-synology:/volume1/docker/icloud-drive$ sudo docker exec -it icloud /bin/sh -c "icloud --username=testtest@testtest.com --session-directory=/app/session_data"
Enter iCloud password for testest@testtest.com:
Traceback (most recent call last):
File "/app/venv/bin//icloud", line 8, in <module>
sys.exit(main())
File "/app/venv/lib/python3.9/site-packages/icloudpy/cmdline.py", line 207, in main
api = ICloudPyService(
File "/app/venv/lib/python3.9/site-packages/icloudpy/base.py", line 273, in __init__
self.authenticate()
File "/app/venv/lib/python3.9/site-packages/icloudpy/base.py", line 344, in authenticate
self._webservices = self.data["webservices"]
KeyError: 'webservices'
To Reproduce Steps to reproduce the behavior:
- Execute the command above.
- See error
Configuration If applicable, please share the configuration details
docker-compose.yaml:
version: "3.4"
services:
icloud:
image: mandarons/icloud-drive
environment:
- PUID=1026
- GUID=100
env_file:
- /volume1/docker/icloud-drive/.env.icloud
container_name: icloud
restart: unless-stopped
volumes:
- /volume1/docker/icloud-drive/config.yaml:/app/config.yaml
- /volume2/Onedrive/icloud:/app/icloud/drive
- /volume1/docker/icloud-drive/session_data:/app/session_data
config.yaml:
app:
logger:
# level - debug, info (default), warning or error
level: "info"
# log filename icloud.log (default)
filename: "icloud.log"
credentials:
# iCloud drive username
username: "testest@testtest.com"
# Retry login interval - default is 10 minutes
retry_login_interval: 600
# Drive destination
root: "icloud"
smtp:
...
drive:
destination: "drive"
remove_obsolete: false
sync_interval: 300
Issue Analytics
- State:
- Created a year ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Problem Solving Login Issues with Two-Factor Authentication
This error means that when your account was set up, your login credentials were created using a username instead of using a valid...
Read more >Fix 2FA Not Working Error In COD Warzone & MW
Want to fix the COD 2fa not working error in Warzone or Modern Warfare? In this guide we've listed a few steps to...
Read more >My authenticator app 2FA code doesn't work ('Invalid code ...
If you have access to your 2FA codes but are receiving an 'Invalid login' message, please update the time settings on your phone...
Read more >Common problems with two-step verification for a work or ...
If you're using two-step verification with your work or school account, it most likely means that your organization has decided you must use...
Read more >"Incorrect Code" 2FA Troubleshooting - Poloniex Support
The most common cause for "Incorrect Code" errors is that the time on your device is not synced correctly. To make sure that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems to work, but it still needs to be modified in one place, otherwise it will report the same webservices error.
then modify HOME_ENDPOINT (I don’t know why it hasn’t been modified by sed command)
to
It’s work. Photos are also starting to download。
@mandarons Wow, so there’s a new parameter? I didn’t know that at all. But I seem to be logging in too much now and having some weird problems, obviously the password is correct but he says I’m wrong. Copy and paste too. Changed to another account also. Then I go back to the web login and the same password is logged in. It’s so weird. So I created a new container and repeated the previous operation of changing the domain name, same password but it worked.
UPDATE: I changed the sync script here to return the global domain name, and I also have the same problem with the password error.
/app # cat src/sync.py
Then I’m here in the wee hours of the morning, and I have to go to sleep. I’ll come back tomorrow to test, bye.