0

Newbie trying to find my feet We are setting up a HAProxy setup with Heartbeat providing high availability. When the heartbeat service is started it enters the starting process but appends a#015 to the end of the ip address to be used as the floating address, making it an invalid address and failing its setup. All files ( hosts,hostname, ha.cf,ha resources) and all permissions good ( we have a working system on another site that I can compare with.) a manual start of IPaddr mounts the drive without the appended #015. Any ideas where it is getting this spurious entry?

enter image description here

mpboden
  • 3,134
  • 4
    Octal 015 is the carriage return character - did you edit a configuration file using a text editor that adds Windows line endings? – steeldriver Jun 10 '25 at 17:38
  • Ah, quite possibly. I will go through and edit via command line and see if it helps. Would this be the haresources file? thankyou – Martin O'Neill Jun 10 '25 at 18:20
  • Sorry no idea which file(s) to check - I'm not familiar with haproxy configuration. However the file command will tell you if a file has LF or CRLF endings – steeldriver Jun 10 '25 at 18:44
  • ... so you could do a quick check with something like find /etc/ha.d/ -type f -exec file {} + – steeldriver Jun 10 '25 at 18:50
  • And then convert that file with the https://manpages.ubuntu.com/manpages/man1/dos2unix.1.html command. – FedKad Jun 11 '25 at 06:29
  • I deleted the haresource file and recreated it in Ubuntu and has now removed the appendage! Appreciate the steer and a lesson learned! Thanks – Martin O'Neill Jun 11 '25 at 07:36

0 Answers0