[squid-users] Cache_peer breaks Squid 5.5

Alex Rousskov rousskov at measurement-factory.com
Tue Dec 12 18:21:53 UTC 2023


On 2023-12-12 11:25, HENDERSON, GAVEN L RTX wrote:
> Sorry if this has already been answered.  I couldn't find anything online regarding the problem I am experiencing.  I have a Squid server acting as a proxy relay.  It listens on two ports and, depending on which port a request comes in, the request is forwarded to a specific upstream proxy.  Everything was working prior to the 5.5 update.  Now, Squid starts but crashes a few seconds later.  I have traced it down to the cache_peer directives.  If I comment them out, the service is stable.  I have also tried the stock configuration with only the cache_peer directive added and it still crashes so I don't think the problem is being triggered by some other part of my configuration.  I'm not seeing anything particularly helpful in the messages log:

What do you see in Squid's cache.log? I would expect a message about 
Squid hitting an assertion or detecting another catastrophic problem 
before crashing. If there is nothing in cache.log, consider (enabling 
core dumps in your OS configuration and) getting a backtrace from the 
crashed Squid process.


HTH,

Alex.



> Nov 24 15:17:30 svr-squid squid[2259]: Squid Parent: squid-1 process 2290 exited due to signal 6 with status 0
> Nov 24 15:17:30 svr-squid squid[2259]: Squid Parent: squid-1 process 2290 will not be restarted for 3600 seconds due to repeated, frequent failures
> Nov 24 15:17:30 svr-squid squid[2259]: Exiting due to repeated, frequent failures
> Nov 24 15:17:30 svr-squid systemd[1]: mailto:systemd-coredump at 21-2295-0.service: Deactivated successfully.
> Nov 24 15:17:30 svr-squid systemd[1]: squid.service: Main process exited, code=exited, status=1/FAILURE
> Nov 24 15:17:30 svr-squid systemd[1]: squid.service: Failed with result 'exit-code'.
> 
> Here is my configuration:
> 
> http_port 192.168.0.1:80 name=port80
> http_port 192.168.0.1:81 name=port81
> 
> acl port80_acl myportname port80
> acl port81_acl myportname port81
> acl bypass_parent dstdom_regex "/etc/squid/bypass_parent.txt"
> acl domain_blacklist dstdomain "/etc/squid/domain_blacklist.txt"
> 
> http_access deny all domain_blacklist
> always_direct allow bypass_parent
> never_direct allow port80_acl
> never_direct allow port81_acl
> 
> cache_peer proxy1.domain.com parent 80 0 default name=proxy80
> cache_peer_access proxy80 allow port80_acl
> cache_peer_access proxy80 deny all
> 
> cache_peer proxy2.domain.com parent 80 0 default name=proxy81
> cache_peer_access proxy81 allow port81_acl
> cache_peer_access proxy81 deny all
> 
> http_access allow all
> 
> logformat squid [%tl] %>a %>eui %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> https://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list