<div class="gmail_quote"><div>Matthias, Matthew and Jeremy,</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
strace'ing sounds like an excellent plan.</blockquote><div><br></div><div>I should preface this by saying that I am not well versed in rabbitmq or system administration, so I may be doing something dumb here... I attempted an strace like so:</div>
<div><br></div><div>First, a: `ps aux | grep rabbitmq` to find the phantom rabbitmq process that apt-get install seems to have left running, followed by a `sudo kill ####` to get rid of it</div><div><br></div><div>Then a `sudo strace rabbitmq-server` to start the trace.</div>
<div><br></div><div><br></div><div>Here are the results from strace:</div><div><div>wait4(-1, 0x7fff09bb6e5c, WNOHANG, NULL) = -1 ECHILD (No child processes)</div><div>rt_sigreturn(0xffffffffffffffff) = 0</div><div>
close(3) = 0</div><div>rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0</div><div>rt_sigaction(SIGINT, {0x441000, [], SA_RESTORER, 0x7f9622f0b530}, {SIG_DFL, [], SA_RESTORER, 0x7f9622f0b530}, 8) = 0</div>
<div>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</div><div>rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f9622f0b530}, {0x441000, [], SA_RESTORER, 0x7f9622f0b530}, 8) = 0</div><div>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0</div>
<div>read(255, "\nif [ `id -u` = 0 ] ; then\n s"..., 498) = 207</div><div>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0</div><div>pipe([3, 4]) = 0</div><div>rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0</div>
<div>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</div><div>rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0</div><div>lseek(255, -1, SEEK_CUR) = 497</div><div>clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f96238a47c0) = 29934</div>
<div>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</div><div>rt_sigaction(SIGCHLD, {0x4431e0, [], SA_RESTORER, 0x7f9622f0b530}, {0x4431e0, [], SA_RESTORER, 0x7f9622f0b530}, 8) = 0</div><div>close(4) = 0</div>
<div>read(3, "0\n", 128) = 2</div><div>read(3, "", 128) = 0</div><div>--- SIGCHLD (Child exited) @ 0 (0) ---</div><div>wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 29934</div>
<div>wait4(-1, 0x7fff09bb6e9c, WNOHANG, NULL) = -1 ECHILD (No child processes)</div><div>rt_sigreturn(0xffffffffffffffff) = 0</div><div>close(3) = 0</div><div>rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0</div>
<div>rt_sigaction(SIGINT, {0x441000, [], SA_RESTORER, 0x7f9622f0b530}, {SIG_DFL, [], SA_RESTORER, 0x7f9622f0b530}, 8) = 0</div><div>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</div><div>rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f9622f0b530}, {0x441000, [], SA_RESTORER, 0x7f9622f0b530}, 8) = 0</div>
<div>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0</div><div>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</div><div>stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0</div><div>stat("/usr/local/sbin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or directory)</div>
<div>stat("/usr/local/bin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or directory)</div><div>stat("/usr/sbin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or directory)</div><div>stat("/usr/bin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or directory)</div>
<div>stat("/sbin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or directory)</div><div>stat("/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=36864, ...}) = 0</div><div>stat("/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=36864, ...}) = 0</div>
<div>brk(0x1de7000) = 0x1de7000</div><div>rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0</div><div>rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0</div><div>rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0</div>
<div>clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f96238a47c0) = 29935</div><div>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</div><div>rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0</div>
<div>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</div><div>rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0</div><div>rt_sigaction(SIGINT, {0x441000, [], SA_RESTORER, 0x7f9622f0b530}, {SIG_DFL, [], SA_RESTORER, 0x7f9622f0b530}, 8) = 0</div>
<div>wait4(-1,</div><div>=================PAUSED HERE UNTIL CRASH=======================</div><div><div>{error_logger,{{2010,3,9},{0,32,45}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,etimedout}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}</div>
<div>{error_logger,{{2010,3,9},{0,32,45}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.22.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.97>,<0.19.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,501}],[]]}</div>
<div>{error_logger,{{2010,3,9},{0,32,45}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[rabbit,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}</div>
<div>{error_logger,{{2010,3,9},{0,32,45}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}</div>
<div>{error_logger,{{2010,3,9},{0,32,45}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}</div><div>{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}</div>
<div><br></div><div>Crash dump was written to: erl_crash.dump</div><div>Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})</div><div>[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 29935</div>
<div>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</div><div>--- SIGCHLD (Child exited) @ 0 (0) ---</div><div>wait4(-1, 0x7fff09bb711c, WNOHANG, NULL) = -1 ECHILD (No child processes)</div><div>rt_sigreturn(0xffffffffffffffff) = 0</div>
<div>rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f9622f0b530}, {0x441000, [], SA_RESTORER, 0x7f9622f0b530}, 8) = 0</div><div>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0</div><div>read(255, "\n", 498) = 1</div>
<div>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0</div><div>read(255, "", 498) = 0</div><div>exit_group(1) = ?</div><div><br></div><div>=============== END OF TRACE =========================================================</div>
<div><br></div><div>(Jeremy asked)</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">> You should provide the erlang dependencies here.</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "></span>If I'm reading aptitude correctly, it says that it will pull in "erlang-base 1:13.b.1-dfsg-2ubuntu1" as a dependency.</div>
<div><br></div><div>Is that enough information?</div><div><br></div><div>Cheers,</div><div>Carver</div></div></div></div>