Overview
Docker builds can fail with the following error message when downloading assets:
curl: (56) OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104 The command '/bin/sh -c curl -v -o /downloads/out.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip' returned a non-zero code: 56 Exited with code exit status 56 CircleCI received exit code 56
This can occur on Remote Docker (setup_remote_docker) and Linux Machine Executors.
Solution
To resolve this issue on Remote Docker, add the following run step after setup_remote_docker
but before docker build
or other Docker commands:
- run: ssh remote-docker 'sudo iptables -I INPUT -m conntrack --ctstate INVALID -j DROP'
Remote Docker users can also simply upgrade to 19.03.13
- setup_remote_docker: version: 19.03.13
To resolve this issue on Linux Machine Executors, add the following run step before docker build
or other Docker commands:
- run: sudo iptables -I INPUT -m conntrack --ctstate INVALID -j DROP
Comments
Article is closed for comments.