I installed Erlang (OTP 21.2 Windows 64-bit Binary File) followed by RabbitMQ Server 3.7.9 and I also installed management tool rabbitmq-plugins enable rabbitmq_management.
Now whenever I try to start RabbitMQ service, after 1 minutes, it's stopped.
Below event I'm getting,
Info > RabbitMQ: Erlang service restarted
Error >RabbitMQ: Erlang machine seems to die continously, not
restarted.
The RabbitMQ service terminated with the following error:
The process terminated unexpectedly.
I am configuring the rabbitmq ssl connection.
I already set the ssl file path on rabbitmq.conf.
And I also get listening SSL log
=INFO REPORT==== 14-Feb-2017::18:18:28 ===
node : "BLIND"
home dir : /root
config file(s) : /xxx/rabbitmq/rabbitmq_server-3.3.2/sbin/../etc/rabbitmq/rabbitmq.config
cookie hash : Ux+c4k3F1Dveragf8mnmOQ==
log : /xxx/rabbitmq/rabbitmq_server-3.3.2/log/xxx.log
sasl log : /xxx/rabbitmq/rabbitmq_server-3.3.2/log/xxx-sasl.log
database dir : /xxx/rabbitmq/rabbitmq_server-3.3.2/data/xxx
=INFO REPORT==== 14-Feb-2017::18:18:29 ===
Limiting to approx 924 file handles (829 sockets)
=INFO REPORT==== 14-Feb-2017::18:18:29 ===
Memory limit set to 6423MB of 16057MB total.
=INFO REPORT==== 14-Feb-2017::18:18:29 ===
Disk free limit set to 50MB
=INFO REPORT==== 14-Feb-2017::18:18:29 ===
msg_store_transient: using rabbit_msg_store_ets_index to provide index
=INFO REPORT==== 14-Feb-2017::18:18:29 ===
msg_store_persistent: using rabbit_msg_store_ets_index to provide index
=WARNING REPORT==== 14-Feb-2017::18:18:29 ===
msg_store_persistent: rebuilding indices from scratch
=INFO REPORT==== 14-Feb-2017::18:18:29 ===
started TCP Listener on 0.0.0.0:5671
=INFO REPORT==== 14-Feb-2017::18:18:29 ===
started MQTT TCP Listener on 0.0.0.0:1883
=INFO REPORT==== 14-Feb-2017::18:18:29 ===
started MQTT SSL Listener on 0.0.0.0:1884
=INFO REPORT==== 14-Feb-2017::18:18:30 ===
Management plugin started. Port: 15672
=INFO REPORT==== 14-Feb-2017::18:18:30 ===
Statistics database started.
=INFO REPORT==== 14-Feb-2017::18:18:30 ===
Server startup complete; 7 plugins started.
But when I connect the rabbitmq, then this message occurs.
[root#BLIND sbin]# openssl s_client -connect localhost:1884 -tls1
CONNECTED(00000003) 32656:error:1409E0E5:SSL
routines:SSL3_WRITE_BYTES:ssl handshake failure:s3_pkt.c:536:
What is the wrong with this.
Recently I tried to use Rabbitmq to try AMQP in our project. For installation I followed the steps mentioned on the offical RabbitMQ site. It created a Rabbitmq.config.example file in appdata. I renamed it to rabbitmq.config file. But even after that in logs I continuously get these messages
=INFO REPORT==== 7-Dec-2015::19:21:14 === accepting AMQP connection <0.377.0> ([::1]:55084 -> [::1]:5672)
=ERROR REPORT==== 7-Dec-2015::19:21:14 === closing AMQP connection <0.377.0> ([::1]:55084 -> [::1]:5672): {bad_header,<<"GET / HT">>}
How to make my server up and running?
When I opened the config file, everything seems to be commented. Should I uncomment any part of it?
I have faced this issue on my ubuntu system.
Try this command:
rabbitmq-plugins enable rabbitmq_shovel rabbitmq_management (with sudo privileges)
and open localhost:15672.
For testing purposes I need ActiveMQ and RabbitMQ running on the same Windows machine. I have both installed, but I can't run them together: I need to stop one service in order to have the other one running.
This is the error I get trying to start RabbitMQ having ActiveMQ running:
=INFO REPORT==== 17-Feb-2015::14:24:00 ===
Error description:
{could_not_start,rabbit,
{bad_return,
{{rabbit,start,[normal,[]]},
{'EXIT',
{rabbit,failure_during_boot,
{boot_step,networking,
{case_clause,
{error,
{{shutdown,
{failed_to_start_child,tcp_listener,
{cannot_listen,{0,0,0,0,0,0,0,0},5672,eacces}}},
{child,undefined,'rabbit_tcp_listener_sup_:::5672',
{tcp_listener_sup,start_link,
[{0,0,0,0,0,0,0,0},
5672,
[inet6,binary,
{packet,raw},
{reuseaddr,true},
{backlog,128},
{nodelay,true},
{linger,{true,0}},
{exit_on_close,false}],
{rabbit_networking,tcp_listener_started,[amqp]},
{rabbit_networking,tcp_listener_stopped,[amqp]},
{rabbit_networking,start_client,[]},
"TCP Listener"]},
transient,infinity,supervisor,
[tcp_listener_sup]}}}}}}}}}}
And this is the error I get trying to start ActiveMQ with RabbitMQ already running:
jvm 1 | INFO | Listening for connections at: tcp://BROKER:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector openwire started
jvm 1 | ERROR | Failed to start Apache ActiveMQ ([localhost, ID:DEV-BROKER01-56290-1424197666199-0:1], java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to:
java.net.BindException: Address already in use: JVM_Bind)
jvm 1 | INFO | Apache ActiveMQ 5.11.0 (localhost, ID:DEV-BROKER01-56290-1424197666199-0:1) is shutting down
That "Address already in use" is the key I guess.
Any way to sort this out? Thanks
this is the problem:
java.net.BindException: Address already in use: JVM_Bind)
both the brokers use the 5672 port (amqp default port).
just change the port for one broker, for example in rabbitmq check this link:
https://www.rabbitmq.com/configure.html
The configuration file rabbitmq.config allows the RabbitMQ core
application, Erlang services and RabbitMQ plugins to be configured. It
is a standard Erlang configuration file, documented on the Erlang
Config Man Page.
An example configuration file follows:
[
{rabbit, [{tcp_listeners, [5673]}]}
].
This example will the port RabbitMQ listens on from 5672 to 5673.
This configuration file is not the same as rabbitmq-env.conf, which
can be used to set environment variables on non-windows systems.
I am trying to connect to RabbitMQ with EasyNetQ.
RabbitMQ is on remote VM.
_rabbitBus = RabbitHutch.CreateBus(
string.Format("host={0};virtualhost={1}",
_hostSettings.Host, _hostSettings.VHost),
x => x.Register<IEasyNetQLogger>(l => _logger));
_rabbitBus.Subscribe<Message>(_topic, ReceiveMessage, m => m.WithTopic(_topic));
I get a TimeoutException The operation requested on PersistentChannel timed out..
Remote VM is replying to pings, ports 5672 and 15672 are opened (checked with nmap).
RabbitMQ management can be accessed from my host.
Also, if RabbitMQ is run on my local machine, it works fine.
I've tried connecting to RabbitMQ installed on my computer from other pc's in LAN, and it also works.
I've come to an assumption, that it's related to the fact it's on a virtual machine, and maybe there's something wrong in connection. But again, Rabbit's web management works fine.
Also tested on EasyNetQ Test application - works on localhost, but not on remote.
Output as following:
DEBUG: Trying to connect
ERROR: Failed to connect to Broker: '192.168.0.13', Port: 5672 VHost: '/'.
ExceptionMessage: 'None of the specified endpoints were reachable'
ERROR: Failed to connected to any Broker. Retrying in 5000 ms
EasyNetQ v0.28.4.242
As Mike suggested i had this and then checked the permissions. "guest" user can only connect via localhost (see RabbitMQ Access Control.) Try adding a user with permissions using the management interface and then connect as below
var _bus = RabbitHutch.CreateBus(string.Format("host={0};virtualhost={1};username={2};password={3}",
_hostSettings.Host, _hostSettings.VHost, _hostSettings.UserName, _hostSettings.Password));
Did you check your credentials. The default username and password is 'guest' and 'guest'. The error message is not very helpful. You get 'None of the specified endpoints were reachable' if there's an authentication error as well