Closed cream68 closed 3 weeks ago
Yeah, upstream changes which re-introduced the capability to re-authenticate MFA using SMS altered the output of the script and broke the re-authentication script. I got about 3/4 of the way through debugging it, but then Apple blocked MFA from my account saying I'd made too many requests in a short period of time. I'm on cool-down at the moment and will pick up testing when my account resets.
I've just tested it on my personal account and it's still working OK. There's just a lot of logging going off as I've accidentally left on verbose debugging.
It will likely fail if the account has a trusted recovery number attached to the account, as that will allow MFA reauthentication via SMS and that's the bit I was testing when I got blocked by Apple. I believe I had actually got it working though, just never got to test if for confirmation.
Actually i think this is a bug. I'd not accounted for the possibility that the user
variable had not been set in the icloudpd.conf file. I've changed it so that it uses the same default as the main script if the variable is not configured in the configuration file.
Update to the latest version and give it another go.
I updated the docker, the problem still remains. The error log is the same as in the beginning, despite the line
su: unknown user
changed to
su: unknown user user
What is the "user" variable in /config/icloudpd.conf set to?
there is no "user" variable saved, but in the logs it says: Sync user:
Odd. If a container environment variable is set, it should write that to the icloudpd.conf and then use that file to load the variables.
I'll have to double check the logic for this.
Can we mark the topic as open?
Want to add I'm experiencing the same su: unknown user user
There is no user set in icloudpd.conf but I do have user set in the container variables.
EDIT I did just manually add the user
variable to icloudpd.conf and the remote re-auth worked perfectly.
reads:
if [ "$(grep -c "user=" "${config_file}")" -eq 0 ]; then echo user="${user:=user}"; fi
should read:
if [ "$(grep -c "^user=" "${config_file}")" -eq 0 ]; then echo user="${user:=user}"; fi
Otherwise it will match lines like:
msmtp_user=
pushover_user=
touser=
this line:
reads:
if [ "$(grep -c "user=" "${config_file}")" -eq 0 ]; then echo user="${user:=user}"; fi
should read:
if [ "$(grep -c "^user=" "${config_file}")" -eq 0 ]; then echo user="${user:=user}"; fi
Otherwise it will match lines like:
msmtp_user= pushover_user= touser=
Yeah I spotted that and fixed it maybe a month, or longer, ago.
Although,I also messed up quite a bit of code with a dodgy find/replace for all files, across all my repos. Maybe the backup I restored from didn't include that change. Hmmmmm. I'll have to check.
I checked and it was fixed in the reauth.sh script, but not the init_config.sh launch script. Fixed and pushed to Dockerhub
Problem: I attempted to utilize the Telegram send features, specifically the "Remote Re-authentication" feature. However, I encountered an error consistently during this process.
The error seems to occur while attempting remote re-authentication via Telegram. Any ideas how to fix this?