Comments (7)
When the container launches, it should display the cookie path in the log e.g:
2020-12-14 18:51:18 INFO Apple ID password: usekeyring
2020-12-14 18:51:18 INFO Authentication Type: 2FA
2020-12-14 18:51:18 INFO Cookie path: /config/notmyemailaddresscom
2020-12-14 18:51:18 INFO Cookie expiry notification period: 7
Does your path Cookie path: /config/notmyemailaddresscom
file location exactly match the path of the cookie inside the container?
There has been issues with underscores and other special characters in e-mail addresses not being handled correctly. It may be a special character in your e-mail address that hasn't been accounted for.
from docker-icloudpd.
Is the cookie showing in your /config
directory? It should be your e-mail address, but with special characters removed.
When you add your account to the keyring, it should prompt you to confirm via SMS. It will then generate a 2FA cookie and you'll be prompted again, the second time will give you an option of SMS, or the 2FA feature on your iPhone/iPad.
Are you sure you have 2FA enabled on your account? Do you get prompted to confirm 2FA when logging in to iCloud.com?
from docker-icloudpd.
Is the cookie showing in your
/config
directory? It should be your e-mail address, but with special characters removed.
Yes, it's in there.
When you add your account to the keyring, it should prompt you to confirm via SMS. It will then generate a 2FA cookie and you'll be prompted again, the second time will give you an option of SMS, or the 2FA feature on your iPhone/iPad.
Yep, I get the first and second prompt (SMS and then 2FA code on my Mac)
Are you sure you have 2FA enabled on your account? Do you get prompted to confirm 2FA when logging in to iCloud.com?
Yes it does.
from docker-icloudpd.
I believe that was the issue. I re-entered my email in the Docker config without any capitalization and it's working. I believe because I was using a capital letter in my email it was using that for the Cookie path name and not looking for that exact match when restarting the docker container.
Not sure if this is something you want to change or add a note about.
from docker-icloudpd.
It should already handle uppercase characters. It calculates the cookie name like this:
cookie="$(echo -n "${apple_id//[^a-zA-Z0-9_]/}" | tr '[:upper:]' '[:lower:]')"
Basically it takes the Apple ID, filters out anything that isn't a-z, A-Z, 0-9 or an underscore and hands to over to the tr
command. tr
then changes all uppercase letters to lowercase.
Was the cookie file created with the capital letter then?
from docker-icloudpd.
Yes, the cookie file had the capital letter in it.
I was creating the docker and using my email address to set up. This is when I typed in my email with capital letters.
from docker-icloudpd.
Ahh yeah, I see what's happening. I sanitise the name of the cookie file, so that I know the filename when I check it's existence, it's validity period and such.
When I run the Python script to create the cookie, I pass the apple_id as it is specified in the variables file. The download script, then creates the cookie file respecting any capitalisations.
I've changed the sanitisation rule to two rules now:
apple_id="$(echo -n "${apple_id}" | tr '[:upper:]' '[:lower:]')"
cookie_file="$(echo -n "${apple_id//[^a-z0-9_]/}")"
The first rule changes the apple_id variable used throughout the script, to lower case.
The second takes the already lower case apple_id and removes anything that isn't a lower case letter, number or underscore.
Just building a new image on my machines at home and will probably upload the new version to Dockerhub in the morning as it's past midnight here. My automated builds script takes a couple of hours to run and I'm not sitting up waiting for it lol
Thanks for reporting the issue.
from docker-icloudpd.
Related Issues (20)
- Permission Denied HOT 2
- Failed check for new files files Failed to execute script 'icloudpd' due to unhandled exception! HOT 3
- Error: Invalid value for '-d' / '--directory': Path '/home/apps/iCloud' is not readable HOT 3
- Docker compose setup
- Telegram Bot has not been initialised or needs reinitialising HOT 2
- auto_delete not deleting photos HOT 4
- icloud.com.cn : Failed to download new files HOT 13
- Error debug - traceroute: bad address 'icloud.com.cn' HOT 1
- Remote Re-authentication error HOT 8
- Connection error in the log HOT 2
- Telegram support for multiple docker containers HOT 1
- Container Not Downloading (No Errors) HOT 1
- error HOT 2
- Error: Invalid value for '-d' / '--directory': Path is not readable HOT 2
- Failed to execute script 'icloud' due to unhandled exception! HOT 5
- Update broke .mounted file HOT 1
- 'tzlocal() does not support non-zoneinfo timezones
- 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. HOT 4
- how to use reauth.sh now HOT 1
- using folder in icloud HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-icloudpd.