Giter Site home page Giter Site logo

Comments (4)

Spoonbender avatar Spoonbender commented on July 18, 2024 6

Had a similar issue.
What I was trying to do is download a plugin as part of my Dockerfile, using curl.
The issue was that the URL in the GitHub Releases page does not lead directly to the plugin - it returns an HTTP Redirect (302) which then leads to the actual plugin.
The solution was either use wget or tell curl to follow the redirect.

from rabbitmq-cloudwatch-exporter.

noxdafox avatar noxdafox commented on July 18, 2024 1

I tried your command and it does not download the proper release files as the SHA1 checksums differ. You are using curl incorrectly.

$ export DLS="$(curl $CWPLUGIN | jq -r '.assets[].browser_download_url')" && (for u in $DLS; do curl -O $u; done;) 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 25968  100 25968    0     0  52566      0 --:--:-- --:--:-- --:--:-- 52566
...

$ sha1sum rabbitmq_cloudwatch_exporter-0.2.1.ez 
a4ce25f573ec162619b8acf13185f7c67b5b6403  rabbitmq_cloudwatch_exporter-0.2.1.ez

$ sha1sum ~/downloads/rabbitmq_cloudwatch_exporter-0.2.1.ez 
b21fefe4849b01505f4eb7a19369db3a8661c3c7  ~/downloads/rabbitmq_cloudwatch_exporter-0.2.1.ez

The latter is the correct one as downloaded from GitHub.

Using wget fixes the issue.

$ export DLS="$(curl $CWPLUGIN | jq -r '.assets[].browser_download_url')" && (for u in $DLS; do wget $u; done;) 
...

$ sha1sum rabbitmq_cloudwatch_exporter-0.2.1.ez 
b21fefe4849b01505f4eb7a19369db3a8661c3c7  rabbitmq_cloudwatch_exporter-0.2.1.ez

$ sha1sum ~/downloads/rabbitmq_cloudwatch_exporter-0.2.1.ez 
b21fefe4849b01505f4eb7a19369db3a8661c3c7  ~/downloads/rabbitmq_cloudwatch_exporter-0.2.1.ez

from rabbitmq-cloudwatch-exporter.

noxdafox avatar noxdafox commented on July 18, 2024

Hello,

what version of RMQ and Erlang are you using?

from rabbitmq-cloudwatch-exporter.

dwarburt avatar dwarburt commented on July 18, 2024

This is the rabbitmq image on docker hub, version 3.7.17 with Erlang/OTP 22. details here: https://hub.docker.com/_/rabbitmq

from rabbitmq-cloudwatch-exporter.

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.