Open stefols opened 7 years ago
Could this be something?
2017-05-26T13:17:26+00:00 INFO (6): TURPENTINE: Checking ESI block candidate: formkey 2017-05-26T13:17:26+00:00 INFO (6): TURPENTINE: -- block testing: shouldResponseUseEsi = 2017-05-26T13:17:26+00:00 INFO (6): TURPENTINE: -- block testing: instanceof Mage_Core_Block_Template = 1 2017-05-26T13:17:26+00:00 INFO (6): TURPENTINE: -- block testing: Esi Options =
Is it slapping a template on the form key?
That is weird since it is the first time I see this error, my first impression is that this might be related to your theme structure. Why did you edited the file you mentioned?
It was a fix for a similar issue (but not the same) that I found here somewhere.
This is the one that I got the edit-part from:
I'm goint to check with a clean install of magento today to see if it's my templates that is messing up the form-key.
update: varnish seems to cache magento connect "properly". I can't log in since it caches the login page, and the login page has a form_key.
Accept-Ranges:bytes Age:195 Connection:Keep-Alive Content-Encoding:gzip Content-Language:ISO-8859-1 Content-Length:1070 Content-Type:text/html; charset=UTF-8 Date:Mon, 29 May 2017 07:35:35 GMT Keep-Alive:timeout=5, max=95 Server:Apache/2.2.22 (Debian) Vary:Accept-Encoding Via:1.1 varnish-v4 X-Frame-Options:SAMEORIGIN X-Powered-By:PHP/5.4.45-0+deb7u8 X-Varnish:1647766 1310844 X-Varnish-Currency: X-Varnish-Esi-Access: X-Varnish-Esi-Method: X-Varnish-Hits:3 X-Varnish-Host:[server name] X-Varnish-Set-Cookie:PHPSESSID=f61llqccg6rdrsagjbm6g36n12; expires=Mon, 29-May-2017 08:35:35 GMT; path=/downloader; domain=[server name]; HttpOnly X-Varnish-Store: X-Varnish-URL:/downloader/index.php?A=
Update:
I've installed a fresh and clean magento demo site and this is the result:
There are no customizations to magento, no extensions (except turpentine) and no custom templates.
The demo site works fine when the hosts config bypass varnish, the site works fine (without cache) when I run it through varnish (X-Varnish: turns up in header) before installing turpentine. As soon as I setup turpentine and hit "Apply Varnish Config" it freaks out.
Please get back with at least some pointers on where to start looking...
it looks like it's not the form_key this time, even though it's the same result.
Here's where it goes wrong on the demo site:
<div class="global-site-notice demo-notice">
<div class="notice-inner"><p>This is a demo store. Any orders placed through this store will not be honored or fulfilled.</p></div>
</div>
<div class="page">
<!-- ESI START [header] -->
<!-- ESI URL: //[the server]/turpentine/esi/getBlock/method/esi/access/private/ttl/3600/hmac/d9fd2361ad0d0c53af231f37c4effc6574691cd1d1badfe8597442005ca37b9c/data/HLBnmot0p9VROhjMUWr19O9-LSUrFlFmSuFItNFkMJff8b4SLTUb10coNtf_JLRI9MEkXfhuCBPwtRt_q6G2JYbRcmL0b90ln4-yyNWbJ3N0hu_E2oE-8aD3QiOfWhKrQiWl5gwWz1z0WUcFU_77wiPnRZTp45ZU840QO9QUbRIev6_CvR1sTGv681xrQe36eJGjaewqteKB1q2vP2oRM1oValB2KoKp5nbqoX34an3m4_Np9tyy3DxIbMDjsybPIA-potd3aB32SJ3VXOGk8wCZlbzD1zJU-tnTmx-MjHkhudWulUMjtuqrrQwB--oYUYiwatF1bdHfd_PoyxfvGKKihtgSnMsjJJMjNs2lYMnO-e_wrtapeO5RfEnME_1akwXyj3TX9FX8fgirrHWblX4gl2t10Z0LDbLiGTsfTZ9iL3mnkjKrmlTGFeM0NmzrjjRRDhOtSfjMkwOZoYs2R4Az9yG2VkXOOqYUCpFF25hXCKlqoGFctHmZ9CCFPmTBCLm_RTjswj-b3cB6oJPMyQ==/ -->
<!--[if lt IE 7 ]> <html lang="en" id="top" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" id="top" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" id="top" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" id="top" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <!--<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>404 Not Found</title>
<meta name="description" content="Page description">
<meta name="keywords" content="Page keywords">
<meta name="robots" content="INDEX,FOLLOW">
at the start of the "page" div it inserts some ESI code and then sends in the full page (meta data, new set of js/css references etc.).
And this is the < html > tag:
< html lang="en" id="top" class=" js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage js no-touch localstorage">
I get a number of these in the log: 2017-06-01T08:19:26+00:00 WARN (4): TURPENTINE: ESI url is probably too long (2911 > 2047 characters): //[server]/turpentine/esi/getBlock/method/esi/access/private/ttl/3600/hmac/3dfc3e6b98b64ee44affcc55cb2e819efa660525dbf2b8f5f6ddcb3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c9a4=data&d9fd2361ad0d0c53af231f37c4effc6574691cd1d1badfe8597442005ca37b9c=data&eNJSrrOtSskWncLRjdLUr-8NtTHlYQbBUMWXnqIuPVLThyr1J9C3L08i-zxOKIlRsUNwizxi2glWYIglbqMSq2aI8n6E9TCRr1H63GMNaDuLgVzWsNp25DsmTJtCZS1gAsUepTWkv4FiQoGPuM7BhWYKsXpO6COv11o38M_rInPg6ZnrUoNzMdj3HPPp4d-hWrK9Xt2TrpfzpiizpyDpUw4zOy95O9vOvnZ_lHHkPq7CI6gdDhfB7nt5LRh3CVZsoxdw0f_0_wpovMPCQJGRPG_lhQJ0NOAFcRF6JHW6BhzqK698W9rwLIltzL4g8lanL752lRN-4C_r5HVIuzVw6b63s052L4zgV1x_XxLlfzhpYAVuX8bBmCrJhbhu7-VG_KtQrn85MgyW98AdXQmAzQ%3D%3D=&esi=access&getBlock=method&private=ttl&3600=hmac
I get them for header, global_messages, messages, footer, global_cookie_notice.... and then it starts all over, since the thing loops until I get bored and shut it down.
Hi.
I'm new to varnish and turpentine.
I get a wierd infinite loop problem where the form key element value is the html of the full site, wich contains a formkey with the full site, wich contains a formkey with.... you get the idea....
I've managed to get the site to run - sort of - through varnish (without caching - just slapped on varnish headers). But when I applied the turpentine vcl from magento cache admin, that's when this problem occurs. If I restart varnish (with default.vcl) the site runs (without caching).
I have no clue what's wrong so I'll provide evertything I've got.
I'm using: Magento 1.9.2.4 Varnish 4.1.6 Turpentine 0.7.10 [Edit: I have now upgraded to 0.7.2 and no result] Everything runs on the same Apache/2.2.22 (Debian) server
I've edited the app/code/community/Nexcessnet/Turpentine/Helper/Esi.php:330
The magento admin config for turpentine is:
hosts:
etc/default/varnish
etc/varnish/default.vcl
Turpentine generated vcl from magento admin: