Welcome! Log In Create A New Profile

Advanced

Re: md5 fastcgi cache collisions

Maxim Dounin
September 25, 2012 01:02AM
Hello!

On Mon, Sep 24, 2012 at 11:07:14PM -0400, Ian Evans wrote:

> On 24/09/2012 8:27 PM, Maxim Dounin wrote:
>
> >Is the file reported is the same in all errors?
>
> Yes in the sense that the "cr" in /cr/nameofperson is an
> extensionless php file.

I mean to ask about cache file, as reported in the error message
provided. But you may want to just provide several error messages
to show variations possible.

> >Most likely it's a corrupted cache file. Looking into the cache
> >file should be enough to see if it's indeed corrupted.
>
> just did a 'more cachefilename' and it looks fine but the log
> reported a collision.

Fine - as a cache file, with binary header, "KEY: ..." line and so
on?

> >Intresting question is to find out how the file was corrupted.
> >This may be either something "normal" like filesystem corruption
> >after power failure, or something in nginx. The later case might
> >need investigation.
> >
> >If you just want to get rid of the messages you may try to remove
> >the cache file, it should fix things. Normal nginx behaviour is
> >to replace such currupted cache files with new responses, but it
> >looks like it doesn't work in your case, likely because responses
> >aren't cacheable.
>
> I went to one of the pages. The error log reported an md5 collision.
> I removed the file, cleared my cache and requested it again. Another
> md5 collision in the error log, but again the file looked fine.

You mean - md5 collision is reported on first request after you've
removed the cache file? Or on second request, when another cache
file is already created by first request?

What does nginx -V show?

And could you please provide hd/xxd of several first bytes of a
cache file, up to and including "KEY: " line?

It would be also good to look at config and debug log of two
requests after the cache file removal.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

md5 fastcgi cache collisions

Ian M. Evans September 22, 2012 04:40PM

Re: md5 fastcgi cache collisions

Maxim Dounin September 24, 2012 08:28PM

Re: md5 fastcgi cache collisions

Ian Evans September 24, 2012 11:08PM

Re: md5 fastcgi cache collisions

Maxim Dounin September 25, 2012 01:02AM

Re: md5 fastcgi cache collisions

Ian Evans September 25, 2012 02:00AM

Re: md5 fastcgi cache collisions

Maxim Dounin September 25, 2012 09:18AM

Re: md5 fastcgi cache collisions

Ian Evans September 25, 2012 02:34PM

Re: md5 fastcgi cache collisions

Ian Evans September 25, 2012 02:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready