Install and Configure HaProxy LBR

Even i am facing the same issue ,ha proxy was running .But task is failed .
kindly assist here

@Darshan1893

You configured Haproxy to connect to apps on port 80 but you had to check first which port apps are running on and that should have been used.

Hi.
I configured haproxy to bind to port 80 and to connect to all web servers (after checking the web servers’ listening port) and everything seemed to be working (curl http://localhost:80 worked fine), but the task ended as failed. Unfortunately, the 5 minutes I had at the end to check everything wasn’t enough to debug everything correctly and take prints of what happened.

Any chance to find out what I did wrong?

@bernardo_estevao your answer seems correct so marked Success for you.

Hi

I configured haproxy but when starting with command : haproxy -db -f /etc/haproxy/haproxy.cfg I get an error . Could not bind port 80
In config I have the line
frontend http_front
bind *:80
It seems the port 80 (default http port) is not bindable
Any idea?
Thanks

Exercice marked as failed whereas all worked fine when testing against LBR haproxy with curl http://localhost:80

I installed manually haproxy form the source (v2)
App servers where listening on port 8087 (I did all the check before with netstat)
I configured haproxy.cfg back end servers.

FInally I could run haproxy with sudo haproxy -db -W -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid & because I had some problems wuth the service systemctl.

Couuld you please mark the exercise as success please?

@lbois

Did you fulfill the rest of the requirements as well as per question? Also you were supposed to setup Haproxy using yum only, can you please give it an another try. Its marked as Pending for you.

Team, I am able to access page but my task failed.

@amoel from your original answer it didn’t work for you, not sure how you were able to take the screenshot. Maybe you fixed it after clicking on Finish ?

As per screenshot there seems to be mistakes, the apache port also seems incorrect.
haaa

@Inderpreet , it was fixed before finish. I tried 2-3 times to access webapage and it worked.

@amoel didn’t see that fix in your original answer, ^^ is what in your original answer is.

Thanks. I dit it and I pass

I have a problem with my pending task.
It’s “Install and configure HaProxy” whereas I have already completed the task
Thanks

Please check if this task was assigned to you again, sometimes you can have repeated tasks assigned.

I did it and pass, only thing to change was Haproxy default port to 80

Install and COnfigure HAproxy LBR

I Have completed this task, but then expired while submitting it. Can you please help to check and update my dashboard accordingly.

You gotta figure out what port is your backend app listening at
netstat -anp | grep httpd
you can test
curl -iv 172.16.238.10:XXXX

Hi - I had the same issue. Testing worked fine. Failed the task.
App servers listen on port 6000, and HaProxy on port 80. It’s unclear what I did wrong. My final result was haproxy is not able to connect to App Server 3 on port 6000 for all app servers? Did I perhaps do something wrong in the backend check?

1 Like

Hi

I failed this task, although everything is running ok, error which I get is - - ‘haproxy’ is not able to connect to App Server 1 on port ‘6400’ -, but how you can see in prtsc3 my config in haproxy is correct and curl from stlb01 to stapp01 on port 6400 i retrun output, i check configuration many time on stlb01 and stapp01, but I dont find mistakes, so why this task is failed ?

please check and correct this.

Best Regards
Antonio

1 Like

Hi @antoniopp This is marked Success for you, sorry for inconvenience.

1 Like