Closed dwarburt closed 4 years ago
Hello,
what version of RMQ and Erlang are you using?
This is the rabbitmq image on docker hub, version 3.7.17 with Erlang/OTP 22. details here: https://hub.docker.com/_/rabbitmq
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
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.
I'm encountering an error while installing. We're running rabbitmq from docker so I updated our Dockerfile to pull down this plugin and install it, but it fails with
{invalid_ez,einval}
.Using this dockerfile:
the final command gives this error message: