Re: [squid-users] assertion failed: errorpage.cc

From: <mdecheser_at_comcast.net>
Date: Fri, 26 Jul 2013 15:26:00 +0000 (UTC)

> I think you need to read this first:
>
> http://wiki.squid-cache.org/SquidFaq/SquidMemory
>
> You definitely want to put more memory in the machine, the more the
> better... (up to a point since you are using 32 bit).

The link was definitely helpful in helping me tune the config, but it did not address the specific problem I posted about. I turned up logging using debug_options ALL,9 in the config, recycled, and found this:

2013/07/26 09:11:11.515| errorpage.cc(1048) BuildContent: No existing error page language negotiated for ERR_ACCESS_DENIED. Using default error file.
2013/07/26 09:11:11.515| assertion failed: errorpage.cc:1064: "(size_t)content->contentSize() == strlen(content->content())"

In the config, I had:

error_directory /opt/squid/logs

Turns out Squid was crashing because it couldn't find error pages. I changed this to point to where the squid RPM keeps the error files (at least for CentOS 6 / squid -v 3.1.10):

error_directory /usr/share/squid/errors/en

After correcting that entry in the config and recycling Squid, the error message has not reappeared, Squid has not crashed and has been otherwise stable (along with new, correctly sized cache_mem and cache_dir settings :) ).

Cheers,
MD
Received on Fri Jul 26 2013 - 15:26:05 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 26 2013 - 12:00:26 MDT