[rabbitmq-discuss] Running RabbitMQ server as embedded application

Jorge Diz Pico jorge.diz at nomasystems.com
Tue Mar 26 12:18:41 GMT 2013


Hi folks, I'm trying to run a RabbitMQ server the OTP way, but it's
becoming harder than I thought. I added all dependencies to my
release, but when I run application:start(rabbit), I get the following
error:

[...]
-- rabbit boot start
starting file handle cache server                                     ...done
starting worker pool                                                  ...done
starting database                                                     ...

BOOT FAILED
===========

Error description:
   {error,{corrupt_or_missing_cluster_files,{error,enoent},{error,enoent}}}

Log files (may contain more information):
   undefined
   undefined

Stack trace:
   [{rabbit_node_monitor,read_cluster_status,0,
                         [{file,"src/rabbit_node_monitor.erl"},{line,139}]},
    {rabbit_mnesia,cluster_status,1,
                   [{file,"src/rabbit_mnesia.erl"},{line,391}]},
    {rabbit_mnesia,node_type,0,[{file,"src/rabbit_mnesia.erl"},{line,410}]},
    {rabbit_mnesia,init,0,[{file,"src/rabbit_mnesia.erl"},{line,97}]},
    {rabbit,'-run_boot_step/1-lc$^1/1-1-',1,
            [{file,"src/rabbit.erl"},{line,481}]},
    {rabbit,run_boot_step,1,[{file,"src/rabbit.erl"},{line,480}]},
    {rabbit,'-start/2-lc$^0/1-0-',1,[{file,"src/rabbit.erl"},{line,440}]},
    {rabbit,start,2,[{file,"src/rabbit.erl"},{line,440}]}]
[...]

But of course there are no clusters and there had never been (fresh run).

Has anybody managed to do this? There has to be a way to embed the
RabbitMQ server in your own applications.


More information about the rabbitmq-discuss mailing list