RabbitMQ不是以Ubuntu 18.04上的消息“init终止于do_boot,noproc”开头的
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RabbitMQ不是以Ubuntu 18.04上的消息“init终止于do_boot,noproc”开头的相关的知识,希望对你有一定的参考价值。
我似乎无法再为我的Ubuntu 18.04启动或安装我的RabbitMQ服务器了。我尝试再次删除并安装它,但由于配置失败,无法完成安装。当我尝试运行sudo apt-get install --fix-broken
。这是它失败的结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up rabbitmq-server (3.6.10-1) ...
Job for rabbitmq-server.service failed because the control process exited with error code.
See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
● rabbitmq-server.service - RabbitMQ Messaging Server
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-08-22 09:16:51 EEST; 5ms ago
Process: 20997 ExecStartPost=/usr/lib/rabbitmq/bin/rabbitmq-server-wait (code=exited, status=70)
Process: 20996 ExecStart=/usr/sbin/rabbitmq-server (code=exited, status=0/SUCCESS)
Main PID: 20996 (code=exited, status=0/SUCCESS)
elo 22 09:16:48 ubuntu-dev systemd[1]: Starting RabbitMQ Messaging Server...
elo 22 09:16:49 ubuntu-dev rabbitmq[20997]: Waiting for 'rabbit@ubuntu-dev'
elo 22 09:16:49 ubuntu-dev rabbitmq[20997]: pid is 21001
elo 22 09:16:51 ubuntu-dev rabbitmq[20997]: Error: process_not_running
elo 22 09:16:51 ubuntu-dev systemd[1]: rabbitmq-server.service: Control process exited, code=exited status=70
elo 22 09:16:51 ubuntu-dev systemd[1]: rabbitmq-server.service: Failed with result 'exit-code'.
elo 22 09:16:51 ubuntu-dev systemd[1]: Failed to start RabbitMQ Messaging Server.
dpkg: error processing package rabbitmq-server (--configure):
installed rabbitmq-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
然后,在检查日志文件时,它们也不会提供更多信息。这是startup_err日志文件内容:
init terminating in do_boot (noproc)
Crash dump is being written to: erl_crash.dump...done'
这里是startup_log文件内容:
BOOT FAILED
===========
Error description:
noproc
Log files (may contain more information):
/var/log/rabbitmq/rabbit.log
/var/log/rabbitmq/rabbit-sasl.log
Stack trace:
[{gen,do_for_proc,2,[{file,"gen.erl"},{line,228}]},
{gen_event,rpc,2,[{file,"gen_event.erl"},{line,239}]},
{rabbit,ensure_working_log_handlers,0,
[{file,"src/rabbit.erl"},{line,842}]},
{rabbit,'-boot/0-fun-0-',0,[{file,"src/rabbit.erl"},{line,281}]},
{rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,417}]},
{init,start_em,1,[]},
{init,do_boot,3,[]}]
=INFO REPORT==== 22-Aug-2018::09:16:49.691453 ===
Error description:
noproc
Log files (may contain more information):
/var/log/rabbitmq/rabbit.log
/var/log/rabbitmq/rabbit-sasl.log
Stack trace:
[{gen,do_for_proc,2,[{file,"gen.erl"},{line,228}]},
{gen_event,rpc,2,[{file,"gen_event.erl"},{line,239}]},
{rabbit,ensure_working_log_handlers,0,
[{file,"src/rabbit.erl"},{line,842}]},
{rabbit,'-boot/0-fun-0-',0,[{file,"src/rabbit.erl"},{line,281}]},
{rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,417}]},
{init,start_em,1,[]},
{init,do_boot,3,[]}]
{"init terminating in do_boot",noproc}
它声称用于记录的其他日志文件为空。例如日志文件rabbit@ubuntu-dev.log
和rabbit@ubuntu-dev-sasl.log
。
我还找到了this帖子,它解释了在/ etc / hostname文件中检查你的主机名但是我检查了它是正确的。
kazhu@ubuntu-dev:/var/log/rabbitmq$ cat /etc/hostname
ubuntu-dev
我还检查了RabbitMQ疑难解答指南,他们说检查日志文件夹权限,他们是我的眼睛:
kazhu@ubuntu-dev:/var/log/rabbitmq$ ll
total 48
drwxr-xr-x 2 rabbitmq rabbitmq 4096 kesä 14 06:16 ./
drwxrwxr-x 16 root syslog 4096 elo 22 00:09 ../
-rw-r--r-- 1 rabbitmq rabbitmq 0 kesä 14 06:16 'rabbit@ubuntu-dev.log'
-rw-r--r-- 1 rabbitmq rabbitmq 5247 kesä 14 06:16 'rabbit@ubuntu-dev.log.1'
-rw-r--r-- 1 rabbitmq rabbitmq 954 touko 28 08:36 'rabbit@ubuntu-dev.log.2.gz'
-rw-r--r-- 1 rabbitmq rabbitmq 768 touko 21 07:11 'rabbit@ubuntu-dev.log.3.gz'
-rw-r--r-- 1 rabbitmq rabbitmq 708 touko 16 00:12 'rabbit@ubuntu-dev.log.4.gz'
-rw-r--r-- 1 rabbitmq rabbitmq 955 touko 7 07:26 'rabbit@ubuntu-dev.log.5.gz'
-rw-r--r-- 1 rabbitmq rabbitmq 4264 huhti 22 00:07 'rabbit@ubuntu-dev.log.6.gz'
-rw-r--r-- 1 rabbitmq rabbitmq 0 huhti 17 15:58 'rabbit@ubuntu-dev-sasl.log'
-rw-r--r-- 1 rabbitmq rabbitmq 95 elo 22 09:16 startup_err
-rw-r--r-- 1 rabbitmq rabbitmq 1212 elo 22 09:16 startup_log
指南还指出perl chrash转储文件包含问题的详细信息,并且需要Erlang专业知识,这是我没有的。因此决定将upload文件发送到我的Dropbox供你查看。
有人可以帮我解决这个问题吗?我已经尝试了一段时间但是放弃了,因为无法弄清楚问题似乎是:/
我在同事的帮助下解决了这个问题。我分别从外部apt源安装了最新的erlang和rabbitmq。现在当我删除并清除与rabbitmq和erlang相关的所有内容时,也删除了添加的apt源代码。然后我就跑了sudo apt install rabbitmq-server
,因为依赖性,它也想安装erlang包。并且安装完毕,之后一切正常。
如果其他人遇到与我相同的问题,想要分享这个解决方案。
以上是关于RabbitMQ不是以Ubuntu 18.04上的消息“init终止于do_boot,noproc”开头的的主要内容,如果未能解决你的问题,请参考以下文章
为什么RabbitMQ + Ubuntu 18.04(全新安装)在重启后松动所有用户/数据?
虚拟机Ubuntu 18.04安装RabbitMQ 3.7.9
Ubuntu Server 18.04 与 RabbitMQ 3.6.x
Ubuntu Server 18.04 与 RabbitMQ 3.6.x
在 Ubuntu 18.04 上,RabbitMQ 未以消息“init terminating in do_boot,noproc”开头