RabbitMQ 2.7.1 doesn't start with configuration file; Reason: function_clause -
i try use rabbit on ubuntu 12.04. after installation rabbitmq-server works fine. stop , add configuration file.
root@rabbit1:~# tail /etc/rabbitmq/rabbitmq-env.conf rabbitmq_config_file=/etc/rabbitmq/myrabbitmq root@rabbit1:~# tail /etc/rabbitmq/myrabbitmq.config [{rabbit, [{cluster_nodes, {['rabbit@rabbit1', 'rabbit@rabbit2'], disc}}]}].
with files rabbitmq-server says on start:
root@rabbit1:~# rabbitmq-server activating rabbitmq plugins ... 0 plugins activated: +---+ +---+ | | | | | | | | | | | | | +---+ +-------+ | | | rabbitmq +---+ | | | | | | v2.7.1 +---+ | | | +-------------------+ amqp 0-9-1 / 0-9 / 0-8 copyright (c) 2007-2011 vmware, inc. licensed under mpl. see http://www.rabbitmq.com/ node : rabbit@rabbit1 app descriptor : /usr/lib/rabbitmq/lib/rabbitmq_server-2.7.1/sbin/../ebin/rabbit.app home dir : /var/lib/rabbitmq config file(s) : /etc/rabbitmq/myrabbitmq.config cookie hash : 31cah3bcsdnl1hdifqzh2q== log : /var/log/rabbitmq/rabbit@rabbit1.log sasl log : /var/log/rabbitmq/rabbit@rabbit1-sasl.log database dir : /var/lib/rabbitmq/mnesia/rabbit@rabbit1 erlang version : 5.8.5 -- rabbit boot start starting file handle cache server ...done starting worker pool ...done starting database ...boot error: failed reason: function_clause stacktrace: [{lists,usort,[{[rabbit@rabbit1,rabbit@rabbit2],disc}]}, {rabbit_mnesia,init_db,3}, {rabbit_mnesia,init,0}, {rabbit,'-run_boot_step/1-lc$^1/1-1-',1}, {rabbit,run_boot_step,1}, {rabbit,'-start/2-lc$^0/1-0-',1}, {rabbit,start,2}, {application_master,start_it_old,4}] erlang has closed {"kernel pid terminated",application_controller,"{application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'exit',{rabbit,failure_during_boot}}}}}"} kernel pid terminated (application_controller) ({application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'exit',{rabbit,failure_during_boot}}}}})
have suggestion what's wrong rabbit?
configuration file should this:
root@rabbit1:~# cat /etc/rabbitmq/myrabbitmq.config [{rabbit, [{cluster_nodes, ['rabbit@rabbit1', 'rabbit@rabbit2'] }]}].
it seems, disc or ram node configures in different way in documentation latest version of rabbit. in configuration 2 disc nodes created. if wants ram node node should ommitted in configuration of node (not in other config files).
Comments
Post a Comment