[rabbitmq-discuss] Having trouble installing on Ubuntu
Jason Carver
jason.carver at gmail.com
Tue Mar 9 05:51:35 GMT 2010
Matthias, Matthew and Jeremy,
> strace'ing sounds like an excellent plan.
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:
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
Then a `sudo strace rabbitmq-server` to start the trace.
Here are the results from strace:
wait4(-1, 0x7fff09bb6e5c, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff) = 0
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x441000, [], SA_RESTORER, 0x7f9622f0b530}, {SIG_DFL,
[], SA_RESTORER, 0x7f9622f0b530}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f9622f0b530}, {0x441000,
[], SA_RESTORER, 0x7f9622f0b530}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\nif [ `id -u` = 0 ] ; then\n s"..., 498) = 207
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
lseek(255, -1, SEEK_CUR) = 497
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f96238a47c0) = 29934
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x4431e0, [], SA_RESTORER, 0x7f9622f0b530},
{0x4431e0, [], SA_RESTORER, 0x7f9622f0b530}, 8) = 0
close(4) = 0
read(3, "0\n", 128) = 2
read(3, "", 128) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 29934
wait4(-1, 0x7fff09bb6e9c, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff) = 0
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x441000, [], SA_RESTORER, 0x7f9622f0b530}, {SIG_DFL,
[], SA_RESTORER, 0x7f9622f0b530}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f9622f0b530}, {0x441000,
[], SA_RESTORER, 0x7f9622f0b530}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/sbin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or
directory)
stat("/usr/local/bin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or
directory)
stat("/usr/sbin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or
directory)
stat("/usr/bin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or
directory)
stat("/sbin/su", 0x7fff09bb7470) = -1 ENOENT (No such file or
directory)
stat("/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=36864, ...}) = 0
stat("/bin/su", {st_mode=S_IFREG|S_ISUID|0755, st_size=36864, ...}) = 0
brk(0x1de7000) = 0x1de7000
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f96238a47c0) = 29935
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x441000, [], SA_RESTORER, 0x7f9622f0b530}, {SIG_DFL,
[], SA_RESTORER, 0x7f9622f0b530}, 8) = 0
wait4(-1,
=================PAUSED HERE UNTIL CRASH=======================
{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}]}]}
{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}],[]]}
{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}]}]}
{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}]}]}
{error_logger,{{2010,3,9},{0,32,45}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid
terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller)
({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 29935
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fff09bb711c, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f9622f0b530}, {0x441000,
[], SA_RESTORER, 0x7f9622f0b530}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\n", 498) = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "", 498) = 0
exit_group(1) = ?
=============== END OF TRACE
=========================================================
(Jeremy asked)
> You should provide the erlang dependencies here.
If I'm reading aptitude correctly, it says that it will pull in "erlang-base
1:13.b.1-dfsg-2ubuntu1" as a dependency.
Is that enough information?
Cheers,
Carver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100309/5f27bdab/attachment.htm
More information about the rabbitmq-discuss
mailing list