You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2022/07/10 23:51:18 UTC
[Bug 59744] AH00717: Premature end of cache headers
https://bz.apache.org/bugzilla/show_bug.cgi?id=59744
--- Comment #4 from Alex Regan <my...@gmail.com> ---
I'm using apache-2.4.53 and I'm still having problems with caching. Perodically
I see errors related to "premature end of cache headers" and don't know how to
troubleshoot it. This is on fedora34. The site is using Cloudflare. This is
with loglevel cache_disk:trace3
[Wed Jul 06 04:23:49.577237 2022] [cache_disk:error] [pid 3202400:tid
3202451] (70014)End of file found: [client 162.158.190.138:47866] AH00717:
Premature end of cache headers.
[Wed Jul 06 04:23:49.577247 2022] [cache_disk:debug] [pid 3202400:tid
3202451] mod_cache_disk.c(883): [client 162.158.190.138:47866] AH02987: Error
reading response headers from
/var/cache/httpd/W_@/Ro6/7ihAG5M_Eyw0t7jA.header.vary/@Iu/98u/9@ot3lTARaKl3p8g.header
for https://example.com:443/index.php?
The 162.158.190.138 is a cloudflare address.
I don't know how to reproduce it. Where do I start to look?
I can correlate the lines from the error_log with the access_log based on time,
but I can't be sure they're directly related. There were three requests during
that same second, all of which were bots. One was a 200, one was a 301 and one
was a 404 for a file that was never there.
The file the error_log references is there on the filesystem:
find . -name \*7ihAG5M_Eyw0t7jA\*
./W_@/Ro6/7ihAG5M_Eyw0t7jA.header.vary
./W_@/Ro6/7ihAG5M_Eyw0t7jA.header
Here are the cache options from the virtual host config:
CacheQuickHandler off
CacheLock on
CacheLockPath /tmp/mod_cache-lock
CacheLockMaxAge 5
CacheIgnoreHeaders Set-Cookie
CacheRoot "/var/cache/httpd"
# Enable the X-Cache-Detail header
CacheDetailHeader on
CacheEnable disk "/"
CacheHeader on
CacheDefaultExpire 800
CacheMaxExpire 64000
CacheIgnoreNoLastMod On
CacheDirLevels 2
CacheDirLength 3
I also notice the cache directory (/var/cache/httpd) grows boundlessly. At one
time htcacheclean was running from systemd, but that doesn't look to be the
case any longer.
Should I be investigating the HTTP cache control headers? Is that related or
helpful?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org