Search squid archive

Re: assertion failed: errorpage.cc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux