启动时rabbitmq错误
这是我的设置。
操作系统:2.6.35-28-generic-pae #50-Ubuntu SMP 3 月 18 日星期五 20:43:15 UTC 2011 i686 GNU/Linux
埃兰特 OTP:R14B03
RabbitMQ :rabbitmq-server-2.4.1(使用 R14B03 从源代码构建,使用“make USE_SPECS = false”来修复构建时弹出的问题。
构建正常。
当我启动服务器时 ./rabbitmq-server 启动,出现以下错误。
错误:生成启动脚本文件
/export/workdir/data/rabbitmq/mnesia/rabbit@MyHostname-plugins-expand/rabbit.script 失败:
{'退出',{{badmatch,{erl_prim_loader,错误}},
[{xref_utils,find_beam,1},
{xref_base,'-make_libs/5-fun-0-',2},
{列表,foldl,3},
{xref_base,make_libs,5},
{xref_base,do_set_up,1},
{xref_base,do_set_up,2},
{xref_base,q,3},
{xref,handle_call,3}]}}
任何线索,我更喜欢使用最新版本的兔子并自己构建它,而不是使用旧版本。
谢谢
This is my setup.
OS: 2.6.35-28-generic-pae #50-Ubuntu SMP Fri Mar 18 20:43:15 UTC 2011 i686 GNU/Linux
Erlant OTP : R14B03
RabbitMQ : rabbitmq-server-2.4.1 (built from source using R14B03, used "make USE_SPECS=false" to fix a issue that was poppoing while build.
build goes fine.
when I start server
./rabbitmq-server start, I get following error.
ERROR: generation of boot script file
/export/workdir/data/rabbitmq/mnesia/rabbit@MyHostname-plugins-expand/rabbit.script failed:
{'EXIT',{{badmatch,{erl_prim_loader,error}},
[{xref_utils,find_beam,1},
{xref_base,'-make_libs/5-fun-0-',2},
{lists,foldl,3},
{xref_base,make_libs,5},
{xref_base,do_set_up,1},
{xref_base,do_set_up,2},
{xref_base,q,3},
{xref,handle_call,3}]}}
Any clues, I prefer to use latest version of rabbit and build it myself rather then going to older versions.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是一个回溯。如果你阅读了 Erlang 教程,那将解释如何阅读它。
在我看来,这就像配置文件中的印刷错误。检查您所做的所有配置文件条目,特别是与插件相关的条目。
如果您根本没有设置任何插件,那么我建议下载用于使rabbitmq管理工作的插件集合,并进行配置。如今,安装 RabbitMQ 时完全不安装任何插件已经很不寻常了。
That is a traceback. If you read and Erlang tutorial, that will explain how to read it.
That sounds to me like a typographical error in a config file. Go over any config file entries that you made, particularly related to plugins.
If you didn't set up any plugins at all, then I suggest downloading the collection of plugins used to make rabbitmq-management work, and configure that. These days it is unusual to have a RabbitMQ install with no plugins at all.
刚刚注意到你在 Ubuntu 上。我最近在 Ubuntu 上构建了 RabbitMQ 2.4.1,但无法使用 Erlang 14B03(我也构建了)成功构建。所以我构建了 Erlang 14B02 并用它来构建 RabbitMQ,没有任何问题。然后,我用 14B03 替换了 Erlang 来运行 RabbitMQ,再次没有问题。
我没有使用 Ubuntu 目录布局或 shell 脚本,只是修改了标准 RabbitMQ 脚本以从我安装的目录运行 Rabbit。
在执行
make install
之前需要定义一些环境变量导出 TARGET_DIR=/opt/rabbitmq
导出 SBIN_DIR=/opt/rabbitmq/sbin
导出 MAN_DIR=/opt/rabbitmq/man
Just noticed that you are on Ubuntu. I recently built RabbitMQ 2.4.1 on Ubuntu and was unable to get a successful build with Erlang 14B03 (which I also built). So I built Erlang 14B02 and used that to build RabbitMQ with no issues at all. Then, I replaced the Erlang with 14B03 to run RabbitMQ and again, no issues.
I didn't use the Ubuntu directory layout or shell scripts, just hacked the standard RabbitMQ scripts to run Rabbit from the directory in which I installed it.
You need to define some environment variables before doing
make install
export TARGET_DIR=/opt/rabbitmq
export SBIN_DIR=/opt/rabbitmq/sbin
export MAN_DIR=/opt/rabbitmq/man
我在 OS X 中运行时遇到此错误。对我来说,问题是我的用户帐户没有创建启动脚本文件的权限。使用 sudo 启动rabbit服务器解决了这个问题。
I got this error running in OS X. The issue for me was that my user account did not have permissions to create the the boot script file. Starting the rabbit server using sudo solved the problem.