On 03/02/11 21:09, Víctor José Hernández Gómez wrote:
Hi all,
after some time with a proxy only configuration:
cache_dir aufs /san/cache 241904 64 512
cache deny all
we have changed to :
cache_dir aufs /san/cache 241904 64 512
#cache deny all
and started to see messages such as:
WARNING: An error inside Squid has caused an HTTP reply without Date
Is it normal? Should I delete swap.state ?
Which version of Squid is this?
It means somehow Squid has encountered an object which has zero or a
negative number for its arrival timestamp and a missing Date: header
cannot be synthesized.
Only removing the particular broken on-disk file will fix the message
when its loaded. Finding it is a little tricky and this is likely to
happen again later.
To try and track down the bug in Squid we will need to find the file and
analyze it to see why it got to disk without any time being set.
This patch should make Squid dump the details of the file into cache.log
immediately after the warning.
=== modified file 'src/client_side_reply.cc'
--- src/client_side_reply.cc 2010-12-13 11:31:14 +0000
+++ src/client_side_reply.cc 2011-02-03 10:07:18 +0000
@@ -1330,8 +1330,9 @@
else if (http->storeEntry()->timestamp > 0)
hdr->insertTime(HDR_DATE, http->storeEntry()->timestamp);
else {
- debugs(88,1,"WARNING: An error inside Squid has caused an
HTTP reply without Date:. Please report this");
- /* TODO: dump something useful about the problem */
+ debugs(88,DBG_IMPORTANT,"WARNING: An error inside Squid has
caused an HTTP reply without Date:. Please report this:");
+ /* dump something useful about the problem */
+ http->storeEntry()->dump(DBG_IMPORTANT);
}
}
Amos
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.10
Beta testers wanted for 3.2.0.4