readthedocs-docker-images icon indicating copy to clipboard operation
readthedocs-docker-images copied to clipboard

Use `retry` command on circleci build tools uploads

Open agjohnson opened this issue 3 years ago • 1 comments

We hit what looks to be an intermittent failure to download a Python tarball:

Downloading python-build...
Cloning into '/home/docs/.asdf/plugins/python/pyenv'...
python-build 3.6.15 /home/docs/.asdf/installs/python/3.6.15
Downloading Python-3.6.15.tar.xz...
-> https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tar.xz
error: failed to download Python-3.6.15.tar.xz

BUILD FAILED (Ubuntu 22.04 using python-build 2.3.1-3-g4456e64c)

Inspect or clean up the working tree at /tmp/python-build.20220531190113.690
Results logged to /tmp/python-build.20220531190113.690.log

Last 10 log lines:
/tmp/python-build.20220531190113.690 ~/.asdf/plugins/python/pyenv
curl: (56) OpenSSL SSL_read: error:0A000119:SSL routines::decryption failed or bad record mac, errno 0

We can maybe protect against this with the retry command:

https://github.com/minfrin/retry

Or even just a basic bash hack of this to retry 3 times.

agjohnson avatar May 31 '22 19:05 agjohnson

I may need to take a look at this since I'm hitting random issues while compiling the build tools today.

humitos avatar Feb 01 '24 16:02 humitos