On Wed, Mar 17, 2010 at 11:41:48AM -0600, Alex Dean wrote: > I've build heartbeat+pacemaker from source on RHEL5. > glue-1.0.3.tar.bz2 > agents-1.0.2.tar.bz2 > STABLE-3.0.2.tar.bz2 (heartbeat) > Pacemaker-1.0.5.tar.bz2 > > I've added this to /etc/ha.d/ha.cf: > respawn hacluster /usr/lib64/heartbeat/dopd > apiauth dopd gid=haclient uid=hacluster > > When I reload heartbeat, I see the following errors in /var/log/ha-log > > Mar 17 17:25:12 ipsm-1-leads1 heartbeat: [25535]: ERROR: Respawning > client "/usr/lib64/heartbeat/dopd": > Mar 17 17:25:12 ipsm-1-leads1 heartbeat: [25535]: info: Starting > child client "/usr/lib64/heartbeat/dopd" (102,105) > Mar 17 17:25:13 ipsm-1-leads1 heartbeat: [6918]: info: Starting "/ > usr/lib64/heartbeat/dopd" as uid 102 gid 105 (pid 6918) > Mar 17 17:25:15 ipsm-1-leads1 /usr/lib64/heartbeat/dopd: [6918]: > ERROR: socket_wait_conn_new: trying to create in /usr/var/run/ > heartbeat/outdater bind:: Permission denied
Why would it do that in /usr/var/run* ? it should try in /var/run/* also, please see http://hg.linux-ha.org/heartbeat-STABLE_3_0/ where you'll notice that we fixed the permission problem (and relocated the dopd socket directory again) with changeset dopd: changed socket location again to its own subdirectory and the init script currently in mercurial (with changeset heartbeat init script: fix permissions of existing /var/run/* dirs) is supposed to re-create and fix permissions of all the various relevant */var/run/* directories, just in case. Not only because of dopd, but also to make sure the sockets (especially the cib) are not accessible by "everyone", and because /var/run may be a tmpfs, so may be empty after reboot. > If I 'chown hacluster:haclient /usr/var/run/heartbeat', dopd starts > without errors. The directory was formerly owned by root:root. > > Should this be done by the heartbeat 'make install'? I'm I > unknowingly breaking something else by changing the ownership on > this directory? Nope. But you probably should rather use http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/tip.tar.bz2 which as the time of writing is Heartbeat-3-0-2fef843bab53.tar.bz2 Thanks, -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
