geerlingguy / ansible-role-rabbitmq

Ansible Role - RabbitMQ
https://galaxy.ansible.com/geerlingguy/rabbitmq/
MIT License
64 stars 56 forks source link

Ubuntu 20.04 (focal) doesn't supported by https://packagecloud.io #9

Closed assapir closed 2 years ago

assapir commented 3 years ago

When trying to run the role on Ubuntu 20.04, there is an error:

FAILED! => {"changed": false, "dest": "/tmp/rabbitmq-server_3.6.11-1_all.deb", "elapsed": 0, "msg": "Request failed", "response": "HTTP Error 404: Not Found", "status_code": 404, "url": "https://packagecloud.io/rabbitmq/rabbitmq-server/packages/ubuntu/focal/rabbitmq-server_3.6.11-1_all.deb/download"}

From looking on https://packagecloud.io it doesn't seem like it support focal

mrpandat commented 3 years ago

Hey, I just had this issue with debian buster. It seems that the rabbitmq 3.6.11 is not host anymore by packagecloud. I manage to fix this by setting the rabbitmq_version at "3.7.18".

ghost commented 3 years ago

Same, tried on Ubuntu 18.04.5 LTS and same on Ubuntu 20.04.2 LTS

TASK [geerlingguy.rabbitmq : Download RabbitMQ package.] ***************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "dest": "/tmp/rabbitmq-server_3.6.11-1_all.deb", "msg": "Request failed", "response": "HTTP Error 404: Not Found", "state": "absent", "status_code": 404, "url": "https://packagecloud.io/rabbitmq/rabbitmq-server/packages/ubuntu/bionic/rabbitmq-server_3.6.11-1_all.deb/download"}

Can't it check for latest version out of the box, I would like to avoid binding specific version in my playbook unless it is specifically needed per requirements.

So yeah, thats what I did (workaround) Checked page for deb package versions here: https://packagecloud.io/rabbitmq/rabbitmq-server

binded version in playbook vars

# cat main.yml
- hosts: all
  vars:
    rabbitmq_version: "3.8.14"
  roles:
    - geerlingguy.rabbitmq

Though it gives an error, it doesn't start the service

cat /var/log/rabbitmq/startup_err
Configuring logger redirection
Error: This RabbitMQ version cannot run on Erlang 22.2.7 (erts 10.6.4): minimum required version is 22.3 (erts 10.7)

Same, tried on Ubuntu 18.04.5 LTS and same on Ubuntu 20.04.2 LTS

TASK [geerlingguy.rabbitmq : Download RabbitMQ package.] ***************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "dest": "/tmp/rabbitmq-server_3.6.11-1_all.deb", "msg": "Request failed", "response": "HTTP Error 404: Not Found", "state": "absent", "status_code": 404, "url": "https://packagecloud.io/rabbitmq/rabbitmq-server/packages/ubuntu/bionic/rabbitmq-server_3.6.11-1_all.deb/download"}

Can't it check for latest version out of the box, I would like to avoid binding specific version in my playbook unless it is specifically needed per requirements.

So yeah,

# cat main.yml
- hosts: all
  vars:
    rabbitmq_version: "3.8.14"
  roles:
    - geerlingguy.rabbitmq
# cat /var/log/rabbitmq/startup_err
Configuring logger redirection
Error: This RabbitMQ version cannot run on Erlang 22.2.7 (erts 10.6.4): minimum required version is 22.3 (erts 10.7)

When apt says out of the box I have the latest version available to me

# apt install erlang
Reading package lists... Done
Building dependency tree
Reading state information... Done
erlang is already the newest version (1:22.2.7+dfsg-1).

Back to drawing board, okay so now I tried looking at packages available for focal ubuntu version https://packagecloud.io/app/rabbitmq/rabbitmq-server/search?q=rabbitmq&filter=all&filter=all&dist=focal

So for now works out of the box with version

rabbitmq_version: "3.8.14"

as v3.8.13 needs newer version or erlang which is not in ubuntu focal yet https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.13 This release requires Erlang 22.3 or

Unless you want to go with latest versions You can do this first

apt update
apt install gpg2 -yq
wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
apt update
apt install erlang -yq

and then proceed with installing rabbitmq

stale[bot] commented 3 years ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

RyanQuey commented 3 years ago

Seems like this pr could help solve this as well: https://github.com/geerlingguy/ansible-role-rabbitmq/pull/12

stale[bot] commented 3 years ago

This issue is no longer marked for closure.

stale[bot] commented 3 years ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] commented 2 years ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.