Hi. Am 15.02.2018 um 16:24 schrieb Irfan Sayed: > Thanks Aleks for all your help. > Let me try to help you with the answers for all your questions: > > 1: This error is actually coming from haproxy and NOT FROM spring boot > candidate service. there is no any java exception while running the > candidate service > > 2: out put for command : curl -v --max-time 5 127.0.0.1:8099 > <http://127.0.0.1:8099>
[snipp] thanks > 3: output for command : haproxy -vv > > [root@ip-172-31-25-224 ~]# haproxy -vv > HA-Proxy version 1.5.18 2016/05/10 > Copyright 2000-2016 Willy Tarreau <[email protected] > <mailto:[email protected]>> [snipp] thanks Looks like you use centos or rhel? Have you tried this > > chroot /var/lib/haproxy > > Do you have also the error When you comment this in? > Just a test. what's the output of ls -lR /var/lib/haproxy is there a `/var/run/` dir But layer4 shows something with selinux. Do you have selinux activated? Is haproxy allowed to do his work from selinux point of view? > Please suggest > Regards, > Irfan Regards Aleks > On Thu, Feb 15, 2018 at 3:17 PM, Aleksandar Lazic <[email protected] > <mailto:[email protected]>> wrote: > > Hi Ifran. > Am 15.02.2018 um 14:17 schrieb Irfan Sayed: > > Hello, > > I m newbie to the HAproxy and trying to set that as API gateway for the > > micro-services. > > following is the haproxy.cfg > > > > ################################## > > > > global > > log 127.0.0.1 local2 > > chroot /var/lib/haproxy > > Do you have also the error When you comment this in? > Just a test. > > > pidfile /var/run/haproxy.pid > > maxconn 4000 > > user root > > group root > > daemon > > [snipp] > > > haproxy service is up and running. however, fronend is not able to > > communicate with backend candidate service ... in the haproxy stats , it > > says following error : > > > > _ > > Layer4 connection problem: General socket error (Permission denied) > > _ > > This is the error from haproxy or from spring boot? > Please can you also show us the output of haproxy -vv , thanks, > > > Indeed the candidate is a springboot micro-service and is running on > > tomcat port 8099 , but still front end and backend communication is not > > happening . i m not sure , whetaher the haproxy configuration is the > > problem OR anywhere else ... > > > > please help. i m stuck up like anything > > What's the output of > > curl -v --max-time 5 127.0.0.1:8099 <http://127.0.0.1:8099> > > > Regards, > > irfan > > Regards > Aleks > >

