GithubHelp home page GithubHelp logo

datadog-agent-arm's People

Contributors

adrienkohlbecker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

datadog-agent-arm's Issues

Build fails: Verification for cacerts failed due to a checksum mismatch

I'm sorta just hacking at this point and I'm trying to use this in a way that is different from the instructions :)

I attempted to run the build within a Docker container (arm64v8/ubuntu:16.04). I ran the aforementioned container with interactive shell and then did the following:

apt-get update
apt-get install -y git

cd /root
git clone https://github.com/adrienkohlbecker/datadog-agent-arm.git
cp -R ./datadog-agent-arm/* ./
sudo mv /bin/true /sbin/swapon  # HACK: The script calls swapon but that's not allowed in a Docker container!
bash ./build.sh

It then failed with the following - apparently a checksum has changed somewhere:

Progress: |=====================================================================================================================================================================================================|
    [NetFetcher: cacerts] I | 2019-09-10T23:19:28+00:00 | Verifying checksum
Verification for cacerts failed due to a checksum mismatch:

    expected: c1fd9b235896b1094ee97bfb7e042f93530b5e300781f59b45edf84ee8c75000
    actual:   38b6230aa4bee062cd34ee0ff6da173250899642b1937fc130896290b6bd91e3

This added security check is used to prevent MITM attacks when downloading the
remote file. If you have updated the version or URL for the download, you will
also need to update the checksum value. You can find the checksum value on the
software publisher's website.

So, where's that hash?

root@1b3fba884f46:~# grep -R c1fd9b235896b1094ee97bfb7e042f93530b5e300781f59b45edf84ee8c75000 /var/lib/gems/
/var/lib/gems/2.3.0/bundler/gems/omnibus-software-5d392843015d/config/software/cacerts_py2.rb:       sha256: "c1fd9b235896b1094ee97bfb7e042f93530b5e300781f59b45edf84ee8c75000"
/var/lib/gems/2.3.0/bundler/gems/omnibus-software-5d392843015d/config/software/cacerts.rb:       sha256: "c1fd9b235896b1094ee97bfb7e042f93530b5e300781f59b45edf84ee8c75000"
/var/lib/gems/2.3.0/bundler/gems/omnibus-software-5d392843015d/config/software/cacerts_py3.rb:       sha256: "c1fd9b235896b1094ee97bfb7e042f93530b5e300781f59b45edf84ee8c75000"

Ah, here at least (var/lib/gems/2.3.0/bundler/gems/omnibus-software-5d392843015d/config/software/cacerts.rb):

# We always pull the latest version,
# so the hashsum check will break every time the file is updated on the remote
default_version "latest"

source url: "https://curl.haxx.se/ca/cacert.pem",
       sha256: "c1fd9b235896b1094ee97bfb7e042f93530b5e300781f59b45edf84ee8c75000"

That sounds like a hash mismatch is expeted! I'll bet it's a simple fix, I'm just not yet sure how since I'm not familiar with Omnibus, etc. I'll keep poking around, but thought I'd log this issue in case someone else is interested to fix it and knows what to do!

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.