RHEL安裝heartbeat報錯: heartbeat: udpport setting must precede media statements

來源:互聯網
上載者:User

環境如下:

[root@master ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.5 (Tikanga)[root@master ~]# uname -aLinux 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 runningStarting High-Availability services: 2013/07/15_16:31:45 INFO:  Resource is stopped2013/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 gidsheartbeat[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 gidsheartbeat[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 gidsheartbeat[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 gidsheartbeat[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 runningStarting High-Availability services: 2013/07/15_16:33:41 INFO:  Resource is stopped2013/07/15_16:33:41 INFO:  Resource is stopped                                                           [  OK  ]

至於原因,沒有時間詳細研究,有興趣的同學可以試試。


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.