<div dir="ltr">Forgive me if I'm barking up the wrong tree here, I figure this is a good place to start tracking down this issue:<div><br></div><div style>I'm trying to run RabbitMQ v3.1.3 on Erlang vR15B03-1 on Mac OSX 10.8.4, both installed using Homebrew. (Though it appears as though RabbitMQ is using its own private version of erlang).</div>
<div style><br></div><div style>It works great until I try and enable SSL, then I get boot failures (the complete output of rabbitmq-server is below, the output of the last boot of rabbitmq@localhost.log is below that).</div>
<div style><br></div><div style>My rabbitmq.config looks like:</div><div style><br></div><div style><div>533 aega@aimac:~ $ cat /usr/local/etc/rabbitmq/rabbitmq.config</div><div>[</div><div>{rabbit, [</div><div> {tcp_listeners, [{5672}]},</div>
<div> {ssl_listeners, [5671]},</div><div> {ssl_options, [{cacertfile,"/Users/aega/d/amqp/testca/cacert.pem"},</div><div> {certfile,"/Users/aega/d/amqp/servercert/cert.pem"},</div>
<div> {keyfile,"/Users/aega/d/amqp/servercert/key.pem"},</div><div> {verify,verify_peer},</div><div> {fail_if_no_peer_cert,false}]}</div><div>
]}</div><div>].</div><div><br></div></div><div style>531 aega@aimac:~ $ /usr/local/sbin/rabbitmq-server<br></div><div><div><br></div><div> RabbitMQ 3.1.3. Copyright (C) 2007-2013 VMware, Inc.</div><div> ## ## Licensed under the MPL. See <a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a></div>
<div> ## ##</div><div> ########## Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log</div><div> ###### ## /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log</div><div> ##########</div><div> Starting broker...</div>
<div><br></div><div>BOOT FAILED</div><div>===========</div><div><br></div><div>Error description:</div><div> {error,{cannot_start_application,asn1,</div><div> {"no such file or directory","asn1.app"}}}</div>
<div><br></div><div>Log files (may contain more information):</div><div> /usr/local/var/log/rabbitmq/rabbit@localhost.log</div><div> /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log</div><div><br></div><div>Stack trace:</div>
<div> [{app_utils,'-start_applications/1-fun-0-',2,</div><div> [{file,"src/app_utils.erl"},{line,46}]},</div><div> {lists,foldl,3,[{file,"lists.erl"},{line,1248}]},</div><div>
{app_utils,manage_applications,6,[{file,"src/app_utils.erl"},{line,128}]},</div><div> {rabbit_networking,ensure_ssl,0,</div><div> [{file,"src/rabbit_networking.erl"},{line,148}]},</div>
<div> {rabbit_networking,'-boot_ssl/0-lc$^0/1-0-',1,</div><div> [{file,"src/rabbit_networking.erl"},{line,137}]},</div><div> {rabbit_networking,boot_ssl,0,</div><div> [{file,"src/rabbit_networking.erl"},{line,137}]},</div>
<div> {rabbit_networking,boot,0,[{file,"src/rabbit_networking.erl"},{line,125}]},</div><div> {rabbit,'-run_boot_step/1-lc$^1/1-1-',1,</div><div> [{file,"src/rabbit.erl"},{line,488}]}]</div>
<div><br></div><div><br></div><div><br></div><div>BOOT FAILED</div><div>===========</div><div><br></div><div>Error description:</div><div> {could_not_start,rabbit,</div><div> {bad_return,</div><div> {{rabbit,start,[normal,[]]},</div>
<div> {'EXIT',</div><div> {rabbit,failure_during_boot,</div><div> {error,</div><div> {cannot_start_application,asn1,</div><div> {"no such file or directory","asn1.app"}}}}}}}}</div>
<div><br></div><div>Log files (may contain more information):</div><div> /usr/local/var/log/rabbitmq/rabbit@localhost.log</div><div> /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log</div><div><br></div><div>{"init terminating in do_boot",{rabbit,failure_during_boot,{could_not_start,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot,{error,{cannot_start_application,asn1,{"no such file or directory","asn1.app"}}}}}}}}}}</div>
<div><br></div><div>Crash dump was written to: erl_crash.dump</div><div>init terminating in do_boot ()</div></div><div><br></div><div>---------------------------------------------------------------------------------------</div>
<div><br></div><div style>Last few lines of rabbitmq@localhost.log:</div><div style><div>=INFO REPORT==== 12-Jul-2013::13:03:01 ===</div><div>Starting RabbitMQ 3.1.3 on Erlang R16B</div><div>Copyright (C) 2007-2013 VMware, Inc.</div>
<div>Licensed under the MPL. See <a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a></div><div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:01 ===</div><div>node : rabbit@localhost</div><div>home dir : /Users/aega</div>
<div>cookie hash : z2f61w1/EZjsR+NzlXG5Ew==</div><div>log : /usr/local/var/log/rabbitmq/rabbit@localhost.log</div><div>sasl log : /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log</div><div>database dir : /usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost</div>
<div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:01 ===</div><div>Limiting to approx 156 file handles (138 sockets)</div><div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:02 ===</div><div>Memory limit set to 564MB of 1410MB total.</div>
<div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:02 ===</div><div>Disk free limit set to 1000MB</div><div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:02 ===</div><div>msg_store_transient: using rabbit_msg_store_ets_index to provide index</div>
<div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:02 ===</div><div>msg_store_persistent: using rabbit_msg_store_ets_index to provide index</div><div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:02 ===</div><div>
started TCP Listener on <a href="http://127.0.0.1:5672">127.0.0.1:5672</a></div><div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:02 ===</div><div>Error description:</div><div> {error,{cannot_start_application,asn1,</div>
<div> {"no such file or directory","asn1.app"}}}</div><div><br></div><div>Log files (may contain more information):</div><div> /usr/local/var/log/rabbitmq/rabbit@localhost.log</div>
<div> /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log</div><div><br></div><div>Stack trace:</div><div> [{app_utils,'-start_applications/1-fun-0-',2,</div><div> [{file,"src/app_utils.erl"},{line,46}]},</div>
<div> {lists,foldl,3,[{file,"lists.erl"},{line,1248}]},</div><div> {app_utils,manage_applications,6,[{file,"src/app_utils.erl"},{line,128}]},</div><div> {rabbit_networking,ensure_ssl,0,</div><div>
[{file,"src/rabbit_networking.erl"},{line,148}]},</div><div> {rabbit_networking,'-boot_ssl/0-lc$^0/1-0-',1,</div><div> [{file,"src/rabbit_networking.erl"},{line,137}]},</div>
<div> {rabbit_networking,boot_ssl,0,</div><div> [{file,"src/rabbit_networking.erl"},{line,137}]},</div><div> {rabbit_networking,boot,0,[{file,"src/rabbit_networking.erl"},{line,125}]},</div>
<div> {rabbit,'-run_boot_step/1-lc$^1/1-1-',1,</div><div> [{file,"src/rabbit.erl"},{line,488}]}]</div><div><br></div><div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:03 ===</div><div>
stopped TCP Listener on <a href="http://127.0.0.1:5672">127.0.0.1:5672</a></div><div><br></div><div>=INFO REPORT==== 12-Jul-2013::13:03:03 ===</div><div>Error description:</div><div> {could_not_start,rabbit,</div><div> {bad_return,</div>
<div> {{rabbit,start,[normal,[]]},</div><div> {'EXIT',</div><div> {rabbit,failure_during_boot,</div><div> {error,</div><div> {cannot_start_application,asn1,</div>
<div> {"no such file or directory","asn1.app"}}}}}}}}</div><div><br></div><div>Log files (may contain more information):</div><div> /usr/local/var/log/rabbitmq/rabbit@localhost.log</div>
<div> /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log</div><div><br></div><div><br></div><div>=ERROR REPORT==== 12-Jul-2013::13:03:03 ===</div><div>** gen_event handler rabbit_error_logger crashed.</div><div>** Was installed in error_logger</div>
<div>** Last event was: {info_msg,<0.29.0>,</div><div> {<0.2.0>,</div><div> "Error description:~n ~p~n~nLog files (may contain more information):~n ~s~n ~s~n~n",</div>
<div> [{could_not_start,rabbit,</div><div> {bad_return,</div><div> {{rabbit,start,[normal,[]]},</div><div> {'EXIT',</div><div>
{rabbit,failure_during_boot,</div><div> {error,</div><div> {cannot_start_application,asn1,</div><div> {"no such file or directory","asn1.app"}}}}}}}},</div>
<div> "/usr/local/var/log/rabbitmq/rabbit@localhost.log",</div><div> "/usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log"]}}</div><div>** When handler state == {resource,<<"/">>,exchange,<<"amq.rabbitmq.log">>}</div>
<div>** Reason == {badarg,</div><div> [{ets,lookup,</div><div> [rabbit_exchange,</div><div> {resource,<<"/">>,exchange,<<"amq.rabbitmq.log">>}],</div>
<div> []},</div><div> {rabbit_misc,dirty_read,1,</div><div> [{file,"src/rabbit_misc.erl"},{line,345}]},</div><div> {rabbit_basic,publish,1,</div>
<div> [{file,"src/rabbit_basic.erl"},{line,100}]},</div><div> {rabbit_error_logger,publish1,4,</div><div> [{file,"src/rabbit_error_logger.erl"},{line,84}]},</div>
<div> {rabbit_error_logger,handle_event,2,</div><div> [{file,"src/rabbit_error_logger.erl"},{line,62}]},</div><div> {gen_event,server_update,4,</div><div> [{file,"gen_event.erl"},{line,504}]},</div>
<div> {gen_event,server_notify,4,</div><div> [{file,"gen_event.erl"},{line,486}]},</div><div> {gen_event,handle_msg,5,</div><div> [{file,"gen_event.erl"},{line,248}]}]}</div>
<div><br></div></div></div>