riak启动问题
我正在尝试使用他们非常基本的 45 分钟教程来设置 riak 3 节点集群,但是我的第一个节点总是无法启动,并在 erlang.log.1 中出现以下错误:
=====
===== LOGGING STARTED Tue Jan 10 12:13:08 EST 2012
=====
Exec: /root/packages/basho-riak-782cc74/dev/dev1/erts-5.8.4/bin/erlexec -boot /root/packages/basho-riak-782cc74/dev/dev1/releases/1.0.2/riak -embedded -config /root/packages/basho-riak-782cc74/dev/dev1/etc/app.config -args_file /root/packages/basho-riak-782cc74/dev/dev1/etc/vm.args -- console
Root: /root/packages/basho-riak-782cc74/dev/dev1
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:64] [hipe] [kernel-poll:true]
Crash dump was written to: log/erl_crash.dump
The code server called the unloaded module `erlang'
这是我设置时遵循的链接: http://wiki.basho.com/Building-a-Development-Environment.html
我什至尝试了 make rel
选项,但出现了同样的错误。
# uname -a
Linux li110-56 3.0.4-x86_64-linode21 #1 SMP Thu Sep 1 21:28:01 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
日志目录不包含任何 error.log :
root@li110-56:~/packages/basho-riak-782cc74/rel/riak# ls -l log/
total 648
-rw-r--r-- 1 root root 645 2012-01-10 12:21 erlang.log.1
-rw-r----- 1 root root 651183 2012-01-10 12:22 erl_crash.dump
-rw-r--r-- 1 root root 292 2012-01-10 12:21 run_erl.log
注意:它正常工作,可能是由于从 R14B04 降级到 R14B03 时留下重复项而导致的错误。我通过完全删除 /usr/lib/erlang 进行重试,它按预期工作。
I am trying to setup riak 3 node cluster using their very basic 45 minute tutorial, however my first node always fail to start with following error inside erlang.log.1:
=====
===== LOGGING STARTED Tue Jan 10 12:13:08 EST 2012
=====
Exec: /root/packages/basho-riak-782cc74/dev/dev1/erts-5.8.4/bin/erlexec -boot /root/packages/basho-riak-782cc74/dev/dev1/releases/1.0.2/riak -embedded -config /root/packages/basho-riak-782cc74/dev/dev1/etc/app.config -args_file /root/packages/basho-riak-782cc74/dev/dev1/etc/vm.args -- console
Root: /root/packages/basho-riak-782cc74/dev/dev1
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:64] [hipe] [kernel-poll:true]
Crash dump was written to: log/erl_crash.dump
The code server called the unloaded module `erlang'
Here is the link i am following for my setup:
http://wiki.basho.com/Building-a-Development-Environment.html
I even tried make rel
option but with same error.
# uname -a
Linux li110-56 3.0.4-x86_64-linode21 #1 SMP Thu Sep 1 21:28:01 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
Log directory doesn't contain any error.log :
root@li110-56:~/packages/basho-riak-782cc74/rel/riak# ls -l log/
total 648
-rw-r--r-- 1 root root 645 2012-01-10 12:21 erlang.log.1
-rw-r----- 1 root root 651183 2012-01-10 12:22 erl_crash.dump
-rw-r--r-- 1 root root 292 2012-01-10 12:21 run_erl.log
Note: Got it working, probably was an error because of duplicates left while downgrading from R14B04 to R14B03. I retried by completely removing /usr/lib/erlang and it worked as expected.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如 Brian 所说,确保您系统上安装的 Erlang 版本与您安装的 Riak 版本兼容。 Riak 没有使用最新、最好的 Erlang 版本,这会导致问题。
As Brian said, make sure that the version of Erlang installed on your system is compatible with the version of Riak you installed. Riak isn't using the latest and greatest Erlang build and it will cause problems.
我相信首先你需要查看 erl_crash.dump
你可以找到崩溃的原因 - 它在 erl_crash.dump 中以“Slogan:”开头的字符串
I believe first of all you need to look at erl_crash.dump
You can find the cause of crashing - its string that starts with "Slogan:" in the erl_crash.dump