New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://wordpress.org/latest.tar.gz fails in England, Scotland (and elsewhere?) when trying to install WordPress using Ansible's get_url ["HTTP Error 429: Too Many Requests"] — so let's try wget as an interim workaround #3210
Conversation
This PR works. It's unfortunate that wget isn't very savvy or flexible in the way it saves files, but good enough! e.g. wget doesn't blast away any existing symlink /opt/iiab/downloads/wordpress.tar.gz (rather it overwrites the other end of the symlink, which might have a filename with an outdated WordPress version number if someone was really upgrading from an older version of IIAB). Not a big deal (curl is generally more sophisticated than wget, though (Given that https://wordpress.org/support/article/how-to-install-wordpress/#step-1-download-and-extract |
Better now! @shanti-bhardwa this is now being merged, please try it and let us know!
|
And if @shanti-bhardwa and his friends in Scotland confirm this is working well for them in coming days — these 2 files should probably be linted/clarified/simplified going forward: |
Instead of the blind deleting of wordpress.tar.gz why not use the 'wp_tar_gz' test to decide if wget is to be used? That would allow downloading to /opt/iiab/downloads in advance should there be some other issue downloading the file that might crop up in the future. |
Something like (But a different filename within /tmp might make more sense.) |
The larger point is that IIAB currently keeps too many theoretically well-intended files kicking around — that are counter-productive as they create useless complexity. |
The resulting wordpress.tar.gz file has always hung around afterwards in downloads so there is no real change there, have a look at:
But might suffer the same issues as get_url does. |
I see this treats Which raises 2 questions:
|
Indeed, Ansible's unarchive command is usually the best choice, to avoid all intermediary bureaucracy,
If only there was a way to notify WordPress.org that they are accidentally blocking people from installing their own product. (Not just people in the UK using Ansible to try to install WordPress, but very likely others too.) |
WordPress 6.0 is releasing on May 24, 2022 — pre-release reviews are very pretty positive: "WordPress 6.0 Field Guide" |
Thanks @shanti-bhardwa, @jvonau and @tim-moody for helping to diagnose this overnight.
WordPress might or might not ever fix downloads of their own product (so that people can download WordPress using Ansible's get_url) but in the meantime we need to act, for implementers who are currently being completely blockaded.
Prior work: