cookies - RabbitMQ as Windows service: badarith error on rpc.erl -
i experiencing problems rabbitmq started service on windows.
- operative system: windows 8 (microsoft windows nt version 6.2 server) (build 9200)
- erlang: r16b03 (erts-5.10.4)
- rabbitmq: 3.2.2
goal: create rabbitmq cluster 3 servers: srv1, srv2, srv3.
note: have followed official documentation
all following operations executed user "administrator".
first scenario: start rabbitmq command line background process
i used command "rabbitmq-server -detached" on srv1. result: file ".erlang.cookie" created under c:\users\administrator execution of command "rabbimqctl status" successful , gives me current state of node. can copy file .erlang.cookie in same folder on srv2 , srv3 , create cluster.
second scenario: start rabbitmq service (this requirement have)
result: file ".erlang.cookie" created under c:\windows. when type command "rabbitmqctl status" file .erlang.cookie created under c:\users\administrator , receive following result:
c:\program files\aspect\dashboard\rabbitmq\sbin>rabbitmqctl.bat status status of node 'rabbit@rabbitmq-node4' ... error: unable connect node 'rabbit@rabbitmq-node4': nodedown diagnostics =========== nodes in question: ['rabbit@rabbitmq-node4'] hosts, running nodes , ports: - rabbitmq-node4: [{rabbit,49428},{rabbitmqctl3045334,49434}] current node details: - node name: 'rabbitmqctl3045334@rabbitmq-node4' - home dir: c:\users\administrator - cookie hash: 0dlakf8povrgc016+6bdbw==
we know ok because 2 cookies different. copy .erlang.cookie file c:\windows c:\users\administrator , try again same command. time get:
c:\program files\aspect\dashboard\rabbitmq\sbin>rabbitmqctl.bat status status of node 'rabbit@rabbitmq-node4' ... error: unable connect node 'rabbit@rabbitmq-node4': nodedown diagnostics =========== nodes in question: ['rabbit@rabbitmq-node4'] hosts, running nodes , ports: - rabbitmq-node4: [{rabbitmqctl1178095,49471}] current node details: - node name: 'rabbitmqctl1178095@rabbitmq-node4' - home dir: c:\users\administrator - cookie hash: tiuqp21hoqsoujt8jfgrqw== c:\program files\aspect\dashboard\rabbitmq\sbin>rabbitmqctl.bat status status of node 'rabbit@rabbitmq-node4' ... error: {badarith,[{rabbit_vm,bytes,1,[]}, {rabbit_vm,'-mnesia_memory/0-lc$^0/1-0-',1,[]}, {rabbit_vm,mnesia_memory,0,[]}, {rabbit_vm,memory,0,[]}, {rabbit,status,0,[]}, {rpc,'-handle_call_call/6-fun-0-',5, [{file,"rpc.erl"},{line,205}]}]}
please notice error @ end: "badarith" in rpc.erl, line 205. think file erlang\lib\kernel-2.16.4\src\rpc.erl function one:
handle_call_call(mod, fun, args, gleader, to, s) -> rpcserver = self(), %% spawn not block rpc server. {caller,_} = erlang:spawn_monitor( fun () -> set_group_leader(gleader), reply = %% in case sucker rex'es %% throws case catch apply(mod, fun, args) of {'exit', _} = exit -> {badrpc, exit}; result -> result end, rpcserver ! {self(), {reply, reply}} end), {noreply, gb_trees:insert(caller, to, s)}.
and line 205 'case catch apply(mod, fun, args) of'
third scenario: start rabbitmq named user avoid create file .erlang.cookie under c:\windows
i set rabbitmq service log on user "administrator", way not create file under c:\windows under c:\user\administrator. result: when service starts, file ".erlang.cookie" created under c:\user\administrator. when type command "rabbitmqctl status" same error in provious case (badarith...).
now question: have not found information error (badarith). give me suggestion how troubleshoot/avoid this?
Comments
Post a Comment