Comments (3)
Hello,
We are experiencing this problem as well, exactly the same symptoms.
Since about 24 hours, we started seeing failures in our builds with the following error:
curl: (16) Error in the HTTP2 framing layer
Restarting the builds several times sometimes ended up in success => the issue seems to be sporadic.
The build script responsible for this problem is as follow:
#!/bin/bash -eo pipefail
[ -w /usr/local/bin ] && SUDO="" || SUDO=sudo
$SUDO curl --silent --show-error --location --fail --retry 3 \
--output /tmp/android-ndk-r21c.zip \
https://dl.google.com/android/repository/android-ndk-r21c-linux-x86_64.zip
$SUDO echo "c81a5bcb4672a18d3647bf6898cd4dbcb978d0e8 /tmp/android-ndk-r21c.zip" > /tmp/android-ndk-r21c.zip.sha1
sha1sum -c /tmp/android-ndk-r21c.zip.sha1
$SUDO unzip -q /tmp/android-ndk-r21c.zip -d /opt/android
$SUDO rm -f /tmp/android-ndk-r21c*
$SUDO chown -R circleci:circleci /opt/android/android-ndk-r21c
echo "export ANDROID_NDK_HOME=/opt/android/android-ndk-r21c" >> $BASH_ENV
if [[ -d /opt/android/android-ndk-r21c && \
-n "$(ls -A /opt/android/android-ndk-r21c)" ]]; then
echo "Android NDK installed"
else
echo "Android NDK did not install successfully"
exit 1
fi
I restarted the build with SSH, went and ran the curl command manually:
circleci@83ad7856c4d9:~$ sudo curl --show-error --location --fail --retry 3 --output /tmp/android-ndk-r21c.zip https://dl.google.com/android/repository/android-ndk-r21c-linux-x86_64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
76 1108M 76 849M 0 0 298M 0 0:00:03 0:00:02 0:00:01 298M
curl: (16) Error in the HTTP2 framing layer
This resulted in the same problem.
I tried wget, and it succeeded.
circleci@83ad7856c4d9:~$ wget https://dl.google.com/android/repository/android-ndk-r21c-linux-x86_64.zip
--2020-10-23 07:36:56-- https://dl.google.com/android/repository/android-ndk-r21c-linux-x86_64.zip
Resolving dl.google.com (dl.google.com)... 142.250.73.238, 2607:f8b0:4004:82a::200e
Connecting to dl.google.com (dl.google.com)|142.250.73.238|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1162375023 (1.1G) [application/zip]
Saving to: ‘android-ndk-r21c-linux-x86_64.zip.1’
I tried to update curl to the latest version, but it already seems to be up-to-date.
Retrying a couple times eventually succeeds.
Your help is appreciated!
from android-orb.
Discussed this a little bit internally, and the closest issue I can find with curl is this: curl/curl#3750. My thinking is that the curl version is indeed out of date in these images and needs to be updated, although it doesn't quite explain why it's happening now, which leads me to believe it's actually something on Google's end. Digging into this a little more and hope to have more to share soon.
from android-orb.
Thanks @gmemstr. It's indeed possible that a change in the Google download server configuration triggered a specific bug in curl.
from android-orb.
Related Issues (20)
- ANDROID_NDK_HOME not correct
- Save-grade-cache command fails when /tmp/gradle_cache_seed file does not exists. HOT 4
- `find` Error when using restore-gradle-cache command from v2.1.1
- Restore Gradle Cache Test HOT 6
- `wait-for-emulator` hangs on Android API Level 31 HOT 4
- How can attach screenshots of ui test executions with android/start-emulator-and-run-tests command? HOT 8
- Add adb pull destination folder HOT 1
- Passing environment variables to `start-emulator-and-run-tests` arguments causes job to fail as of 2.1.1 HOT 5
- How to run "adb shell settings put secure long_press_timeout 2000" before execution of test HOT 3
- fastlane-deploy command does not exist HOT 4
- Trying to create AVD in the background results in failure HOT 2
- Options "no-output-timeout" not being used by run-tests command HOT 1
- android/create-google-play-key does not print contents of the environment variable to JSON file HOT 1
- Java 17 is not being set to the environment HOT 3
- pre-test-command gets error `environment: line 8: mvn: command not found` HOT 5
- Using newer version of Android SDK causes emulator booting for too long HOT 6
- Android Gradle plugin requires Java 17 to run. You are currently using Java 11. HOT 2
- cgroup changed for latest orb version? HOT 3
- Latest Orb Does Not Work HOT 1
- Job rejected because resource class doesn't exist for android-machine with latest orb version HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-orb.