【问题标题】:riak startup issueriak 启动问题
【发布时间】:2012-01-12 02:19:11
【问题描述】:

我正在尝试使用他们非常基本的 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 重试,它按预期工作。

【问题讨论】:

  • 您是如何安装 erlang 的,您使用的是什么 Linux 发行版?问题在于 erlang 安装有些棘手,因为它无法找到/加载其核心模块。你能用erl 启动erlang shell 吗?
  • 我在 Ubuntu 11.04 上,系统范围的“erl”和“erts-VSN/bin/erl”都对我同样有效Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.8.4 (abort with ^G) 1>
  • 很高兴你能成功。如果您对 Riak 有任何疑问,请随时通过邮件列表与我们联系 - lists.basho.com/mailman/listinfo/riak-users_lists.basho.com 或 IRC 上的#riak
  • 感谢 brian,我在基于 xmpp 的应用程序中广泛使用 riak。我刚刚切换到 riak 并享受它。我一定会赶上 riak 邮件列表和 irc 频道。

标签: ubuntu erlang riak


【解决方案1】:

正如 Brian 所说,确保您系统上安装的 Erlang 版本与您安装的 Riak 版本兼容。 Riak 没有使用最新最好的 Erlang 版本,这会导致问题。

【讨论】:

  • 根据 riak wiki,我的印象是我需要 R14B0[2,3] 来构建 riak。我最初有 R14B04,我已经降级到 R14B03 仅用于 riak。
【解决方案2】:

我相信首先你需要看看 erl_crash.dump

你可以在erl_crash.dump中找到崩溃的原因——它以“Slogan:”开头的字符串

【讨论】:

  • 我有 riak-1.0.2.zip,我是从 github 标签列表下载的。此外,最初我有 R14B04,我已经为 riak 降级到 R14B03,但是我得到一个 erl_crash.dump,开头几行为=erl_crash_dump:0.1 Tue Jan 10 12:13:10 2012 Slogan: The code server called the unloaded module `erlang' System version: Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:64] [hipe] [kernel-poll:true] Compiled: Tue Jan 10 08:54:17 2012 Taints: Atoms: 10298
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-11-02
  • 2015-10-21
  • 1970-01-01
  • 2015-12-25
  • 2016-07-24
  • 1970-01-01
相关资源
最近更新 更多