Thanks Willy,

I managed to fix the problem with the log. It's due to my entry in /etc/
syslogd.conf. This thread http://www.serverphorums.com/read.php?
10,127228,127867 helped me out :).

Here is the excerpt of my haproxy.log. Hope someone can enlighten me if there's 
anything obvious from this log that can help me to troubleshoot my problem. 
Here's from grep'ing 504:

Jul 13 20:37:57 localhost haproxy[98507]: 213.47.109.71:51261 [13/
Jul/2011:20:37:07.967] webjailfarm webjailfarm/wj01 7/0/0/-1/+50009 504 +194 - 
- sHVN 62/62/52/12/0 0/0 "GET /main.php?location=war HTTP/1.1" 
Jul 13 20:38:08 localhost haproxy[98507]: 213.47.109.71:51265 [13/
Jul/2011:20:37:18.348] webjailfarm webjailfarm/wj01 45/0/0/-1/+50047 504 +194 - 
- sHVN 44/44/37/8/0 0/0 "GET /main.php?location=war HTTP/1.1" 
Jul 13 20:40:10 localhost haproxy[98507]: 2.202.200.168:56122 [13/ 
Jul 13 20:41:25 localhost haproxy[98507]: 188.123.218.31:4180 [13/
Jul/2011:20:40:35.132] webjailfarm webjailfarm/wj08 2/0/0/-1/+50005 504 +194 - 
- sHVN 78/78/61/4/0 0/0 "GET /images/gamefavicons.png HTTP/1.1" 
Jul 13 20:43:36 localhost haproxy[98507]: 217.246.8.81:2284 [13/
Jul/2011:20:42:46.796] webjailfarm webjailfarm/wj05 1/0/0/-1/+50003 504 +194 - 
- sHVN 56/56/46/0/0 0/0 "GET /emptyicon.gif HTTP/1.1" 
Jul 13 20:44:33 localhost haproxy[98507]: 41.141.73.47:2654 [13/
Jul/2011:20:43:43.659] webjailfarm webjailfarm/wj08 21/0/1/-1/+50023 504 +194 - 
- sHVN 175/175/166/18/0 0/0 "GET /getCSS.php?css=
%2Fae1%2F68%2F4885%2E1255006208%2E104491%2Ecss HTTP/1.1" 
Jul 13 20:44:38 localhost haproxy[98507]: 87.160.231.110:4937 [13/
Jul/2011:20:43:48.808] webjailfarm webjailfarm/wj01 16/0/0/-1/+50017 504 +194 - 
- sHVN 166/166/162/27/0 0/0 "GET /main.php?
location=ausbilden&unitid=5&enforcename=yes&traincount=20&dotraining=yes&base
template=0&unitname=Drachenritter 
HTTP/1.1" 
Jul 13 20:44:42 localhost haproxy[98507]: 41.178.69.109:3476 [13/
Jul/2011:20:43:51.877] webjailfarm webjailfarm/wj04 17/0/0/-1/+50308 504 +194 - 
- sHVN 182/182/175/37/0 0/0 "POST /main.php?
location=einheiten&multiple=yes&action=eggsearch&unit=2163081&confirm=yes 
HTTP/1.1" 
Jul 13 20:44:44 localhost haproxy[98507]: 190.165.104.203:1659 [13/
Jul/2011:20:43:54.463] webjailfarm webjailfarm/wj03 16/0/0/-1/+50016 504 +194 - 
- sHVN 195/195/190/47/0 0/0 "GET /main.php HTTP/1.1" 
Jul 13 20:44:44 localhost haproxy[98507]: 178.190.206.19:51649 [13/
Jul/2011:20:43:54.700] webjailfarm webjailfarm/wj01 11/0/0/-1/+50013 504 +194 - 
- sHVN 186/186/182/30/0 0/0 "GET /actions.php?
location=status&action=markstatusread&curtime=1310582637630 HTTP/1.1" 


And some others:

Jul 13 20:38:08 localhost haproxy[98507]: 89.228.101.118:51199 [13/
Jul/2011:20:38:08.893] webjailfarm webjailfarm/wj05 0/0/-1/-1/+1 503 +212 - - 
SCDN 44/44/37/7/+3 0/0 "POST /login.php HTTP/1.1" 

Jul 13 20:38:14 localhost haproxy[98507]: 188.101.27.150:61567 [13/
Jul/2011:20:38:14.883] webjailfarm webjailfarm/wj06 13/0/1/-1/+14 502 +204 - - 
SHVN 53/53/47/7/0 0/0 "GET /js/scriptaculous.js?load=effects,slider HTTP/1.1" 

Jul 13 20:38:18 localhost haproxy[98507]: 89.228.65.164:49289 [13/
Jul/2011:20:38:18.818] webjailfarm webjailfarm/wj06 4/0/0/-1/+5 502 +204 - - 
SHVN 50/50/42/3/0 0/0 "GET /js/slider.js HTTP/1.1" 

Jul 13 20:38:19 localhost haproxy[98507]: 2.11.13.226:2047 [13/
Jul/2011:20:38:19.221] webjailfarm webjailfarm/wj08 8/0/-1/-1/+8 503 +212 - - 
SCDN 51/51/41/6/+3 0/0 "GET /templates/templates/fr/langfile.js HTTP/1.1" 

Jul 13 20:38:29 localhost haproxy[98507]: 217.247.188.220:3081 [13/
Jul/2011:20:38:29.536] webjailfarm webjailfarm/wj05 58/0/0/-1/+58 502 +204 - - 
SHVN 64/64/54/6/0 0/0 "GET /images/de/gbg/cssgroup/standard.css HTTP/1.1"

Jul 13 20:38:31 localhost haproxy[98507]: 89.186.148.213:2198 [13/
Jul/2011:20:38:31.764] webjailfarm webjailfarm/wj07 0/0/0/-1/+0 502 +204 - - 
SHVN 56/56/47/5/0 0/0 "GET /js/scriptaculous.js?load=effects,slider HTTP/1.1"


At the moment we're still having problems with clients receiving 502 and 504 
errors. It was quiet for the first few days after we have tuned the box, but 
since 2 days ago, they're back.


Btw, I tried to run the command echo "show sess" | socat stdio /var/run/haproxy/
haproxy.sock, and some entries show that it's not forwarding to any server 
(none). Is this normal?

[/root] # echo "show sess" | socat stdio /var/run/haproxy/haproxy.sock
0x800fbfc00: proto=tcpv4 src=178.190.178.184:52094 fe=webjailfarm 
be=webjailfarm srv=<none> ts=02 age=46s calls=1 rq
[f=501000h,l=0,an=0eh,rx=3s,wx=,ax=] rp[f=001000h,l=0,an=00h,rx=,wx=,ax=] s0=
[7,18h,fd=55,ex=] s1=[0,0h,fd=-1,ex=] exp=3s

0x800fc2600: proto=tcpv4 src=94.222.121.57:18221 fe=webjailfarm be=webjailfarm 
srv=wj01 ts=08 age=37s calls=6 rq[f=4909000h,l=0,an=00h,rx=13s,wx=,ax=] rp
[f=10b020h,l=0,an=00h,rx=,wx=,ax=] s0=[7,10h,fd=11,ex=] s1=[7,18h,fd=7,ex=] 
exp=13s

0x801a71800: proto=tcpv4 src=178.198.246.35:64612 fe=webjailfarm be=webjailfarm 
srv=<none> ts=02 age=34s calls=1 rq[f=501000h,l=0,an=0eh,rx=16s,wx=,ax=] rp
[f=001000h,l=0,an=00h,rx=,wx=,ax=] s0=[7,18h,fd=44,ex=] s1=[0,0h,fd=-1,ex=] 
exp=16s

0x801517600: proto=tcpv4 src=178.198.246.35:64611 fe=webjailfarm be=webjailfarm 
srv=<none> ts=02 age=34s calls=1 rq[f=501000h,l=0,an=0eh,rx=16s,wx=,ax=] rp
[f=001000h,l=0,an=00h,rx=,wx=,ax=] s0=[7,18h,fd=47,ex=] s1=[0,0h,fd=-1,ex=] 
exp=16s

0x801bbda00: proto=tcpv4 src=46.5.229.14:38401 fe=webjailfarm be=webjailfarm 
srv=<none> ts=02 age=31s calls=1 rq[f=501000h,l=0,an=0eh,rx=18s,wx=,ax=] rp
[f=001000h,l=0,an=00h,rx=,wx=,ax=] s0=[7,18h,fd=65,ex=] s1=[0,0h,fd=-1,ex=] 
exp=18s

0x80166ec00: proto=tcpv4 src=80.51.136.192:61827 fe=webjailfarm be=webjailfarm 
srv=wj02 ts=08 age=22s calls=8 rq[f=4909000h,l=0,an=00h,rx=28s,wx=,ax=] rp
[f=210b020h,l=0,an=00h,rx=,wx=,ax=] s0=[7,10h,fd=24,ex=] s1=[7,18h,fd=25,ex=] 
exp=28s



Thanks.

--





Reply via email to