更改 IP 后 RIAK 节点不启动

Posted

技术标签:

【中文标题】更改 IP 后 RIAK 节点不启动【英文标题】:RIAK Node does not Start after changing IP 【发布时间】:2020-04-21 13:57:26 【问题描述】:

我正在 Raspberry Pi 上设置 Riak 集群。 不幸的是,我在更改 IP 地址后收到以下错误消息。 我使用的版本: Debian Jessie (树莓派) riak (Github Clone Mar2017) riak-cs2.1.1 stanchion-2.1.1

使用本指南,我尝试更改各种 .conf 文件中的 IP 地址。 https://docs.riak.com/riak/kv/latest/using/cluster-operations/changing-cluster-info/index.html

Works on 127.0.0.1:

$ ~/riak/rel/riak/bin/riak-admin test
Successfully completed 1 read/write cycle to 'riak@127.0.0.1'


Error Message (after changing IP:192.168.178.61):

sudo ./riak console
config is OK
-config /home/pi/neu/riak/rel/riak/data/generated.configs/app.2020.01.02.23.37.52.config -args_file /home/pi/neu/riak/rel/riak/data/generated.configs/vm.2020.01.02.23.37.52.args -vm_args /home/pi/neu/riak/rel/riak/data/generated.configs/vm.2020.01.02.23.37.52.args
Exec:  /home/pi/neu/riak/rel/riak/bin/../erts-5.10.3/bin/erlexec -boot /home/pi/neu/riak/rel/riak/bin/../releases/2.2.3/riak               -config /home/pi/neu/riak/rel/riak/data/generated.configs/app.2020.01.02.23.37.52.config -args_file /home/pi/neu/riak/rel/riak/data/generated.configs/vm.2020.01.02.23.37.52.args -vm_args /home/pi/neu/riak/rel/riak/data/generated.configs/vm.2020.01.02.23.37.52.args              -pa /home/pi/neu/riak/rel/riak/bin/../lib/basho-patches -- console
Root: /home/pi/neu/riak/rel/riak/bin/..
Erlang R16B02_basho10 (erts-5.10.3) [source] [smp:4:4] [async-threads:64] [hipe] [kernel-poll:true] [frame-pointer]

[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
"Kernel pid terminated",application_controller,"application_start_failure,riak_core,bad_return,riak_core_app,start,[normal,[]],'EXIT',function_clause,[orddict,fetch,['riak@192.168.178.61',[]],[file,\"orddict.erl\",line,72],riak_core_capability,renegotiate_capabilities,1,[file,\"src/riak_core_capability.erl\",line,441],riak_core_capability,handle_call,3,[file,\"src/riak_core_capability.erl\",line,213],gen_server,handle_msg,5,[file,\"gen_server.erl\",line,585],proc_lib,init_p_do_apply,3,[file,\"proc_lib.erl\",line,239]],gen_server,call,[riak_core_capability,register,riak_core,vnode_routing,capability,[proxy,legacy],legacy,riak_core,legacy_vnode_routing,[true,legacy,false,proxy],infinity]"

Crash dump was written to: ./log/erl_crash.dump
Kernel pid terminated (application_controller) (application_start_failure,riak_core,bad_return,riak_core_app,start,[normal,[]],'EXIT',function_clause,[orddict,fetch,['riak@192.168.178.61',[

【问题讨论】:

【参考方案1】:

https://github.com/basho/riak/issues/999

martinsumner 3 天前发表评论:

如果您没有完成重命名(或删除)环目录的步骤,我可能希望看到这个。这是你做的吗?

您还可以确认您是在单节点还是多节点重命名场景中?

Ei3rb0mb3r 1 分钟前评论:

非常感谢您的快速反馈! 删除 ring 目录文件后,错误已解决。

   ../riak/rel/riak/data/ring/ rm -rf *

【讨论】:

以上是关于更改 IP 后 RIAK 节点不启动的主要内容,如果未能解决你的问题,请参考以下文章

WebStorm,使用 Node Supervisor(所以每次代码更改后不必重新启动)?

k8s一节点ip无故反复断连接

HAC 集群更改 IP(单节点更改全部节点更改)

HAC集群更改IP(单节点更改全部节点更改)

HAC集群更改IP(单节点更改全部节点更改)

一个master一个node查看node节点是ip