Jetpack returning bad 302 HTTP format to varnish
-
I’m currently trying to resolve an issue specific to varnish and jetpack. When clicking on Authorize jetpack after enabling the plugin and being sent back to our site, varnish will present a 503 Guru mediation error. An example string looks like this..
If the page is reloaded with the same url the site will return as it should, and display “Your JetPack is already connected.” The initial 302 redirect is malformed and varnish won’t display it.
Some info from varnish.. note varnish is simply passing the request. If I take varnish out it simply works since the browser will display the malformed 302 and redirect.
12 RxRequest c GET 12 RxURL c /someblog/wp-admin/admin.php?page=jetpack&action=authorize&_wpnonce=cec3b377a1&code=83VksrsrRa&state=2 12 RxProtocol c HTTP/1.1 12 RxHeader c Host: somesite.psu.edu 12 RxHeader c User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/20100101 Firefox/18.0 12 RxHeader c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 12 RxHeader c Accept-Language: en-US,en;q=0.5 12 RxHeader c Accept-Encoding: gzip, deflate 12 RxHeader c Cookie: __utma=165035810.2146825052.1359667423.1359667423.1359667423.1; __utmb=165035810.13.10.1359667423; __utmc=165035810; __utmz=165035810.1359667423.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); bp-activity-oldestpage=1; __qca=P0-1744595654-13596 12 RxHeader c Connection: keep-alive 12 RxHeader c X-Forwarded-For: 128.118.1.123 12 VCL_call c recv pass 12 VCL_call c hash 12 Hash c /someblog/wp-admin/admin.php?page=jetpack&action=authorize&_wpnonce=cec3b377a1&code=83VksrsrRa&state=2 12 Hash c somesite.psu.edu 12 VCL_return c hash 12 VCL_call c pass pass 12 Backend c 20 default_director web1 12 FetchError c http format error 12 VCL_call c error deliver 12 VCL_call c deliver deliver 12 TxProtocol c HTTP/1.1 12 TxStatus c 503 12 TxResponse c Service Unavailable 12 TxHeader c Server: Varnish 12 TxHeader c Content-Type: text/html; charset=utf-8 12 TxHeader c Retry-After: 5 12 TxHeader c Content-Length: 418 12 TxHeader c Accept-Ranges: bytes 12 TxHeader c Date: Thu, 31 Jan 2013 21:26:07 GMT 12 TxHeader c Age: 3 12 TxHeader c Connection: close 12 TxHeader c X-Cache: MISS 12 Length c 418 12 ReqEnd c 812364436 1359667565.384453297 1359667567.905995607 0.000034332 2.521497965 0.000044346
I have ruled out the varnish config, timeouts, load, ssl, and other factors. I have recreated the problem on two separate multisite installs.
- The topic ‘Jetpack returning bad 302 HTTP format to varnish’ is closed to new replies.