Giter Club home page Giter Club logo

Comments (3)

bvirlet avatar bvirlet commented on September 28, 2024 1

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.

gmemstr avatar gmemstr commented on September 28, 2024 1

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.

bvirlet avatar bvirlet commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.