hey

getting some unrecognizable output, randomly & occasionally, when viewing nodes (cache_page).
it seems to be Gzip content, with improperly set headers or content type.
this could be a problem in cache backport or on the memcache module

Cache Backport 1.0-alpha3
Memcache API 1.0-beta3
CSS Gzip 1.3
JavaScript Aggregator 1.5
Drupal Cache, Block Cache, Page Compression, CSS & Javascript aggregation and compression/minify.

this kind of issues never happened before, even with other modules like Memcache 6.x and Cache Router 6.x. it also does not happen when using APC 7.x on Cache Backport.

sample output:

HTTP/1.1 200 OK Date: Sat, 19 Mar 2011 23:12:55 GMT Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g X-Powered-By: PHP/5.2.6-1+lenny9 Expires: Sun, 19 Nov 1978 05:00:00 GMT Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0 Last-Modified: Sat, 19 Mar 2011 23:12:55 GMT Vary: User-Agent,Accept-Encoding Content-Encoding: gzip Content-Length: 2623 Keep-Alive: timeout=15, max=1 Connection: Keep-Alive Content-Type: text/html; charset=utf-8 ‹½ÛrÛ¸õÝ_ “Ù¤c^$Y²äHÚIìì$m’ugӝLÆ’ ›·‚ e5õõú¶_ÖsR"%Yvíízl‰Ä¹âà\áñ““ŸÏ~=}M"•Ääôó«wo	µçKïØqNÎNÈßßœ½G:¶K>))|å8¯?Ð=Bh¤T~ä8óùÜž÷ìLΜ³Î5òé aõhšÊT@§{c-æ:‰Ób²…Ag4:ŠHG1KgÊSJVO+	Ü€gpM¸bÙYü¥¸šÐã,U|ƱH/‰äñ„Q&•_*"€”’HòpBB(^8,Žñ‘ÎbîxL*qyžd²+$±áƒÂ'T$lƝk˰B9…ZÄÜ@ÐùEñÃôO>°±¼8ó/­Já‚|³yÌG$ÍRþ‚ÜŒM®·­„‚'E,bä_$àIfì@–9‹í‹ÙõÂJ¹šgòiì$Õ{5 Ö*ÐjïȾˆ8W”$<lBaËkF¸K” `‚\ñïÜs}wØëô¹ŽüÞÁap8 <×;=wÄl-~y÷Õ+—"UÓl伿ï‡>tÝÞ(u]ßízKÍÀfO,ë«I¬8yûš¿M›'¹RwêeÁâ»Ç#ð…L•2~v×)|)r¥µŠ²+.{v¤üç/–>~ò•§¿Y–ÖÆà7…_°+fV))¤ÿ¿šäÏûnýnßùÝî(dƒï Ãþa×·/ŠD¤ðI§ãJgté]ÊLç8 8lâøäåÙ˯Ž3ÅŽ‹¿•\.l €Í=;1*B\*°O±þO=VðS¦"zD¨C÷	 Å/“°`íÒŸŽ¯ô׬”D2$†·ý ú¬	1ˆÕ£†œó/?ÁA¥³_2¥QÌY «+X³m»‰Œh€Âƒ¥À7ùí?šYœÚâÇú7ÇÉô¸(Y¢Þ	»þ"ãa×}JÍÚ.f‘Z.jSûR›pÝ-ó,“	˜XƒM–é£O§çºý¡;êöÉ ¹yþb¯ ƒoß *VñãTSñá| ̦™²B`¨¬\–àkœÍf<°DªßX‘Hh¥Y€·0 Aö…übÅ<Ü4°¤ÞN¸""€Rb¹ÔkÕj%+)—çA&¤úZRcz±tˆ-QÚ\fRMë?KN°±lkÌêÔµ¥Lè›,áU=ˆðq“ñX$³VöÛ™tQ®§3JX¬jöΆ"k/P¼¹t×þ´¥R–p}ˆeé­VYRG6ñVŠûXéî΀m±¤uÖWwh¼a“­€êe‹CÕŽsHíÓÑòqE»´k>jÍ%Ëóû{ñR¯Õᬅ¶\÷ ¢ñ’Ð4k%«³$Ô‹dª;Dï,׫lRXÞý DmªuÛ(Eé]p?@õš1Ìôp|ÝmÛ¢«ÍºCn†qר	OK8‘XÔ°‘„BŠ`)ØÒ¡Òø—x¹Œó¬Pº×؉&º2žn¸Åú	×_[ììÞeçîcgì8„±x´C(„ùxd`?ÌÜŽéè„ò}‚>Ì	æö§ÝŸ)\Ÿçʪúùì'œ``Š20Zœj³iƒi-BE§MípÝ‚ô’ h«••å<PdPT„x4l3ÇènæÓwÙŒ@a*1Ý’ŸþöäŽVS"‘æe³WÝÙuÌÓ™Š&´ÛïS‚ÉnB ëóëJBË+þ	D%W,.á‘¶vi$anol¬k0¶F+7®&\#ĆDéÐé—ˆÁÉŠœ¥-ŽÇ[	½UéÏ"ж¨Z ¶éôÏÐ\õô¾f¸µÕµm­—¶íï°-Y)çÜÛ&9@vÚèô>¡VÿW›ä•ÚZt[Uˆ¾5›5,sO‹4EB:I„Zù{C\ ªìmbjMHã¬±Dà•‹a‹¨ç^)b%#AS»Þ(ðº»þaÈÃa‡Ì=ðCÞ÷üÐ;Xʾ'ö}Ô¨Ð[lä'%—p®çàÞU J®J™žÃP²ž(*… JHãwdž#V„¹ÆgŠß–™¶Ã£¯[±ÐÊ^£€VÙK_vè:Ú,¡O»ýnokmÔÑ/cEä´^‹+FÇ,õ!¦‹ºfµ ²qÍû©¾½ì£Î*€ªHüþ–")Ÿ“H®#Ü‚Æ-¶±KØÄت\>cÝh­™ÜÑBlíAÛ­|³•lwÃõ©F÷"F&_–	ô­:ß\_µäSìÅWµÂ|ÖL7¹oöf¨„˜YKc걯š½L¿ ûõµÕtÌ+ôI6H.EÂä‚¶Ü	;‘+ÑØD£'¡khÓ_Ÿ·Ý²Aˆ¡áBˆ]ñ˜NOðkíp÷nmýÛ–Úþ³n6k›ùhz@>\îa54WöÆ“ym5”Ëßõ9c%wœO#q!ÆNÞžZöÈæô©ic_õcüL0þ¹¾|¾¥¹6Ð?vŽY9ʆ÷fÝoܔ㭺œ\-–Y]ÒÜ­Q–ç˜>‘ÀÖ–¦þ³[ùi–¶×§&õ’ôqÍþÚ®êèÙ¦î†< Å=|°³L=b¤6äЛͰ±Þu´æŠÅ¢ÀÒ³Ý ð÷tÄÇœaÝ@˜ÎZ0îêò)…ïäÙœCÿ¾Urkè^wúË¦S$Þ‚˜{ï}.‰­)À|^‡ž3…<”à£1ÁÒ×ÅcŽ—ž:cGú®Óô±ŽßÃýn¹6Ô·q–/±?+v8Çû,ÀÑ.Øar'—&ŒêNN_éo½crH´¼}M›˜¥ÆX}I’¥…M^1ÿ2Ϥ2 ua—,‚Á:Ù~#ô;žÍÉ_YDÎp å´õÁ÷àÿ ˆ

Comments

lpalgarvio’s picture

seems to occur only on Anonymous sessions.
using Google Chrome for anonymous; Firefox for logged in sessions.

testing a bit more...

lpalgarvio’s picture

same output with firefox and chrome.
only occurs in some anonymous sessions/hits, randomly.
firefox additionaly exibits odd behavior, taking longer to load the page.

HTTP/1.1 304 Not Modified Date: Sat, 19 Mar 2011 23:36:00 GMT Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g Connection: Keep-Alive Keep-Alive: timeout=15, max=8 Etag: "ca66163b06f770db7504e4a9ad8b50a5" Vary: User-Agent,Accept-Encoding 
Date: Sat, 19 Mar 2011 23:42:09 GMT
Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
X-Powered-By: PHP/5.2.6-1+lenny9
Etag: "ca66163b06f770db7504e4a9ad8b50a5"
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: must-revalidate
Content-Encoding: gzip
Last-Modified: Sat, 19 Mar 2011 23:35:30 GMT
Vary: User-Agent
Keep-Alive: timeout=15, max=10
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

200 OK
HTTP/1.1 200 OK Date: Sat, 19 Mar 2011 23:36:23 GMT Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g X-Powered-By: PHP/5.2.6-1+lenny9 Expires: Sun, 19 Nov 1978 05:00:00 GMT Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0 Last-Modified: Sat, 19 Mar 2011 23:36:23 GMT Vary: User-Agent,Accept-Encoding Content-Encoding: gzip Content-Length: 3304 Keep-Alive: timeout=15, max=9 Connection: Keep-Alive Content-Type: text/html; charset=utf-8 ��������ks�6�{~›\��!ɒ%GR'��i�y�b��N&�IPDL, Z����'ܷ���H��ˎ���p�\,v������Gg��>;&�����3Ҳr*3�I�~�¸C�J���l6�fKdS��}�tZر|4s���o����8J����`���t�d:2Xb��ϳ���9F}�3I �3���G"�,���<�� I8t5H��`d�9�,�i�2d1<�<�F�vi&��$���b�A$0<�Sf_�����<���7�Y,���gEJ#kJ#z97&g";G{ m�i�AkI+Y�R �'�����Ȁ��h�:Vv�R���~��en0�:���`��ww?p�۷�1n*W��D~�d���{]'hy]�?�^��t��k{N�]H:�k��y@"���'��f\7�Rܱ+��;���";,���M|(�2�J%U(.XֱB�=x�����k����}{�0���mqt����k�#���,�[�w�X�*A?���Ҝ�P�İ�=b��f��f��?�_��D���bgx�+[�6!�|ԍc�K��S0T2�EH����I]�̲�:2� ����4'.c ɱ���EL�T�;Y(��L|�j� �r.y��kB�����\qY*)� ��TYDs�=d��L1�tx)�#�c� !�>D��0�Q��G���%�v�qp��D�F*� �Y_ߕ�WD��FW��f����+�p!��o���H�J�G�懬zT6Ȭ@�cz�+�瞡a?2> ��T�eJ��n� �Šb�hY����:���;�v�\���a�� D�2~�rf��A<�̷��f�����|��t�|�'����D��3C�t�8'9����p���xT����>���e VBK�8Q��l��̈́�_�ޘ^Lb�&�i��:�տ%�X��*�ä�\FƏ"f�|��:�!����3�"_+M������k�ش � xt��3e���d�V��V���7���ݠI;l�BwH���� ����/b��ǵN��e߅^c�Qs��4��/�Zg(F�u� jt^t�U[���ZtT@�l*[D�,����0� ���.z�n���y��f�)�L�ko �F���J�zQ�����D��@�,��h[� �4�9���p*r��{ �c�+��[�Z��ڠg�:=�?���� �����A��&�a�[���%���A��?����RiV���p�P��PنҘҕ�D�V�.�M�,�� �4E��2��Zl #겈@�m����� ̴�%�?=>���H�'iQ/Avz�d*Ñ��v �yndhғ�BB����Z�\Ш�G�1J� �z]�c5�bU���r���X�#mc�kHaM���^���Ы��T��;:>���& �.q3(��$�D0��GѪf�� � �=���{N�u%ES�n�;tK���7�I -;u���>a���T��%�J�uST����4sC��YB&��\�{�]�T�[�� � �^!r��mMQ'n�#%�A��t���N�9����A�s깭N����o�}1*�k�I%�Cl���I�p �2P3&�,��zd5Q�M&6�L��v]� ذ� 1�xT�m��n:<�q57ŒW�;���9�Z�=ﵻ���,Z�B������4\:��1�IT�Uc.֮y3�7��(���2_����H�f�j$�fB�YX �cl����n�RG�6���*�^E6���F�!�������hL�u�c��+�gEt��zi�W�%��R�j�W.�VvU;2Š�use�:���i67~���0��F�%� ���fM�\�av�"c|�_+����ojk�ߪ��M*�����r�5�Z.ox���d�=�,zU�\�l�u����i�H�99}��|ztFDBN��#����j�8�a�[w���A8�"�)Ҭ��PgA�{��_���BZ�l��b0�z'�T&O 䥩v��f�tmJ}�I��^��4~��IP�r�EjÝ&SM� ^�w�VIJy%�ڹ.S�� ���� �,��Ѭs+�R?�V��F�Q ���mS�D��z�U>���,oh�/�DyF�MT�d�}�7���� xN�iO��6}OCi�$+�����j���%�.�9��Ss�_[|m�d$}���E�̭)��PL�^ �tz�n��W�q��zx������6u�Vʌ�&n�>�ަAL�8��4ְ�v�ځQ��< %���T�mؓ-q`5�o*�װ���-G*��{�A��n3�bCQ-���Zej�_�ωL�6���*��ֱ���E eNۦ����j�����v���6�y���*�]����/�U궓���m�^�57����Q���"�R�w��- ݠ��6|i�"�����}u��F�S)�����F3�||G�u��Դ� �6�h�>�>�}v�h� ���-:��4輏#���<(Q'/����,bf�r&�'0���Kc��Y��S�p��:1n�X�����ꀴ q�[���!ci4���{�N -��<��U��)��奃�էUUԂ�W��Z�ͦo{��:�7Q?I�r�J�~�KmK3�͒q�&H�� ��&��x�px<����P�)�cK�^�ơ[�)���i�����ZUu��I�57�š��oYB� �_��C,O�ծ��+���s����u��t��a��u�l]��瞝�˘�U0��\���}��TX�{\/����c s��3��U����Q-�k���T���~[�٦�፝|�s<>^��w��CL�oc�X}�h�� ���H�|�he�t��X$�ES�<YyB��윆2�Ԃ�����aȧ���[����>��> ����E�C��5�we��.�?xx��' �[���������S9�+�yN��dFs��:�~�Ġ�'�4z�'�,�gl�k[�>��������u$�Ce�U����xv���(�!����PyHԵ���h��L4v��.��J����J�<,�/fI �;�Z�u�R���l1΄9��

response headers:

Date: Sat, 19 Mar 2011 23:40:58 GMT
Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
X-Powered-By: PHP/5.2.6-1+lenny9
Etag: "a2f7f7e405efd5b140583e7727d0f02d"
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: must-revalidate
Content-Encoding: gzip
Last-Modified: Sat, 19 Mar 2011 23:36:23 GMT
Vary: User-Agent
Keep-Alive: timeout=15, max=10
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

200 OK

a correct page returns these headers:

Date: Sat, 19 Mar 2011 23:43:50 GMT
Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
X-Powered-By: PHP/5.2.6-1+lenny9
Etag: "ca66163b06f770db7504e4a9ad8b50a5"
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: must-revalidate
Content-Encoding: gzip
Last-Modified: Sat, 19 Mar 2011 23:35:30 GMT
Vary: User-Agent,Accept-Encoding
Content-Type: text/html

note the Transfer-Encoding: chunked tag.

with Page Compression turned off in performance, this issue won't happen.

Date: Sat, 19 Mar 2011 23:48:35 GMT
Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
X-Powered-By: PHP/5.2.6-1+lenny9
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: must-revalidate
Last-Modified: Sat, 19 Mar 2011 23:48:12 GMT
Vary: User-Agent,Accept-Encoding
Content-Encoding: gzip
Content-Length: 2833
Content-Type: text/html; charset=utf-8

200 OK

by looking at the code, this likely isn't a problem with Cache Backport.
Memcache does change headers though - line 108 in memcache.inc:

  function set($cid, $data, $expire = CACHE_PERMANENT, array $headers = NULL) {
    $created = REQUEST_TIME;

    // Create new cache object.
    $cache = new stdClass;
    $cache->cid = $cid;
    $cache->data = is_object($data) ? clone $data : $data;
    $cache->created = $created;
    $cache->headers = $headers;
    // Record the previous number of wildcard flushes affecting our cid.
    $cache->flushes = $this->wildcard_flushes($cid);
    if ($expire == CACHE_TEMPORARY) {
      // Convert CACHE_TEMPORARY (-1) into something that will live in memcache
      // until the next flush.
      $cache->expire = REQUEST_TIME + 2591999;
    }
    // Expire time is in seconds if less than 30 days, otherwise is a timestamp.
    else if ($expire != CACHE_PERMANENT && $expire < 2592000) {
      // Expire is expressed in seconds, convert to the proper future timestamp
      // as expected in dmemcache_get().
      $cache->expire = REQUEST_TIME + $expire;
    }
    else {
      $cache->expire = $expire;
    }

    // We manually track the expire time in $cache->expire.  When the object
    // expires, we only allow one request to rebuild it to avoid cache
    // stampedes. Other requests for the expired object while it is still being
    // rebuilt get the expired object.
    dmemcache_set($cid, $cache, 0, $this->bin, $this->memcache);
lpalgarvio’s picture

Status: Active » Closed (duplicate)

moving discussion here
http://drupal.org/node/1098934

lpalgarvio’s picture

Title: bad Memcache API output - gziped content shown in browser » bad output - gziped content shown in browser
Status: Closed (duplicate) » Active
Issue tags: -memcache

after all, it's a problem in Cache Backport, and not in Memcache, because the problem occurs in all cache backends.

remdinder, happens in all browsers, when navigating with a anonymous account, if Page Compression is on.

pounard’s picture

Title: bad output - gziped content shown in browser » bad Memcache API output - gziped content shown in browser
Issue tags: +memcache

Seems an odd bug. Can you tell me exactly what modules and Drupal versions you used to get this error? I'm going to try to reproduce it on my side.

pounard’s picture

Oh you did, sorry, I'm trying.

pounard’s picture

Can you give me the configuration you used for cache backport ?

pounard’s picture

I found a real bug, but I'm not sure this is the one that got you this error.
EDIT: I just pushed an 6.x-1.0-alpha4 release that should be available for download within the next minutes. Please upgrade and test again (even if I'm not sure this is related). I'm continuing my tests.

pounard’s picture

I tested using the alpha4 fixed version (fixes a single bug with database backend).
I used the exact same modules as you (and not other contrib modules), same versions. I also added APC backend for cache_menu and cache tables. I set memcache backend for cache_page and activated the aggressive caching.

I enabled CSS compression and JS compression using JSMin+, I cleared all caches, and set this as cache configuration:

$conf['cache_inc'] = 'sites/all/modules/cache_backport/cache.inc';
$conf['cache_backends'][] = 'sites/all/modules/apc/drupal_apc_cache.inc';
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_class_cache'] = 'DrupalAPCCache';
$conf['cache_class_cache_menu'] = 'DrupalAPCCache';
$conf['cache_class_cache_page'] = 'MemCacheDrupal';

I didn't experience your bug. I'm installing Chrome for testing.

EDIT: I didn't configure Memcache servers because I'm using Memcached on localhost. I tested it and aggresive cache page is fetched from it, so all good.

pounard’s picture

Status: Active » Postponed (maintainer needs more info)

I was unable to reproduce the bug, using FF 3.6.15, Chromium 10.x (freshly compiled) and Epiphany 2.30.6.

  • Are you sure this isn't related to one of those modules, such as css_gzip?
  • Did you tested with latest release I just made?
  • Have you installed any other module that could interfer?
  • If you cannot answer all these questions, please give me your full Cache Backport configuration, and more information about your environment!
lpalgarvio’s picture

will test with alpha4 and other performance modules turned off.

my client uses:
Firefox 3.6.15 and Chrome 10.0.648.151 under Windows 7 64-bit

i'm using a single server configuration, no cluster.

    * Linode VPS, 1GB RAM, single server setup
    * Debian GNU/Linux 5.0 64-bit
    * Kernel 2.6.35.4-x86_64-linode16, x86_64
    * Apache 2.2.9
    * PHP 5.2.6, running as FastCGI
    * APC 3.0.19
    * Memcached 1.2.2
    * MySQL 5.0.51
    * Drupal 6.20
    * heavy drupal site (182 modules, 95 projects)

    * APC on (1x256MB, standby)
    * Memcached on (128MB, standby)

modules:

Modules
Up to dateok
AddThis 6.x-3.0-beta1
Includes: AddThis
Up to dateok
Admin role 6.x-1.3
Includes: Admin Role
Update availablewarning
Administer Tool Tip 6.x-1.x-dev (2010-Oct-08)
Recommended version: 	6.x-1.x-dev (2011-Feb-25) 	




Includes: Administer tool tip
Up to dateok
Administer Users by Role 6.x-1.4
Includes: Administer Users by Role
Up to dateok
Administration menu 6.x-1.6
Also available: 	6.x-3.0-alpha4 (2010-Mar-11) 	




Includes: Administration menu, Administration views
Up to dateok
Administration theme 6.x-1.3
Includes: Administration theme
Up to dateok
Already In 6.x-1.0
Includes: Already in
Update availablewarning
BeautyTips 6.x-2.x-dev (2011-Feb-10)
Recommended version: 	6.x-2.0 (2010-Jul-07) 	




Development version: 	6.x-2.x-dev (2011-Feb-25) 	




Includes: BeautyTips API
Up to dateok
Block Class 6.x-1.3
Includes: Block Class
Update availablewarning
Cache Backport (D7 to D6) 6.x-1.0-alpha3
Recommended version: 	6.x-1.0-alpha4 (2011-Mar-20) 	




Includes: Cache Backand
Up to dateok
Chaos tool suite 6.x-1.8
Includes: Bulk Export, Chaos tools, Page manager, Views content panes
Up to dateok
Colorbox 6.x-1.0-beta9
Includes: Colorbox
Up to dateok
Content Construction Kit (CCK) 6.x-2.9
Also available: 	6.x-3.0-alpha3 (2011-Mar-17) 	




Includes: Content, Content Copy, Fieldgroup, Number, Option Widgets, Text
Up to dateok
Content Display Order 6.x-1.0
Includes: Content Display Order
Up to dateok
Content Taxonomy 6.x-1.0-rc2
Includes: Content Taxonomy
Up to dateok
CSS Gzip 6.x-1.3
Includes: CSS Gzip
No available releases foundwarning
ctools_flag 6.x-1.x-dev (2010-Jul-11)
Includes: Flag Ctools Integration
Update availablewarning
Custom Permissions 6.x-2.0-beta2
Recommended version: 	6.x-2.0 (2011-Jan-15) 	




Includes: Site Configuration Permissions
Up to dateok
Date 6.x-2.7
Includes: Date, Date API, Date Locale, Date Timezone, Date Tools
Up to dateok
Deck 6.x-1.2
Includes: Deck
Up to dateok
Devel 6.x-1.23
Includes: Devel
Up to dateok
Drupal Queue 6.x-1.2
Includes: Drupal Queue API
Up to dateok
Email Field 6.x-1.2
Includes: Email
Up to dateok
Features 6.x-1.0
Includes: Features
Update availablewarning
Fieldset helper 6.x-2.x-dev (2011-Feb-05)
Recommended version: 	6.x-2.x-dev (2011-Feb-25) 	




Includes: Fieldset helper
Up to dateok
File Aliases 6.x-1.1
Includes: File Aliases
Up to dateok
FileField 6.x-3.9
Includes: FileField
Up to dateok
FileField Paths 6.x-1.4
Includes: FileField Paths
Up to dateok
FileField Sources 6.x-1.2
Includes: FileField Sources
Up to dateok
FileField UI Extras 6.x-1.0-rc2
Includes: FileField UI Extras
Up to dateok
Fivestar 6.x-1.19
Also available: 	6.x-2.x-dev (2011-Feb-25) 	




Includes: Fivestar
Up to dateok
Flag 6.x-2.0-beta5
Includes: Flag
Up to dateok
Global Redirect 6.x-1.3-alpha1
Includes: Global Redirect
Up to dateok
ImageAPI 6.x-1.9
Includes: ImageAPI, ImageAPI GD2
Up to dateok
ImageCache 6.x-2.0-beta10
Includes: ImageCache, ImageCache UI
Up to dateok
ImageCache Profiles 6.x-1.3
Includes: Imagecache Profile Pictures
Up to dateok
ImageField 6.x-3.9
Includes: ImageField
Up to dateok
Input Format Permissions 6.x-1.1-beta1
Includes: Input Format Permissions
Up to dateok
Insert 6.x-1.0
Includes: Insert
Up to dateok
Internationalization 6.x-1.9
Includes: Block translation, CCK translation, Content type translation, Internationalization, Menu translation, Poll aggregate, String translation, Synchronize translations, Taxonomy translation
Up to dateok
Javascript Aggregator 6.x-1.5
Includes: JavaScript Aggregator
Update availablewarning
jQuery UI 6.x-1.x-dev (2010-Nov-11)
Recommended version: 	6.x-1.4 (2010-Sep-09) 	




Development version: 	6.x-1.x-dev (2011-Feb-25) 	




Includes: jQuery UI
Update availablewarning
jQuery Update 6.x-2.x-dev (2010-Sep-09)
Recommended version: 	6.x-2.0-alpha1 (2010-Apr-23) 	




Development version: 	6.x-2.x-dev (2011-Feb-25) 	




Includes: jQuery Update
Up to dateok
JS Alter 6.x-1.0
Includes: JS Alter
Up to dateok
Language icons 6.x-2.0
Includes: Language icons
Up to dateok
Language Switcher Dropdown 6.x-1.2
Includes: Language Switcher Dropdown
Up to dateok
Libraries API 6.x-1.0
Includes: Libraries
Up to dateok
Link 6.x-2.9
Includes: Link
Up to dateok
Login Security 6.x-1.0
Includes: Login Security
Up to dateok
LoginToboggan 6.x-1.8
Includes: LoginToboggan
Up to dateok
Menu Admin per Menu 6.x-1.4
Includes: Menu Admin per Menu
Up to dateok
Module Filter 6.x-1.6
Includes: Module filter
Up to dateok
Node permissions grid 6.x-1.1
Includes: Node permissions grid
Up to dateok
Panels 6.x-3.9
Includes: Mini panels, Panel nodes, Panels, Panels In-Place Editor
Up to dateok
Panels Teasers 6.x-2.1
Includes: Panels Teasers
Update availablewarning
Password 6.x-1.x-dev (2010-Jul-11)
Recommended version: 	6.x-1.0-beta2 (2010-May-26) 	




Development version: 	6.x-1.x-dev (2011-Feb-25) 	




Includes: Pluggable password hashing
Up to dateok
Path redirect 6.x-1.0-rc2
Includes: Path redirect
Up to dateok
Pathauto 6.x-2.0-alpha3
Includes: Pathauto
Up to dateok
Permission Report 6.x-1.0
Includes: Permission report
Up to dateok
Permissions API 6.x-2.11
Includes: Permissions API, Permissions Reset
Up to dateok
Poormanscron 6.x-2.2
Includes: Poormanscron
Up to dateok
Role Delegation 6.x-1.4
Includes: Role Delegation
Up to dateok
Role Weights 6.x-1.5
Includes: Role Weights
Up to dateok
Strongarm 6.x-2.0
Includes: Strongarm
Up to dateok
Switchtheme 6.x-1.1
Includes: Switchtheme
Update availablewarning
Taxidermy 6.x-1.x-dev (2010-Jul-11)
Recommended version: 	6.x-1.x-dev (2011-Feb-25) 	




Includes: Taxidermy
Up to dateok
Taxonomy Delegate 6.x-1.3
Includes: Taxonomy Delegate
Up to dateok
Term Fields 6.x-1.16
Includes: Term Fields
Up to dateok
Token 6.x-1.15
Includes: Token, Token actions
Up to dateok
Total Control Admin Dashboard 6.x-1.2
Includes: Total Control
Up to dateok
Tracker 2 6.x-1.1
Includes: Tracker 2
Up to dateok
Transaction 6.x-0.1
Includes: Transaction
Up to dateok
Translation helpers 6.x-1.0
Includes: Translation helpers
Up to dateok
Translation Management 6.x-1.21
Includes: Content, Core, Google translate, Translate
Up to dateok
Translation table 6.x-1.4
Includes: Translation table
Update availablewarning
Ubercart 6.x-2.x-dev (2011-Mar-18)
Recommended version: 	6.x-2.4 (2010-Aug-11) 	




Development version: 	6.x-2.x-dev (2011-Mar-20) 	




Includes: Attribute, Cart, Catalog, Conditional Actions, File Downloads, Flatrate, Google Checkout, Order, PayPal, Payment, Payment Method Pack, Product, Product Kit, Reports, Roles, Shipping, Shipping Quotes, Stock, Store, Tax Report, Taxes
Up to dateok
Ubercart Addresses 6.x-1.0
Includes: Ubercart Addresses
Up to dateok
Ubercart advanced catalog 6.x-1.x-dev (2011-Feb-25)
Also available: 	6.x-2.x-dev (2011-Feb-25) 	




Includes: Ubercart advanced catalog
Up to dateok
Ubercart Views 6.x-3.1
Includes: Ubercart Views, Ubercart Views Addresses, Ubercart Views Attribute, Ubercart Views Bulk Operations, Ubercart Views Marketing
Update availablewarning
UC Multiprice 6.x-2.x-dev (2010-Dec-12)
Recommended version: 	6.x-2.x-dev (2011-Feb-25) 	




Includes: Multiprice, Multiprice Dynamic price
Up to dateok
Update form enhancement 6.x-1.5
Includes: Update form enhancement
Update availablewarning
Upgrade Status 6.x-1.x-dev (2010-Nov-12)
Recommended version: 	6.x-1.1 (2010-Oct-12) 	




Development version: 	6.x-1.x-dev (2011-Feb-25) 	




Includes: Upgrade Assist, Upgrade status
Up to dateok
URL alter 6.x-1.2
Includes: Url alter
Up to dateok
User Delete 6.x-1.4
Also available: 	6.x-2.x-dev (2011-Feb-25) 	




Includes: User Delete
Up to dateok
User protect 6.x-1.5
Includes: User Protect
Up to dateok
Vertical Tabs 6.x-1.0-rc1
Includes: Vertical Tabs
Up to dateok
view_unpublished 6.x-1.0
Includes: View Unpublished Content
Up to dateok
Views 6.x-2.12
Also available: 	6.x-3.0-alpha3 (2010-Apr-07) 	




Includes: Views, Views UI
Up to dateok
Views Bulk Operations (VBO) 6.x-1.10
Includes: Views Bulk Operations
Up to dateok
Voting API 6.x-2.3
Includes: Voting API
Up to dateok
Wysiwyg 6.x-2.3
Includes: Wysiwyg
Up to dateok
Wysiwyg ImageField 6.x-1.1
Includes: WYSIWYG ImageField
pounard’s picture

I tried installing *a lot* of modules.
The full I18n suite, Global redirect, some others, didn't experience the bug at all.
I also have OG and some modules of mine for testing purposes.

I read more attentively your posts, and saw that some of your HTTP headers are not given by D6 per default, have you some kind of specific HTTPd configuration or a reverse proxy cache that would modify those?

EDIT: May be Varnish patches?

lpalgarvio’s picture

nope.

standard LAMP stack, debian linux, drupal 6.20 without modifications like pressflow.

default .htaccess with the addition of a rewrite rule.

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
  Order allow,deny
</FilesMatch>

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php

# Force simple error message for requests for non-existent favicon.ico.
<Files favicon.ico>
  # There is no end quote below, for compatibility with Apache 1.3.
  ErrorDocument 404 "The requested file favicon.ico was not found.
</Files>

# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.

# PHP 4, Apache 1.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
  # Enable expirations.
  ExpiresActive On

  # Cache all files for 2 weeks after access (A).
  ExpiresDefault A1209600

  <FilesMatch \.php$>
    # Do not allow PHP scripts to be cached unless they explicitly send cache
    # headers themselves. Otherwise all scripts would have to overwrite the
    # headers set by mod_expires if they want another caching behavior. This may
    # fail if an error occurs early in the bootstrap process, and it may cause
    # problems if a non-Drupal PHP file is installed in a subdirectory.
    ExpiresActive Off
  </FilesMatch>
</IfModule>

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on

  # If your site can be accessed both with and without the 'www.' prefix, you
  # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # adapt and uncomment the following:
  # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment and adapt the following:
  # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
  # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /

  # Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

# $Id: .htaccess,v 1.90.2.5 2010/02/02 07:25:22 dries Exp $

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  # Redirect all users to access the site WITH the 'www.' prefix
  RewriteCond %{HTTP_HOST} !^www\. [NC]
  RewriteCond %{HTTP_HOST} !\.([a-z-]+\.[a-z]{2,6})$ [NC]
  RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  # Modify the RewriteBase if you are using Drupal in a subdirectory
  RewriteBase /
</IfModule>
pounard’s picture

Ok, thanks, still trying to find out what's happening, but honestly I can't reproduce the bug, that's weird. Trying to check my own HTTP headers but I don't even have the same headers.

lpalgarvio’s picture

disabled these modules:
autoload, dbtng, css gzip, devel, drupal queue, Javascript Aggregator, js alter, url alter

turned on cache backport, with File Cache and APC.

played around with these settings:
Caching mode: normal & off
Block cache: on & off
Page Compression: on & off
Optimize CSS files: on & off
Optimize JavaScript files: on & off

no issues yet.

pounard’s picture

Ok. As you said upper, Memcache stores headers, but normal cache mode also will, this is because page cache stores headers that modules could have modified and restores them when serving a cached page.

It seems quite a normal behavior, other backends will also do it.

It's possible that a time, a page has been stored with wrong headers. It could happen considering the modules you are using, some of them could mess up with. It could be the result of something being gzip twice, maybe.

Have you kept a Drupal instance where the bug still happens? If yes, flushing the memcache cache (restarting the memcached deamon is an efficient way to do it) may make the bug dissapear, if this happens it could be a memcache module problem (wrong storing, or maybe an outdated cache kept with wrong headers, don't know..).

Please tell me if you find anything.

lpalgarvio’s picture

the problem returns with Devel module enabled (from that list i disabled), while having Page Compression on, and this option enabled in devel:
* Display page timer

issue goes away as soon as i disable Page Compression in Drupal or Display page timer on Devel.
does not occur with these options enabled in Devel:
* Collect query info
* Display memory usage
also no problems with all options in Devel disabled.

no issues with CSS Gzip, JavaScript Aggregator (both compress), URL Alter, JS Alter or Drupal Queue either.

this never happened to me before. not even with Cache Router, Memcache (D6), with other cache backends, standard caching or no caching at all, in various drupal installations, with Drupal 6.19/6.20 and Drupal 7.

i always empty cache tables, flush APC/Memcache and file caches between tests, manually, and also in the browsers. restarting daemons helps.
testing further.

pounard’s picture

Ok, thanks, I'll try with Devel module, but this is sunday night and I'm going to get some rest. Really thanks for the effort, I'll give you some feedback soon.

pounard’s picture

In devel_shutdown_real() it seems that devel messes up with HTTP content, still looking.

lpalgarvio’s picture

okay.

managed to isolate further the issue.
requirements:
* Drupal 6.20
* Cache Backport 6.x-1.0-alpha3/4
* a cache engine (APC 7.x-1.0-beta2, Memcache API 7.x-1.0-beta3, File Cache 7.x-1.0-alpha2, or supplied DB)
* Devel 6.x-1.23
* Page Compression enabled in Drupal
* Display page timer enabled in Devel
* Access devel information permission enabled for anonymous user
* Navigate site randomly with a anonymous session

//edit:
just noticed that with this config, Devel won't show anything on the footer for the anonymous session.
and the information won't update ever for the anonymous session. you need to clear the caches all the time.
Devel for Drupal 7 probably has this changed and fixed to accommodate the new cache.inc.

i use Access devel information permission enabled for anonymous user when testing performance.
it should only be used in development.

pounard’s picture

I cannot see it bug. When I activate the page timer, Devel displays it at the very bottom of the page. I gave the see devel information to anymous users, timer don't show up anymore after logout. So, I restarted Memcached (to clear cache) then refresh the home as anonymous. Devel showed the timer again. I tried then a refresh to ensure to get back a cached page, when Drupal serves a cached page, Devel information is not shown. Devel information probably is sent after the page is being cached.

This where I got, but I still couldn't reproduce the bug.

lpalgarvio’s picture

might be a problem in my end, will try testing on other sites.

it does not occur always though. probably happens at around 1/10 to 1/2 of the times.

pounard’s picture

Thanks, I'll try again a on fresh empty instance.

Currently I'm unable to reproduce it with Devel 1.23 and latest Cache Backport alpha4. My configuration pretty much is the same as you. I'm using Memcache for cache_page bin, APC for cache and cache_menu bins, and all the others goes to database backend (per default).

Can you give me your backend settings in your settings.php file?

lpalgarvio’s picture

here it is

same results with $conf['cache_****'] = set for memcache, apc and file cache.

/**
* Cache settings: Cache Backport (cache_backport)
*
* Cache API backport from Drupal 7, running on file, db, apc, xcache or memcache engines.
*/
$module_cache_backport_enabled = TRUE; // change to TRUE to enable
$module_cache_backport_default = FALSE; // change to FALSE to specify subdomain
$module_cache_backport_inc = './sites/all/modules/performance/cache_backport/cache.inc';
if ( $module_cache_backport_enabled == TRUE ) {
 if ( file_exists($module_cache_backport_inc) ) {
  if ( $module_cache_backport_default == TRUE ) {
      $module_cache_backport_domain = 'default';
  } else {
      $module_cache_backport_domain = $_SERVER['SERVER_NAME'];
  }
  $conf['cache_inc'] = $module_cache_backport_inc;
  // DBTNG :: DrupalDatabaseCache (DON'T USE! BUGGY!)
  $conf['cache_backends'][] = './sites/all/modules/performance/cache_backport/database.inc';
  // File Cache :: DrupalFileCache
  $conf['cache_backends'][] = './sites/all/modules/performance/filecache_d7/filecache.inc';
  // APC :: DrupalAPCCache
  $conf['cache_backends'][] = './sites/all/modules/performance/apc_d7/drupal_apc_cache.inc';
  // Memcache :: MemCacheDrupal
  $conf['cache_backends'][] = './sites/all/modules/performance/memcache_d7/memcache.inc';
  // Cache bins:
  $conf['cache_default_class'] = 'MemCacheDrupal';
  $conf['cache_class_cache'] = 'MemCacheDrupal';
  $conf['cache_class_block'] = 'MemCacheDrupal';
  $conf['cache_class_bootstrap'] = 'MemCacheDrupal';
  $conf['cache_class_content'] = 'MemCacheDrupal';
  $conf['cache_class_filter'] = 'MemCacheDrupal';
  $conf['cache_class_form'] = 'MemCacheDrupal';
  $conf['cache_class_menu'] = 'MemCacheDrupal';
  $conf['cache_class_page'] = 'MemCacheDrupal';
  //$conf['cache_class_pathdst'] = 'MemCacheDrupal';
  //$conf['cache_class_pathsrc'] = 'MemCacheDrupal';
  //$conf['cache_class_uc_price'] = 'MemCacheDrupal';
  $conf['cache_class_update'] = 'MemCacheDrupal';
  $conf['cache_class_views'] = 'MemCacheDrupal';
  $conf['cache_class_views_data'] = 'MemCacheDrupal';
  //$conf['cache_session'] = 'MemCacheDrupal';
  //$conf['cache_users'] = 'MemCacheDrupal';
  // Extra settings:
  $conf['filecache_directory'] = './sites/' . $module_cache_backport_domain . '/files/filecache';
  //$conf['session_inc'] = './sites/all/modules/performance/memcache_d7/memcache-session.inc';
  $conf['memcache_servers'] = array(
    '127.0.0.1:11211' => 'default',
  );
  $conf['memcache_bins'] = array(
    'cache' => 'default',
    'cache_block' => 'default',
    'cache_bootstrap' => 'default',
    'cache_content' => 'default',
    'cache_filter' => 'default',
    'cache_form' => 'default',
    'cache_menu' => 'default',
    'cache_page' => 'default',
    'cache_pathdst' => 'default',
    'cache_pathsrc' => 'default',
    'cache_uc_price' => 'default',
    'cache_update' => 'default',
    'cache_views' => 'default',
    'cache_views_data' => 'default',
    'session' => 'default',
    'users' => 'default',
  );
 }
}
pounard’s picture

Did you activated the Memcache module? If so, try disabling it. Try commenting out the $conf['memcache_bins'] which is redundant with cache backend configuration.

lpalgarvio’s picture

same behavior with just one backend enabled, like memcache, or apc.

coppied issue to Devel issue queue
http://drupal.org/node/1099434

pounard’s picture

Thanks, let's wait for their answer. I'll still do some testing later. Have a good sunday night!

lpalgarvio’s picture

+1

pounard’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Never got an answer, and this seems to be non-related to cache backport itself. Feel free to reopen if you reproduce it.