===============================================
2017/10/24_第1次修改 ccb_warlock
===============================================
背景:开发人员部署rabbitmq(v3.6.10)时采用的是安装rpm包的方式,但是测试人员提供的部署手册中采取的是编译安装的启动方式。
当时提供的手册,部署rabbitmq的方式如下:
rpm -Uvh http://download.Fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
yum install erlang -y
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-3.6.10-1.el7.noarch.rpm
yum install -y rabbitmq-server-3.6.10-1.el7.noarch.rpm
#启动
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.10/sbin/rabbitmq-server -detached
rpm包通用的服务启动命令:systemctl start rabbitmq-server
rabbitmq编译启动命令:/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.10/sbin/rabbitmq-server -detached
由于园区停电的原因,发现了验证环境的rabbitmq当时配的不是开机启动。
本来想的是/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.10/sbin/rabbitmqctl stop先关闭目前的服务,然后在用systemctl start rabbitmq-server这样来启动,再通过systemctl enable rabbitmq-server来配置开机启动。
结果systemctl start rabbitmq-server启动报错。
查看rabbitmq服务状态
systemctl status rabbitmq-server -l
rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 一 2017-10-23 23:46:05 CST; 10s ago
Process: 26394 ExecStop=/usr/sbin/rabbitmqctl stop (code=exited, status=0/SUCCESS)
Process: 26094 ExecStart=/usr/sbin/rabbitmq-server (code=exited, status=1/FAILURE)
Main PID: 26094 (code=exited, status=1/FAILURE)
Status: "Exited."
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: * epmd reports: node 'rabbit' not running at all
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: no other nodes on localhost
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: * suggestion: start the node
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: current node details:
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: - node name: 'rabbitmq-cli-90@localhost'
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: - home dir: .
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: - cookie hash: 5nJnhEE/zsuKM6LVTCYNGg==
10月 23 23:46:05 localhost.localdomain systemd[1]: Failed to start RabbitMQ broker.
10月 23 23:46:05 localhost.localdomain systemd[1]: Unit rabbitmq-server.service entered failed state.
10月 23 23:46:05 localhost.localdomain systemd[1]: rabbitmq-server.service failed.
接着查看系统日志
journalctl -xe
10月 23 23:46:00 localhost.localdomain rabbitmq-server[26094]: {rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,
10月 23 23:46:00 localhost.localdomain rabbitmq-server[26094]: [{file,"src/rabbit_boot_steps.erl"},{line,26}]}]}}
10月 23 23:46:00 localhost.localdomain rabbitmq-server[26094]: Log files (may contain more information):
10月 23 23:46:00 localhost.localdomain rabbitmq-server[26094]: /var/log/rabbitmq/rabbit@localhost.log
10月 23 23:46:00 localhost.localdomain rabbitmq-server[26094]: /var/log/rabbitmq/rabbit@localhost-sasl.log
10月 23 23:46:01 localhost.localdomain rabbitmq-server[26094]: {"init terminating in do_boot",{could_not_start,rabbit,{{badmatch,{error,{{{badmatch,{error,{"/var/lib/rabbitmq/mnesia/rabbit@localhost/msg_store_transient/0.rdq",eacces}}},[{rabbit_msg_store,init,1,[{file,"src/rabbit_msg_store.erl"},{line,726}]},{gen_server2,init_it,6,[{file,"src/gen_server2.erl"},{line,554}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},{child,undefined,msg_store_transient,{rabbit_msg_store,start_link,[msg_store_transient,"/var/lib/rabbitmq/mnesia/rabbit@localhost",,undefined,{#Fun<rabbit_variable_queue.0.118228399>,ok}]},transient,30000,worker,[rabbit_msg_store]}}}},[{rabbit_variable_queue,start_msg_store,2,[{file,"src/rabbit_variable_queue.erl"},{line,482}]},{rabbit_variable_queue,start,1,[{file,"src/rabbit_variable_queue.erl"},{line,467}]},{rabbit_priority_queue,start,1,[{file,"src/rabbit_priority_queue.erl"},{line,92}]},{rabbit_amqqueue,recover,0,[{file,"src/rabbit_amqqueue.erl"},{line,238}]},{rabbit,recover,0,[{file,"src/rabbit.erl"},{line,799}]},{rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,[{file,"src/rabbit_boot_steps.erl"},{line,49}]},{rabbit_boot_steps,run_step,2,[{file,"src/rabbit_boot_steps.erl"},{line,49}]},{rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,[{file,"src/rabbit_boot_steps.erl"},{line,49}]},{rabbit_boot_steps,run_step,2,[{file,"src/rabbit_boot_steps.erl"},{line,49}]},{rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,[{file,"src/rabbit_boot_steps.erl"},{line,26}]}]}}}
10月 23 23:46:03 localhost.localdomain rabbitmq-server[26094]: Crash dump was written to: erl_crash.dump
10月 23 23:46:03 localhost.localdomain rabbitmq-server[26094]: init terminating in do_boot ()
10月 23 23:46:03 localhost.localdomain systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: Stopping and halting node rabbit@localhost
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: Error: unable to connect to node rabbit@localhost: nodedown
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: DIAGNOSTICS
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: ===========
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: attempted to contact: [rabbit@localhost]
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: rabbit@localhost:
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: * connected to epmd (port 4369) on localhost
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: * epmd reports: node 'rabbit' not running at all
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: no other nodes on localhost
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: * suggestion: start the node
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: current node details:
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: - node name: 'rabbitmq-cli-90@localhost'
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: - home dir: .
10月 23 23:46:05 localhost.localdomain rabbitmqctl[26394]: - cookie hash: 5nJnhEE/zsuKM6LVTCYNGg==
10月 23 23:46:05 localhost.localdomain systemd[1]: Failed to start RabbitMQ broker.
-- Subject: Unit rabbitmq-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rabbitmq-server.service has failed.
--
-- The result is failed.
10月 23 23:46:05 localhost.localdomain systemd[1]: Unit rabbitmq-server.service entered failed state.
10月 23 23:46:05 localhost.localdomain systemd[1]: rabbitmq-server.service failed.
10月 23 23:46:05 localhost.localdomain polkitd[777]: Unregistered Authentication Agent for unix-process:26088:2339220 (system bus name :1.72, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale zh_CN.UTF-8) (disconnected from bus)
lines 1200-1233/1233 (END)
解决方案:
/var/lib/rabbitmq/mnesia 目录下存在rabbit@localhost.pid、rabbit@localhost、rabbit@localhost-plugins-expand,删除这3项后,再使用systemctl start rabbitmq-server启动,发现不报错了。
rabbitmq 启动报错的更多相关文章
-
rabbitmq 启动报错 Failed to get nic info
这个报错 基本搜索不到什么有效信息 解决办法: hostnamectl set-hostname xxx.local # 先把rabbitmq进程杀掉$ ps -ef | grep rabbitmq ...
-
Rabbitmq启动报错
板卡掉电以后发现rabbitmq服务被停了,重启之: root@firefly:/var/lib/rabbitmq/mnesia# cd /usr/lib/rabbitmq/lib/rabbitmq_ ...
-
tomcat启动报错,找不到相应的 queue,从而引发内存泄漏
tomcat启动报错,无法创建 bean listenerStatusChangeDealHandler, no queue 'STOCK.NOTIFY_CHANGE.INTER.CACHE.QUEU ...
-
Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误——SHH框架
SHH框架工程,Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误 1.查看配置文件web.xml中是否配置.or ...
-
【原】tomcat 7 启动报错:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig的解决
现象: tomcat 7 启动报错:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig() ...
-
Oracle启动报错ORA-03113解决
环境:RHEL6.4 + Oracle 11.2.0.4 步骤摘要:1.启动报错ORA-031132.查看alert日志查找原因3.根据实际情况采取合理的措施,这里我们先增加闪回区大小,把库启动起来4 ...
-
Oracle启动报错ORA-27102解决
环境:RHEL5.5 + Oracle 10.2.0.4 此错误一般是因为数据库的初始化参数文件的内存设置不当导致.本例是因为操作系统参数设置问题导致. 当前现象:Oracle启动报错ORA-2710 ...
-
ssh启动报错:org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
ssh项目启动报错: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection t ...
-
SVN 服务启动报错 0x8007042a
服务器环境:Windows Server 2008 R2 企业版,Visual SVNServer 2.6.5 不能签出代码,发现svn服务关闭,手动启动报错: 事件查看器: Error: no li ...
随机推荐
-
Java int to String互转
Integer.toString Integer.parseInt(lAyaNums);
-
unity3d iPhone文件目录介绍
原地址:http://cl314413.blog.163.com/blog/static/190507976201210259126559/ 如何查看iPhone文件存放目录?首先需要越狱,越狱后打开 ...
-
centeros iptable模板文件
iptables规则是空的.而且他们的selinux是关闭了的,这等同于把系统裸奔(总比windows裸奔好). 使用方法: 1.用root用户登录后 vi /etc/sysconfig/ipta ...
-
使用 PHP 读取文本(TXT)文件 并分页显示
<?php //----------------you should save this file as m.php---------------- session_start(); if (e ...
-
Jsunpack
http://www.baidu.com/#wd=jsunpack&rsv_bp=0&tn=baidu&rsv_spt=3&ie=utf-8&rsv_sug3= ...
-
LeetCode---------Add Two Numbers 解法
You are given two non-empty linked lists representing two non-negative integers. The digits are stor ...
-
Linux下的tar压缩解压缩命令详解(转)
tar -c: 建立压缩档案-x:解压-t:查看内容-r:向压缩归档文件末尾追加文件-u:更新原压缩包中的文件 这五个是独立的命令,压缩解压都要用到其中一个,可以和别的命令连用但只能用其中一个.下面的 ...
-
redis5.0.4-cluster集群搭建及jedis客户端操作
一.去官网下载redis5.0 https://redis.io/download 然后解压安装 $ .tar.gz $ cd redis- $ make 二.准备配置文件 打开redis-5.0.4 ...
-
Android底部菜单栏+顶部菜单
底部菜单栏+顶部菜单(wechat)demo http://blog.csdn.net/evankaka/article/details/44121457 底部菜单demo http://blog.c ...
-
require用法及源码解析
一.require()的基本用法 require语句内部逻辑: 当 Node 遇到 require(X) 时,按下面的顺序处理. (1)如果 X 是内置模块(比如 require('http')) ...