We have demo environments we build with Terraform and shell scripts. We are using an Oracle Linux 8.9 base image in Azure. Today the scripts started failing due to timeouts connecting to the MySQL Community repositories.
This causes almost any yum/dnf command to fail whether we are using MySQL or not. e.g.
yum list MySQL 8.4 LTS Community Server [ === ] --- B/s | 0 B --:-- ETA
That runs for ~5 minutes then I get this error:
Errors during downloading metadata for repository 'mysql-8.4-lts-community': - Curl error (28): Timeout was reached for http://repo.mysql.com/yum/mysql-8.4-community/el/8/x86_64/repodata/repomd.xml [Operation too slow. Less than 1000 bytes/sec transferred the last 120 seconds] Error: Failed to download metadata for repo 'mysql-8.4-lts-community': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
However I can run 'curl http://repo.mysql.com/yum/mysql-8.4-community/el/8/x86_64/repodata/repomd.xml' and get the results back without issue in a second:
curl http://repo.mysql.com/yum/mysql-8.4-community/el/8/x86_64/repodata/repomd.xml -o outfile % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2626 100 2626 0 0 213k 0 --:--:-- --:--:-- --:--:-- 213k
We don't think a change has been made at our end, but are open to any suggestions at this point. If we remove the MySQL repos and clean the cache, everything works again (obviously except MySQL).
I can get this repo working by manually editing the file and replacing HTTP with HTTPS (not sure why that's not the default anyway), but I'm not clear why it's stopped working in the first case.
Any ideas?
Thanks.
minrate=1
to your "[main]" section of/etc/yum.conf