rabbitmq / rabbitmq-website

RabbitMQ website
https://www.rabbitmq.com
Apache License 2.0
819 stars 723 forks source link

Can't follow "Site -> Installation Guide" #527

Closed KoteKotlyarov closed 6 years ago

KoteKotlyarov commented 6 years ago

Guys, about https://www.rabbitmq.com/install-rpm.html

In brief: guide is not working...

It never worked for me. This is more like poem, not step by step guide to reproduce issue. I faced similar issues with several instances. Looks like some simple step is missed from your guide and I have not enough experience to understand what's going on... Sorry for such style...

I'm trying to install RabbitMQ (3.x.x) with Erlang (20.x.x) on my CentOS 7 machine... I wrote this text after about 7 or so tries to install Rabbit with you guide with different methods... And on last try I begun to write down what I do...

Let's try simplest method. "Zero-dependency Erlang from RabbitMQ". Open GitHub link from guide, find "Release Artifacts". I need yum install, so I will use "Yum repositories are available from Bintray and Package Cloud".

Let's look into Bintray link. Click on "Set me up", and follow instructions for manual install.

vi /etc/yum.repos.d/ bintray-rabbitmq-rpm.repo

bintraybintray-rabbitmq-rpm - packages by rabbitmq from Bintray

[bintraybintray-rabbitmq-rpm] name=bintray-rabbitmq-rpm baseurl=https://dl.bintray.com/rabbitmq/rpm gpgcheck=0 repo_gpgcheck=0 enabled=1

That's all ? Step back into GitHub link for Zero Dependency. Let's follow "To use Erlang 20.x on CentOS 7"

In /etc/yum.repos.d/rabbitmq-erlang.repo

[rabbitmq-erlang] name=rabbitmq-erlang baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7 gpgcheck=1 gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc repo_gpgcheck=0 enabled=1

That's all ? Step back into RabbitMQ manual. Section "With rpm and Downloaded RPM".

After downloading the server package, issue the following command as 'root' rpm --import https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc

this example assumes the CentOS 7 version of the package

yum install rabbitmq-server-3.7.5-1.el7.noarch.rpm

Ok, Let's do this. And I get results

$ yum install rabbitmq-server-3.7.5-1.el7.noarch.rpm Loaded plugins: fastestmirror https://dl.bintray.com/rabbitmq/rpm/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found failure: repodata/repomd.xml from bintraybintray-rabbitmq-rpm: [Errno 256] No more mirrors to try. https://dl.bintray.com/rabbitmq/rpm/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

... Something wrong with BinTray repository ? Or with my config ? Lets delete our repository files and start from scratch. Let's try Package Cloud. "Yum repositories are available from Bintray and Package Cloud."

So, "bash script" method for "RPM". I have been told to execute

curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash

Result

... Generating yum cache for rabbitmq_erlang... The repository is setup! You can now install packages.

Okay, lets back to RabbitMQ guide and setup Rabbit

$ yum install rabbitmq-server-3.7.5-1.el7.noarch.rpm Loaded plugins: fastestmirror rabbitmq_erlang/x86_64/signature | 836 B 00:00:00 rabbitmq_erlang/x86_64/signature | 1.0 kB 00:00:00 !!! rabbitmq_erlang-source/signature | 836 B 00:00:00 rabbitmq_erlang-source/signature | 951 B 00:00:00 !!! Loading mirror speeds from cached hostfile

  • base: mirror.cogentco.com
  • epel: epel.mirror.constant.com
  • extras: mirror.team-cymru.com
  • updates: mirror.wdc1.us.leaseweb.net No package rabbitmq-server-3.7.5-1.el7.noarch.rpm available. Error: Nothing to do

Damn... Go back into guide and use "Using PackageCloud Yum Repository" from https://www.rabbitmq.com/install-rpm.html

A Yum repository with RabbitMQ packages is available from PackageCloud. A quick way to install is to use a Package Cloud-provided script. Package Cloud also can be used to install a recent Erlang version via yum.

Let's use them...

All done. Lets install rabbit...

$ yum install rabbitmq-server-3.7.5-1.el7.noarch.rpm Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

  • base: mirror.cogentco.com
  • epel: epel.mirror.constant.com
  • extras: mirror.team-cymru.com
  • updates: mirror.wdc1.us.leaseweb.net No package rabbitmq-server-3.7.5-1.el7.noarch.rpm available. Error: Nothing to do

And what now ? Nothing works... Let's install Erlang from EPEL:

$ yum install erlang Installed: erlang.x86_64 0:20.3.4-1.el7.centos Complete! $ erl Erlang/OTP 20 [erts-9.3]...

Good. But what about rabbit ??? Why I can't just "yum install rabbitmq" ?

$ yum search rabbit Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

  • base: centos.mirror.constant.com
  • epel: epel.mirror.constant.com
  • extras: mirror.genesisadaptive.com
  • updates: mirror.wdc1.us.leaseweb.net ================================================ N/S matched: rabbit ================================================ golang-github-michaelklishin-rabbit-hole-devel.noarch : RabbitMQ HTTP API client in Go librabbitmq-devel.x86_64 : Header files and development libraries for librabbitmq librabbitmq-devel.i686 : Header files and development libraries for librabbitmq librabbitmq-examples.x86_64 : Examples built using the librabbitmq librabbitmq-tools.x86_64 : Example tools built using the librabbitmq package opensips-event_rabbitmq.x86_64 : Event RabbitMQ module rabbitmq-java-client-doc.noarch : Documentation for rabbitmq-java-client rabbitmq-java-client-javadoc.noarch : Javadoc for rabbitmq-java-client rabbitmq-server.noarch : The RabbitMQ server RabbIT.noarch : Proxy for a faster web golang-github-streadway-amqp-devel.noarch : Go client for AMQP 0.9.1 with RabbitMQ extensions librabbitmq.x86_64 : Client library for AMQP librabbitmq.i686 : C-language AMQP client library lugaru.x86_64 : Ninja rabbit fighting game rabbitmq-java-client.noarch : Java Advanced Message Queue Protocol client library

    Name and summary matches only, use "search all" for everything.

Ow, look, I found "rabbitmq-server.noarch : The RabbitMQ server". Lets try it

$ yum install rabbitmq-server Loaded plugins: fastestmirror rabbitmq_erlang/x86_64/signature | 836 B 00:00:00 rabbitmq_erlang/x86_64/signature | 1.0 kB 00:00:00 !!! rabbitmq_erlang-source/signature | 836 B 00:00:00 rabbitmq_erlang-source/signature | 951 B 00:00:00 !!! rabbitmq_rabbitmq-server/x86_64/signature | 836 B 00:00:00 rabbitmq_rabbitmq-server/x86_64/signature | 1.0 kB 00:00:00 !!! rabbitmq_rabbitmq-server-source/signature | 836 B 00:00:00 rabbitmq_rabbitmq-server-source/signature | 1.0 kB 00:00:00 !!! Loading mirror speeds from cached hostfile

  • base: mirror.cogentco.com
  • epel: s3-mirror-us-east-1.fedoraproject.org
  • extras: mirror.team-cymru.com
  • updates: mirror.wdc1.us.leaseweb.net Resolving Dependencies --> Running transaction check ---> Package rabbitmq-server.noarch 0:3.7.5-1.el7 will be installed --> Processing Dependency: socat for package: rabbitmq-server-3.7.5-1.el7.noarch --> Running transaction check ---> Package socat.x86_64 0:1.7.3.2-2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved

Exellent, but what version ? RabbitMQ 3.7.5. Great...

So, what's wrong with ...? With whom ? Me ? Guide ? Instance ?

michaelklishin commented 6 years ago

Thank you for your time.

Team RabbitMQ uses GitHub issues for specific actionable items engineers can work on. This assumes that we have a certain amount of information to work with.

Getting all the details necessary to reproduce an issue, make a conclusion or even form a hypothesis about what's happening can take a fair amount of time. Our team is multiple orders of magnitude smaller than the RabbitMQ community. Please help others help you by providing a way to reproduce the behavior you're observing and sharing as much relevant information as possible on the list:

Feel free to edit out hostnames and other potentially sensitive information.

When/if we have a complete enough understanding of what's going on, a recommendation will be provided or a new issues with more context will be filed.

Thank you.

michaelklishin commented 6 years ago

I'm afraid we cannot act on a poem, only a well enough defined problem.

Perhaps start a mailing list thread with more details about the CentOS version used (it "7" can mean "7.0", "7.1", and so on to "7.4").

Some messages suggest you haven't uninstalled the package or removed traces of one repo before adding another one. That can be problematic with both yum and apt.

FWIW I personally tried Bintray and Package Cloud installation guides when we introduced yum repos there and if it was a common issue, we'd be swamped with questions and complaints on the mailing list and so on.

GedMarc commented 5 years ago

the problem is the guide doesn't work ;) At all.... It's actually getting me pretty angry...

michaelklishin commented 5 years ago

I'm afraid we cannot act on a "doesn't work at all" either. I'm sorry that you are angry but unless you provide a specific set of steps, expectations, and observations [on the mailing list] no one would be able to help you and possibly improve the docs based on the outcome.

RabbitMQ installation guides get high 10s of thousands of page views a month and FWIW a very small number of people claim that they "don't work at all" or angry at us.

Open source software maintainers are outnumbered by open source software users by several orders of magnitude. Consider being a part of the solution and helping at least by providing information instead of making bold claims without any specific or being angry. Thank you.