Apache Server configuration support - disk_cache: rename tempfile to hdrsfile failed ERROR

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > October 2007 > disk_cache: rename tempfile to hdrsfile failed ERROR





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author disk_cache: rename tempfile to hdrsfile failed ERROR
Mitch McBride

2007-10-18, 1:34 am

Hello,

I recently implemented disk caching on my apache server. As the
server serves content and that content is cached, the following
message becomes more and more frequent in the error log:

[error] (2)No such file or directory: disk_cache: rename tempfile to
hdrsfile failed: /usr/local/apache6/cache//aptmpvRnbm6 -> /usr/local/
apache6/cache//kxh/qau/zdc/1hF/rj@/h1qn0xA.header

to the point where they are a few dozen or so such errors per minute.
Any help resolving this would be appreciated.

Thanks,
Mitch

Cache Config:
CacheRoot /usr/local/apache6/cache/
CacheEnable disk /images
CacheDirLevels 5
CacheDirLength 3


Build:
Server version: Apache/2.2.6 (Unix)
Server built: Oct 7 2007 23:39:11
Server's Module Magic Number: 20051115:5
Server loaded: APR 1.2.11, APR-Util 1.2.10
Compiled using: APR 1.2.11, APR-Util 1.2.10
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache6/"
-D SUEXEC_BIN="/usr/local/apache6//bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"


System:
Linux imp-web05 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005
x86_64 x86_64 x86_64 GNU/Linux

David McKenzie

2007-10-18, 1:34 am

Mitch McBride wrote:
> Hello,
>
> I recently implemented disk caching on my apache server. As the
> server serves content and that content is cached, the following
> message becomes more and more frequent in the error log:
>
> [error] (2)No such file or directory: disk_cache: rename tempfile to
> hdrsfile failed: /usr/local/apache6/cache//aptmpvRnbm6 -> /usr/local/
> apache6/cache//kxh/qau/zdc/1hF/rj@/h1qn0xA.header
>
> to the point where they are a few dozen or so such errors per minute.
> Any help resolving this would be appreciated.
>
> Thanks,
> Mitch
>
> Cache Config:
> CacheRoot /usr/local/apache6/cache/
> <snip>

Remove the trailing slash and try again. As you can see from the error
messages, it is adding a slash itself, so it is superfluous and will
fail on most systems.

--
DM davidm@cia.com.au

'It would go against respecting principles and truth if you have to
respect and accept anything just because it is the other side's view.'
- Kim Jung Ill
Mitch McBride

2007-10-18, 7:42 am

On Oct 17, 8:58 pm, David McKenzie <dav...@cia.com.au> wrote:
> Mitch McBride wrote:
>
>
>
>
>
>
> Remove the trailing slash and try again. As you can see from the error
> messages, it is adding a slash itself, so it is superfluous and will
> fail on most systems.
>
> --
> DM dav...@cia.com.au
>
> 'It would go against respecting principles and truth if you have to
> respect and accept anything just because it is the other side's view.'
> - Kim Jung Ill- Hide quoted text -
>
> - Show quoted text -


After updating the confige, the problem persists:

(2)No such file or directory: disk_cache: rename tempfile to hdrsfile
failed: /usr/local/apache6/cache/aptmpRTj1cY -> /usr/local/apache6/
cache/0@l/JjP/cYk/Zot/iX@/OlK0EJw.header

There are gigs of cache that have correctly saved to disk. It looks
like an intermittent problem. Could this be a file system problem
regard a maximum number of directories or files per directory?

Thanks,
Mitch

HansH

2007-10-18, 7:42 am

"Mitch McBride" <mitch.mcbride@gmail.com> schreef in bericht
news:1192693763.976252.156160@z24g2000prh.googlegroups.com...
> After updating the confige, the problem persists:
>
> (2)No such file or directory: disk_cache: rename tempfile to hdrsfile
> failed: /usr/local/apache6/cache/aptmpRTj1cY -> /usr/local/apache6/
> cache/0@l/JjP/cYk/Zot/iX@/OlK0EJw.header
>
> There are gigs of cache that have correctly saved to disk. It looks
> like an intermittent problem. Could this be a file system problem
> regard a maximum number of directories or files per directory?


Or is the @ a common character on all failures?
- It need escaping on a manual move ...-


HansH


Mitch McBride

2007-10-18, 1:28 pm

On Oct 18, 1:41 am, "HansH" <ha...@invalid.invalid> wrote:
> "Mitch McBride" <mitch.mcbr...@gmail.com> schreef in berichtnews:1192693763.976252.156160@z24g2000prh.googlegroups.com...
>
>
>
>
>
> Or is the @ a common character on all failures?
> - It need escaping on a manual move ...-
>
> HansH


No, the filenames and directories have a variety of character
patterns:

[Thu Oct 18 09:58:18 2007] [error] (2)No such file or directory:
disk_cache: rename tempfile to hdrsfile failed: /usr/local/apache6/
cache/aptmpXskfeU -> /usr/local/apache6/cache/kR2/MPl/IuD/AUo/zNI/
cLxYQ3w.header
[Thu Oct 18 09:58:19 2007] [error] (2)No such file or directory:
disk_cache: rename tempfile to hdrsfile failed: /usr/local/apache6/
cache/aptmpNZqtzp -> /usr/local/apache6/cache/fDV/5Qr/uxb/qfB/JWT/
Et2W_Yw.header
[Thu Oct 18 09:58:20 2007] [error] (2)No such file or directory:
disk_cache: rename tempfile to hdrsfile failed: /usr/local/apache6/
cache/aptmpoDMVOF -> /usr/local/apache6/cache/oBr/zRa/Ns2/OjD/Lth/
uOfqxow.header

It looks like the top-level directory within the cache directory
doesn't exist:

stat /usr/local/apache6/cache/kR2
stat: cannot stat `/usr/local/apache6/cache/kR2': No such file or
directory

Thanks,
Mitch

Mitch McBride

2007-10-25, 1:25 pm

On Oct 18, 10:02 am, Mitch McBride <mitch.mcbr...@gmail.com> wrote:
> On Oct 18, 1:41 am, "HansH" <ha...@invalid.invalid> wrote:
>
>
>
>
>
>
>
>
>
>
> No, the filenames and directories have a variety of character
> patterns:
>
> [Thu Oct 18 09:58:18 2007] [error] (2)No such file or directory:
> disk_cache: rename tempfile to hdrsfile failed: /usr/local/apache6/
> cache/aptmpXskfeU -> /usr/local/apache6/cache/kR2/MPl/IuD/AUo/zNI/
> cLxYQ3w.header
> [Thu Oct 18 09:58:19 2007] [error] (2)No such file or directory:
> disk_cache: rename tempfile to hdrsfile failed: /usr/local/apache6/
> cache/aptmpNZqtzp -> /usr/local/apache6/cache/fDV/5Qr/uxb/qfB/JWT/
> Et2W_Yw.header
> [Thu Oct 18 09:58:20 2007] [error] (2)No such file or directory:
> disk_cache: rename tempfile to hdrsfile failed: /usr/local/apache6/
> cache/aptmpoDMVOF -> /usr/local/apache6/cache/oBr/zRa/Ns2/OjD/Lth/
> uOfqxow.header
>
> It looks like the top-level directory within the cache directory
> doesn't exist:
>
> stat /usr/local/apache6/cache/kR2
> stat: cannot stat `/usr/local/apache6/cache/kR2': No such file or
> directory
>
> Thanks,
> Mitch


I changed CacheDirLength 3 to CacheDirLength 2 and haven't received
the error in days. It must have been a file system issue with the
number of subdirectories in the 1st level of the cache directory.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com