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 2006/03/02 10:11:47 UTC
DO NOT REPLY [Bug 38827] New: - mod_disk_cache trying to rename locked tempfile on 304 response
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38827>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38827
Summary: mod_disk_cache trying to rename locked tempfile on 304
response
Product: Apache httpd-2
Version: 2.2.0
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: regression
Priority: P2
Component: mod_cache
AssignedTo: bugs@httpd.apache.org
ReportedBy: dodger_web@yahoo.fr
When using mod_disk_cache in conjonction with mod_proxy, the mod_disk_cache
failed to update his cache after a 304 response to backend request is received.
My configuration is as following:
- build apache based on sources http-2.2.0-win32-rev2 with MS VC++7
- having applied patch based on rev374931 (cache_storage. Without that it
won't work.
- httpd.conf revelant parts:
CacheEnable disk /
CacheRoot "d:/somdir"
CacheDirLength 1
CacheDirLevels 1
CacheMaxExpire 604800
CacheDefaultExpire 604800
CacheLastModifiedFactor 2.0
SetEnvIf Request_URI "\.css$" force-no-vary
SetEnvIf Request_URI "\.gif$" force-no-vary
SetEnvIf Request_URI "\.hta$" force-no-vary
SetEnvIf Request_URI "\.html$" force-no-vary
SetEnvIf Request_URI "\.jpg$" force-no-vary
SetEnvIf Request_URI "\.js$" force-no-vary
SetEnvIf Request_URI "\.vbs$" force-no-vary
ProxyPass /dummy http://someserver/somedir/
- error.log:
[Wed Mar 01 17:55:04 2006] [debug] mod_cache.c(602): cache: Caching
url: /dummy/somefile.htm
[Wed Mar 01 17:55:04 2006] [debug] mod_cache.c(608): cache: Removing
CACHE_REMOVE_URL filter.
[Wed Mar 01 17:55:04 2006] [debug] mod_disk_cache.c(854): (OS 5)Access is
denied. : disk_cache: rename tempfile to varyfile failed:
d:/somedir/aptmphDPPNj -> d:/somedir/K/dJOTUGmp@MAIPFjfsNpFA.header
[Wed Mar 01 17:55:04 2006] [debug] mod_cache.c(796): (OS 5)Access is
denied. : cache: store_headers failed
[Wed Mar 01 17:55:04 2006] [debug] mod_proxy_http.c(1530): proxy: end body send
[Wed Mar 01 17:55:04 2006] [debug] proxy_util.c(1769): proxy: HTTPS: has
released connection for (*)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38827] - mod_disk_cache trying to rename locked tempfile on 304 response
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38827>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38827
dodger_web@yahoo.fr changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|mod_cache |mod_disk_cache
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38827] - mod_disk_cache trying to rename locked tempfile on 304 response
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38827>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38827
------- Additional Comments From dodger_web@yahoo.fr 2006-03-02 14:33 -------
Seems to be related to vary header set on cached page.
Adding this in httpd.conf does solve the problem.
"Header unset Vary"
But then, we're loosing the opportunity to control cache with VARY.
I did track the problem to this line of code in mod_disk_cache, line 851:
rv = safe_file_rename(conf, dobj->tempfile, dobj->hdrsfile,
r->pool);
Seems to not be able to overwrite an existing file.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org