RabbitMQ Installation and Startup Error description:noproc Solution

Keywords: Programming RabbitMQ Erlang yum SSL

Because erlang was installed first when RabbitMQ was installed by the building owner,

The commands are as follows:

1. Download the erlang source package


wget http://erlang.org/download/otp_src_22.0.tar.gz

2. Decompression

tar -zxvf otp_src_22.0.tar.gz

3. Install erlang compilation dependency Libraries

Missing this step Errors at make, prompting for missing Libraries

yum install -y ncurses-base ncurses-devel ncurses-bin
yum install -y 

4. Compile and Install

./configure --prefix=/opt/software/erlang --with-ssl --enable-threads --enable-smp-support --enable-kernel-poll --enable-hipe --without-javac

make -j8

make install

5. If the above commands have been executed successfully, you can see what has been compiled in the / opt/software/erlang directory; if not, check if all of the above operations have been successful!

Configuring environment variables

vim ~/.bash_profile

source ~/.bash_profile

6. Check Installation

erl -v

If it executes successfully, you will see the following information, indicating that the installation was successful.

[ryan@test-008]$ erl -v
Erlang/OTP 22 [erts-10.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]

Eshell V10.4  (abort with ^G)
1> 

 

 

Next, install RabbitMQ.

1. Download RabbitMQ

https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.6.16/

2. Decompression

tar -xvf rabbitmq-server-generic-unix-3.6.15.tar.xz

3. Start RabbitMQ

sbin/rabbitmq-server --help

My startup report has the following error:


[ryan@test-008 rabbitmq_server-3.6.15]$
BOOT FAILED
===========

Error description:
   noproc

Log files (may contain more information):
   /opt/software/rabbitmq_server-3.6.15/var/log/rabbitmq/rabbit@10-254-130-28.log
   /opt/software/rabbitmq_server-3.6.15/var/log/rabbitmq/rabbit@10-254-130-28-sasl.log

Stack trace:
   [{gen,do_for_proc,2,[{file,"gen.erl"},{line,228}]},
    {gen_event,rpc,2,[{file,"gen_event.erl"},{line,239}]},
    {rabbit,ensure_working_log_handlers,0,
            [{file,"src/rabbit.erl"},{line,856}]},
    {rabbit,'-boot/0-fun-0-',0,[{file,"src/rabbit.erl"},{line,288}]},
    {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,424}]},
    {init,start_em,1,[]},
    {init,do_boot,3,[]}]

=INFO REPORT==== 21-May-2019::08:41:05.456392 ===
Error description:
   noproc

Log files (may contain more information):
   /opt/software/rabbitmq_server-3.6.15/var/log/rabbitmq/rabbit@10-254-130-28.log
   /opt/software/rabbitmq_server-3.6.15/var/log/rabbitmq/rabbit@10-254-130-28-sasl.log

Stack trace:
   [{gen,do_for_proc,2,[{file,"gen.erl"},{line,228}]},
    {gen_event,rpc,2,[{file,"gen_event.erl"},{line,239}]},
    {rabbit,ensure_working_log_handlers,0,
            [{file,"src/rabbit.erl"},{line,856}]},
    {rabbit,'-boot/0-fun-0-',0,[{file,"src/rabbit.erl"},{line,288}]},
    {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,424}]},
    {init,start_em,1,[]},
    {init,do_boot,3,[]}]


{"init terminating in do_boot",noproc}
init terminating in do_boot (noproc)

Crash dump is being written to: erl_crash.dump...done

 

From the hint here, [noproc] I guess that the erlang and RabbitMQ versions are inconsistent.So I checked it on the official website:

(Official address: https://www.rabbitmq.com/which-erlang.html)

 

Sure, I downloaded Rabbit MQ version 3.6.15, while erlang version 22.0, decisive version, the above installation process is unchanged, just re-download erlang version 20.3.

Final perfect solution!

Posted by ady01 on Thu, 07 Nov 2019 07:03:35 -0800