disk_cache: rename tempfile to hdrsfile failed ERROR

disk_cache: rename tempfile to hdrsfile failed ERROR

am 18.10.2007 04:29:51 von Mitch McBride

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

Re: disk_cache: rename tempfile to hdrsfile failed ERROR

am 18.10.2007 05:58:38 von David McKenzie

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/
>
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

Re: disk_cache: rename tempfile to hdrsfile failed ERROR

am 18.10.2007 09:49:23 von Mitch McBride

On Oct 17, 8:58 pm, David McKenzie wrote:
> 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/
> >
>
> 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

Re: disk_cache: rename tempfile to hdrsfile failed ERROR

am 18.10.2007 10:41:39 von HansH

"Mitch McBride" schreef in bericht
news:1192693763.976252.156160@z24g2000prh.googlegroups.com.. .
>> > [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
>>
> 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

Re: disk_cache: rename tempfile to hdrsfile failed ERROR

am 18.10.2007 19:02:13 von Mitch McBride

On Oct 18, 1:41 am, "HansH" wrote:
> "Mitch McBride" schreef in berichtnews:1192693763.976252.156160@z24g2000prh.googlegroup s.com...
>
> >> > [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
>
> > 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

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

Re: disk_cache: rename tempfile to hdrsfile failed ERROR

am 25.10.2007 18:45:28 von Mitch McBride

On Oct 18, 10:02 am, Mitch McBride wrote:
> On Oct 18, 1:41 am, "HansH" wrote:
>
>
>
> > "Mitch McBride" schreef in berichtnews:1192693763.976252.156160@z24g2000prh.googlegroup s.com...
>
> > >> > [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
>
> > > 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
>
> 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.