RHEL安装heartbeat报错: heartbeat: udpport setting must precede media statements

简介:

环境如下:

[root@master ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
[root@master ~]# uname -a
Linux master 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@master ~]# 


安装Heartbeat-2.1.3,出现如下错误:


logd is already running
Starting High-Availability services: 
2013/07/15_16:31:45 INFO:  Resource is stopped
2013/07/15_16:31:45 INFO:  Resource is stopped
                                                           [FAILED]
heartbeat: udpport setting must precede media statementsheartbeat[4742]: 2013/07/15_16:31:45 ERROR: Invalid user id name [hacluster]
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Bad uid list [hacluster]
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Invalid apiauth directive [ipfail uid=hacluster]
heartbeat[4742]: 2013/07/15_16:31:45 info: Syntax: apiauth client [uid=uidlist] [gid=gidlist]
heartbeat[4742]: 2013/07/15_16:31:45 info: Where uidlist is a comma-separated list of uids,
heartbeat[4742]: 2013/07/15_16:31:45 info: and gidlist is a comma-separated list of gids
heartbeat[4742]: 2013/07/15_16:31:45 info: One or the other must be specified.
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Invalid user id name [hacluster]
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Bad uid list [hacluster]
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Invalid apiauth directive [ccm uid=hacluster]
heartbeat[4742]: 2013/07/15_16:31:45 info: Syntax: apiauth client [uid=uidlist] [gid=gidlist]
heartbeat[4742]: 2013/07/15_16:31:45 info: Where uidlist is a comma-separated list of uids,
heartbeat[4742]: 2013/07/15_16:31:45 info: and gidlist is a comma-separated list of gids
heartbeat[4742]: 2013/07/15_16:31:45 info: One or the other must be specified.
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Invalid group name [haclient]
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Bad gid list [haclient]
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Invalid apiauth directive [ping gid=haclient]
heartbeat[4742]: 2013/07/15_16:31:45 info: Syntax: apiauth client [uid=uidlist] [gid=gidlist]
heartbeat[4742]: 2013/07/15_16:31:45 info: Where uidlist is a comma-separated list of uids,
heartbeat[4742]: 2013/07/15_16:31:45 info: and gidlist is a comma-separated list of gids
heartbeat[4742]: 2013/07/15_16:31:45 info: One or the other must be specified.
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Invalid group name [haclient]
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Bad gid list [haclient]
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Invalid apiauth directive [anon gid=haclient]
heartbeat[4742]: 2013/07/15_16:31:45 info: Syntax: apiauth client [uid=uidlist] [gid=gidlist]
heartbeat[4742]: 2013/07/15_16:31:45 info: Where uidlist is a comma-separated list of uids,
heartbeat[4742]: 2013/07/15_16:31:45 info: and gidlist is a comma-separated list of gids
heartbeat[4742]: 2013/07/15_16:31:45 info: One or the other must be specified.
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Bad permissions on keyfile [/opt/heartbeat-2.1.3/etc/ha.d/authkeys], 600 recommended.
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Authentication configuration error.
heartbeat[4742]: 2013/07/15_16:31:45 ERROR: Configuration error, heartbeat not started.


看不懂什么意思,然后google查,无功而返,仔细查看原来的安装指导,发现里面有提到authkeys配置文件权限必须为600

灵光一闪:难道是因为这个?但怎么看都不像啊。。。。。。


虽然怀疑,但还是抱着死马当活马医的想法,尝试了一下,oh my god, 果然解决了!

[root@master ha.d]# service heartbeat start       
logd is already running
Starting High-Availability services: 
2013/07/15_16:33:41 INFO:  Resource is stopped
2013/07/15_16:33:41 INFO:  Resource is stopped
                                                           [  OK  ]

至于原因,没有时间详细研究,有兴趣的同学可以试试。



相关文章
|
存储 负载均衡 网络协议
|
域名解析 存储 网络协议
如何在 Linux 中列出 Systemd 下所有正在运行的服务
如何在 Linux 中列出 Systemd 下所有正在运行的服务
|
小程序 前端开发 JavaScript
小程序提交form表单
微信小程序提交form表单内容
148 0
|
存储 弹性计算 Kubernetes
如何在零停机的情况下迁移 Kubernetes 集群
本文将通过集群迁移的需求、场景以及实践方式,介绍如何基于阿里云容器服务 ACK,在零停机的情况下迁移 Kubernetes 集群。
如何在零停机的情况下迁移 Kubernetes 集群
|
canal Kubernetes 安全
使用kubeadm从0到1搭建kubernete集群
使用kubeadm从0到1搭建kubernete集群
615 0
使用kubeadm从0到1搭建kubernete集群
|
缓存 负载均衡 监控
微服务调用 Feign 与负载均衡|学习笔记(三)
快速学习微服务调用 Feign 与负载均衡
微服务调用 Feign 与负载均衡|学习笔记(三)
|
Ubuntu Linux
Ubuntu18.04更换国内源
转载自网络
90650 0