[rabbitmq-discuss] RabbitMQ boot failures with SSL on homebrew Mac OSX
Alan Antonuk
alan.antonuk at gmail.com
Fri Jul 12 21:16:04 BST 2013
Forgive me if I'm barking up the wrong tree here, I figure this is a good
place to start tracking down this issue:
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).
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 at localhost.log is below that).
My rabbitmq.config looks like:
533 aega at aimac:~ $ cat /usr/local/etc/rabbitmq/rabbitmq.config
[
{rabbit, [
{tcp_listeners, [{5672}]},
{ssl_listeners, [5671]},
{ssl_options, [{cacertfile,"/Users/aega/d/amqp/testca/cacert.pem"},
{certfile,"/Users/aega/d/amqp/servercert/cert.pem"},
{keyfile,"/Users/aega/d/amqp/servercert/key.pem"},
{verify,verify_peer},
{fail_if_no_peer_cert,false}]}
]}
].
531 aega at aimac:~ $ /usr/local/sbin/rabbitmq-server
RabbitMQ 3.1.3. Copyright (C) 2007-2013 VMware, Inc.
## ## Licensed under the MPL. See http://www.rabbitmq.com/
## ##
########## Logs: /usr/local/var/log/rabbitmq/rabbit at localhost.log
###### ## /usr/local/var/log/rabbitmq/rabbit at localhost-sasl.log
##########
Starting broker...
BOOT FAILED
===========
Error description:
{error,{cannot_start_application,asn1,
{"no such file or
directory","asn1.app"}}}
Log files (may contain more information):
/usr/local/var/log/rabbitmq/rabbit at localhost.log
/usr/local/var/log/rabbitmq/rabbit at localhost-sasl.log
Stack trace:
[{app_utils,'-start_applications/1-fun-0-',2,
[{file,"src/app_utils.erl"},{line,46}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},
{app_utils,manage_applications,6,[{file,"src/app_utils.erl"},{line,128}]},
{rabbit_networking,ensure_ssl,0,
[{file,"src/rabbit_networking.erl"},{line,148}]},
{rabbit_networking,'-boot_ssl/0-lc$^0/1-0-',1,
[{file,"src/rabbit_networking.erl"},{line,137}]},
{rabbit_networking,boot_ssl,0,
[{file,"src/rabbit_networking.erl"},{line,137}]},
{rabbit_networking,boot,0,[{file,"src/rabbit_networking.erl"},{line,125}]},
{rabbit,'-run_boot_step/1-lc$^1/1-1-',1,
[{file,"src/rabbit.erl"},{line,488}]}]
BOOT FAILED
===========
Error description:
{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"}}}}}}}}
Log files (may contain more information):
/usr/local/var/log/rabbitmq/rabbit at localhost.log
/usr/local/var/log/rabbitmq/rabbit at localhost-sasl.log
{"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"}}}}}}}}}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
---------------------------------------------------------------------------------------
Last few lines of rabbitmq at localhost.log:
=INFO REPORT==== 12-Jul-2013::13:03:01 ===
Starting RabbitMQ 3.1.3 on Erlang R16B
Copyright (C) 2007-2013 VMware, Inc.
Licensed under the MPL. See http://www.rabbitmq.com/
=INFO REPORT==== 12-Jul-2013::13:03:01 ===
node : rabbit at localhost
home dir : /Users/aega
cookie hash : z2f61w1/EZjsR+NzlXG5Ew==
log : /usr/local/var/log/rabbitmq/rabbit at localhost.log
sasl log : /usr/local/var/log/rabbitmq/rabbit at localhost-sasl.log
database dir : /usr/local/var/lib/rabbitmq/mnesia/rabbit at localhost
=INFO REPORT==== 12-Jul-2013::13:03:01 ===
Limiting to approx 156 file handles (138 sockets)
=INFO REPORT==== 12-Jul-2013::13:03:02 ===
Memory limit set to 564MB of 1410MB total.
=INFO REPORT==== 12-Jul-2013::13:03:02 ===
Disk free limit set to 1000MB
=INFO REPORT==== 12-Jul-2013::13:03:02 ===
msg_store_transient: using rabbit_msg_store_ets_index to provide index
=INFO REPORT==== 12-Jul-2013::13:03:02 ===
msg_store_persistent: using rabbit_msg_store_ets_index to provide index
=INFO REPORT==== 12-Jul-2013::13:03:02 ===
started TCP Listener on 127.0.0.1:5672
=INFO REPORT==== 12-Jul-2013::13:03:02 ===
Error description:
{error,{cannot_start_application,asn1,
{"no such file or
directory","asn1.app"}}}
Log files (may contain more information):
/usr/local/var/log/rabbitmq/rabbit at localhost.log
/usr/local/var/log/rabbitmq/rabbit at localhost-sasl.log
Stack trace:
[{app_utils,'-start_applications/1-fun-0-',2,
[{file,"src/app_utils.erl"},{line,46}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},
{app_utils,manage_applications,6,[{file,"src/app_utils.erl"},{line,128}]},
{rabbit_networking,ensure_ssl,0,
[{file,"src/rabbit_networking.erl"},{line,148}]},
{rabbit_networking,'-boot_ssl/0-lc$^0/1-0-',1,
[{file,"src/rabbit_networking.erl"},{line,137}]},
{rabbit_networking,boot_ssl,0,
[{file,"src/rabbit_networking.erl"},{line,137}]},
{rabbit_networking,boot,0,[{file,"src/rabbit_networking.erl"},{line,125}]},
{rabbit,'-run_boot_step/1-lc$^1/1-1-',1,
[{file,"src/rabbit.erl"},{line,488}]}]
=INFO REPORT==== 12-Jul-2013::13:03:03 ===
stopped TCP Listener on 127.0.0.1:5672
=INFO REPORT==== 12-Jul-2013::13:03:03 ===
Error description:
{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"}}}}}}}}
Log files (may contain more information):
/usr/local/var/log/rabbitmq/rabbit at localhost.log
/usr/local/var/log/rabbitmq/rabbit at localhost-sasl.log
=ERROR REPORT==== 12-Jul-2013::13:03:03 ===
** gen_event handler rabbit_error_logger crashed.
** Was installed in error_logger
** Last event was: {info_msg,<0.29.0>,
{<0.2.0>,
"Error description:~n ~p~n~nLog files (may contain
more information):~n ~s~n ~s~n~n",
[{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"}}}}}}}},
"/usr/local/var/log/rabbitmq/rabbit at localhost.log",
"/usr/local/var/log/rabbitmq/rabbit at localhost-sasl.log
"]}}
** When handler state == {resource,<<"/">>,exchange,<<"amq.rabbitmq.log">>}
** Reason == {badarg,
[{ets,lookup,
[rabbit_exchange,
{resource,<<"/">>,exchange,<<"amq.rabbitmq.log">>}],
[]},
{rabbit_misc,dirty_read,1,
[{file,"src/rabbit_misc.erl"},{line,345}]},
{rabbit_basic,publish,1,
[{file,"src/rabbit_basic.erl"},{line,100}]},
{rabbit_error_logger,publish1,4,
[{file,"src/rabbit_error_logger.erl"},{line,84}]},
{rabbit_error_logger,handle_event,2,
[{file,"src/rabbit_error_logger.erl"},{line,62}]},
{gen_event,server_update,4,
[{file,"gen_event.erl"},{line,504}]},
{gen_event,server_notify,4,
[{file,"gen_event.erl"},{line,486}]},
{gen_event,handle_msg,5,
[{file,"gen_event.erl"},{line,248}]}]}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130712/510b4dc6/attachment.htm>
More information about the rabbitmq-discuss
mailing list