hej,
I couldn't find much about error i have so Im bit frustrated

the bacground is :
Im using centos 6.3 hosted locally on virtualbox, I ve followed
instructions how to install riak from
http://wiki.basho.com/Installing-on-RHEL-and-CentOS.html#From-source
and compiled riak from sources because I use 32bit machine.

I ve also followed instructions how to run cluster on one machine from
dev directory and it worked for me.
on clean system image I ve installed erlang and riak again but this
time I issued make rel command only. I ve installed erlang and riak
using my, no-root user, same as setting dev environment.

I ve followed http://wiki.basho.com/Basic-Cluster-Setup.html
firstly I tried to stop node issuing bin/riak stop and I got
[squid@localhost riak]$ bin/riak stop

=ERROR REPORT==== 22-Sep-2012::11:57:53 ===
Too short cookie stringescript: exception error: no match of right
hand side value
                 {error,
                     {shutdown,
                         {child,undefined,net_sup_dynamic,
                             {erl_distribution,start_link,
                                 [['[email protected]',
                                   longnames]]},
                             permanent,1000,supervisor,
                             [erl_distribution]}}}

anyway I ve updated app.config to my machine ip. (I can connect to
this machine using the ip from utside so I guess this is not a
problem.) I have change vm.args and changes -name to name
[email protected]

now when I try to start riak issuing bin/riak start it tells that
# bin/riak start
Riak failed to start within 15 seconds,
see the output of 'riak console' for more information.
If you want to wait longer, set the environment variable
WAIT_FOR_ERLANG to the number of seconds to wait.

and yes

# bin/riak-admin status
Node is not running!

but greping ps # ps aux | grep riak I got this

myuser     3501  0.0  0.0   2260   384 ?        S    11:30   0:00
/usr/local/riak/riak/erts-5.9.1/bin/epmd -daemon
myuser     3518  0.4  3.2  31672 19736 pts/2    Ssl+ 11:30   0:07
/usr/local/riak/riak/erts-5.9.1/bin/beam -K true -A 64 -W w -- -root
/usr/local/riak/riak -progname riak -- -home /home/myuser -- -boot
/usr/local/riak/riak/releases/1.2.0/riak -embedded -config
/usr/local/riak/riak/etc/app.config -pa ./lib/basho-patches -name
[email protected] -setcookie riak -- console
myuser      5074  0.0  0.0   1996   488 ?        Ss   12:27   0:00
/usr/local/riak/riak/lib/os_mon-2.2.9/priv/bin/memsup
myuser     5075  0.0  0.0   1992   364 ?        Ss   12:27   0:00
/usr/local/riak/riak/lib/os_mon-2.2.9/priv/bin/cpu_sup

in console.log I have found only this
2012-09-22 12:00:01.418 [info] <0.7.0> Application lager started on
node '[email protected]'
2012-09-22 12:00:01.549 [info]
<0.148.0>@riak_core_ring_manager:reload_ring:226 Upgrading legacy ring
2012-09-22 12:00:01.737 [info]
<0.154.0>@riak_core_capability:process_capability_changes:528 New
capability: {riak_core,vnode_routing} = proxy
2012-09-22 12:00:01.748 [info]
<0.154.0>@riak_core_capability:process_capability_changes:528 New
capability: {riak_core,staged_joins} = true
2012-09-22 12:00:01.752 [info] <0.7.0> Application riak_core started
on node '[email protected]'
2012-09-22 12:00:01.815 [info]
<0.263.0>@riak_core:wait_for_application:425 Waiting for application
riak_pipe to start (0 seconds).
2012-09-22 12:00:01.817 [info] <0.7.0> Application riak_pipe started
on node '[email protected]'
2012-09-22 12:00:01.871 [info]
<0.272.0>@riak_core:wait_for_service:445 Waiting for service riak_kv
to start (0 seconds)
2012-09-22 12:00:01.918 [info]
<0.263.0>@riak_core:wait_for_application:419 Wait complete for
application riak_pipe (0 seconds)
2012-09-22 12:00:01.963 [info] <0.284.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_map) host starting (<0.284.0>)
2012-09-22 12:00:01.970 [info] <0.299.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_map) host starting (<0.299.0>)
2012-09-22 12:00:01.982 [info] <0.306.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_map) host starting (<0.306.0>)
2012-09-22 12:00:01.999 [info] <0.333.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_map) host starting (<0.333.0>)
2012-09-22 12:00:02.007 [info] <0.389.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_map) host starting (<0.389.0>)
2012-09-22 12:00:02.020 [info] <0.395.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_map) host starting (<0.395.0>)
2012-09-22 12:00:02.029 [info] <0.418.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_map) host starting (<0.418.0>)
2012-09-22 12:00:02.037 [info] <0.419.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_map) host starting (<0.419.0>)
2012-09-22 12:00:02.053 [info] <0.421.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_reduce) host starting (<0.421.0>)
2012-09-22 12:00:02.070 [info] <0.422.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_reduce) host starting (<0.422.0>)
2012-09-22 12:00:02.082 [info] <0.423.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_reduce) host starting (<0.423.0>)
2012-09-22 12:00:02.093 [info] <0.424.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_reduce) host starting (<0.424.0>)
2012-09-22 12:00:02.106 [info] <0.425.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_reduce) host starting (<0.425.0>)
2012-09-22 12:00:02.119 [info] <0.426.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_reduce) host starting (<0.426.0>)
2012-09-22 12:00:02.130 [info] <0.428.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_hook) host starting (<0.428.0>)
2012-09-22 12:00:02.141 [info] <0.429.0>@riak_kv_js_vm:init:76
Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool:
riak_kv_js_hook) host starting (<0.429.0>)
2012-09-22 12:00:02.258 [info]
<0.154.0>@riak_core_capability:process_capability_changes:528 New
capability: {riak_kv,vnode_vclocks} = true
2012-09-22 12:00:02.277 [info]
<0.154.0>@riak_core_capability:process_capability_changes:528 New
capability: {riak_kv,legacy_keylisting} = false
2012-09-22 12:00:02.303 [info]
<0.154.0>@riak_core_capability:process_capability_changes:528 New
capability: {riak_kv,listkeys_backpressure} = true
2012-09-22 12:00:02.328 [info]
<0.154.0>@riak_core_capability:process_capability_changes:528 New
capability: {riak_kv,mapred_system} = pipe
2012-09-22 12:00:02.351 [info]
<0.154.0>@riak_core_capability:process_capability_changes:528 New
capability: {riak_kv,mapred_2i_pipe} = true
2012-09-22 12:00:02.430 [info]
<0.530.0>@riak_core:wait_for_application:425 Waiting for application
riak_kv to start (0 seconds).
2012-09-22 12:00:02.474 [info] <0.7.0> Application riak_kv started on
node '[email protected]'
2012-09-22 12:00:02.514 [info] <0.7.0> Application merge_index started
on node '[email protected]'
2012-09-22 12:00:02.529 [info] <0.7.0> Application riak_search started
on node '[email protected]'
2012-09-22 12:00:02.544 [info]
<0.530.0>@riak_core:wait_for_application:419 Wait complete for
application riak_kv (0 seconds)
2012-09-22 12:00:02.632 [info] <0.7.0> Application riak_api started on
node '[email protected]'
2012-09-22 12:00:02.660 [info] <0.7.0> Application cluster_info
started on node '[email protected]'
2012-09-22 12:00:02.706 [info] <0.7.0> Application riak_control
started on node '[email protected]'
2012-09-22 12:00:02.707 [info] <0.7.0> Application erlydtl started on
node '[email protected]'
2012-09-22 12:00:03.200 [info]
<0.272.0>@riak_core:wait_for_service:439 Wait complete for service
riak_kv (1 seconds)

and in erlang.log.1

=====
===== LOGGING STARTED Sat Sep 22 11:59:59 CEST 2012
=====
Exec: /usr/local/riak/riak/erts-5.9.1/bin/erlexec -boot
/usr/local/riak/riak/releases/1.2.0/riak             -embedded
                               -config
/usr/local/riak/riak/etc/app.config             -pa
./lib/basho-patches             -args_file /usr/local/riak/
                           riak/etc/vm.args -- console
Root: /usr/local/riak/riak
Erlang R15B01 (erts-5.9.1) [source] [async-threads:64] [hipe] [kernel-poll:true]

** ./lib/basho-patches/etop_txt.beam hides
/usr/local/riak/riak/lib/observer-1.1/ebin/etop_txt.beam
** /usr/local/riak/riak/lib/observer-1.1/ebin/etop_txt.beam hides
/usr/local/riak/riak/lib/basho-patches/etop_txt.beam
** Found 2 name clashes in code paths
12:00:01.418 [info] Application lager started on node '[email protected]'
12:00:01.549 [info] Upgrading legacy ring
12:00:01.737 [info] New capability: {riak_core,vnode_routing} = proxy
12:00:01.748 [info] New capability: {riak_core,staged_joins} = true
12:00:01.752 [info] Application riak_core started on node '[email protected]'
12:00:01.815 [info] Waiting for application riak_pipe to start (0 seconds).
12:00:01.817 [info] Application riak_pipe started on node '[email protected]'
12:00:01.871 [info] Waiting for service riak_kv to start (0 seconds)
12:00:01.918 [info] Wait complete for application riak_pipe (0 seconds)
12:00:01.963 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_map) host starting (<0.284.0>)
12:00:01.970 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_map) host starting (<0.299.0>)
12:00:01.982 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_map) host starting (<0.306.0>)
12:00:01.999 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_map) host starting (<0.333.0>)
12:00:02.007 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_map) host starting (<0.389.0>)
12:00:02.020 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_map) host starting (<0.395.0>)
12:00:02.029 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_map) host starting (<0.418.0>)
12:00:02.037 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_map) host starting (<0.419.0>)
12:00:02.053 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_reduce) host starting (<0.421.0>)
12:00:02.070 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_reduce) host starting (<0.422.0>)
12:00:02.082 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_reduce) host starting (<0.423.0>)
12:00:02.093 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_reduce) host starting (<0.424.0>)
12:00:02.106 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_reduce) host starting (<0.425.0>)
12:00:02.119 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_reduce) host starting (<0.426.0>)
12:00:02.130 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_hook) host starting (<0.428.0>)
12:00:02.141 [info] Spidermonkey VM (thread stack: 16MB, max heap:
8MB, pool: riak_kv_js_hook) host starting (<0.429.0>)
12:00:02.258 [info] New capability: {riak_kv,vnode_vclocks} = true
12:00:02.277 [info] New capability: {riak_kv,legacy_keylisting} = false
12:00:02.303 [info] New capability: {riak_kv,listkeys_backpressure} = true
12:00:02.328 [info] New capability: {riak_kv,mapred_system} = pipe
12:00:02.351 [info] New capability: {riak_kv,mapred_2i_pipe} = true
12:00:02.430 [info] Waiting for application riak_kv to start (0 seconds).
12:00:02.474 [info] Application riak_kv started on node '[email protected]'
12:00:02.514 [info] Application merge_index started on node '[email protected]'
12:00:02.529 [info] Application riak_search started on node '[email protected]'
12:00:02.544 [info] Wait complete for application riak_kv (0 seconds)
12:00:02.632 [info] Application riak_api started on node '[email protected]'
12:00:02.660 [info] Application cluster_info started on node
'[email protected]'
12:00:02.706 [info] Application riak_control started on node
'[email protected]'
12:00:02.707 [info] Application erlydtl started on node '[email protected]'
Eshell V5.9.1  (abort with ^G)

** Found 2 name clashes in code paths is something suspicious but I
cannot find anything on this :/

when I run bin/riak-admin chkconfig it tells me it is ok
when I run bin/riak ping I get again
Too short cookie stringescript: exception error: no match of right
hand side value
                 {error,
                     {shutdown,
                         {child,undefined,net_sup_dynamic,
                             {erl_distribution,start_link,
                                 [['[email protected]',
                                   longnames]]},
                             permanent,1000,supervisor,
                             [erl_distribution]}}}

I tried to run bin/riak console and this time I got
# bin/riak console
Exec: /usr/local/riak/riak/erts-5.9.1/bin/erlexec -boot
/usr/local/riak/riak/releases/1.2.0/riak             -embedded -config
/usr/local/riak/riak/etc/app.config             -pa
./lib/basho-patches             -args_file
/usr/local/riak/riak/etc/vm.args -- console
Root: /usr/local/riak/riak
{error_logger,{{2012,9,22},{12,24,23}},"Protocol: ~p: register error:
~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[{file,"inet_tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"},{line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]},{net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init,1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}]}
{error_logger,{{2012,9,22},{12,24,23}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[#Port<0.229>,<0.17.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,24},{reductions,492}],[]]}
{error_logger,{{2012,9,22},{12,24,23}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[['[email protected]',longnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2012,9,22},{12,24,23}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2012,9,22},{12,24,23}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid 
terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}

and again there is an information that
"inet_tcp",{{badmatch,{error,duplicate_name}} but I cannot figure it
out what is causing the problem

when I killed -9 all process related to riak and start again riak with
bin/riak console then I get the same output that I have in
log/erlang.log.1 with
** Found 2 name clashes in code paths at begining

any idea what I am doing wrong?? maybe this is because of VM??
thanks for any ideas

pozdrawiam
Paweł Kamiński

[email protected]
[email protected]
______________________

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to