RE: [squid-users] empty acl

From: Jenny Lee <bodycare_5_at_live.com>
Date: Tue, 25 Oct 2011 21:09:38 +0000

That is because the file is not there as squid says.

Change 'ad_block.txt' to 'ad.block.txt' in your script and all will be fine.

Jenny

> From: zongosaiba_at_gmail.com
> To: squid-users_at_squid-cache.org
> Date: Tue, 25 Oct 2011 21:11:50 +0100
> Subject: RE: [squid-users] empty acl
>
> Amos,
>
> Thanks for your reply.
> I have deleted the ad_block.txt and downloaded it again
> I have chown the file to squid user and chmod 777 that file to make sure that there is no permissions issue. I have done the same thing for temp_ad_ in /temp directory.
> Still, I get the same error message as below which I do not get on Linux for some reasons.
> I believe the error occurs when the script asked squid to reconfigure "squid -k reconfigure" as you rightfully mentioned below.
> All the access are correct. So that would leave me with the other option you talked about in your reply which is "file is empty" when script runs "squid -k reconfigure". There I have to admit I am lost. Did I over look something or may be the syntax of the acl below is not working in FreeBSD ?
>
> Kind Regards,
>
> a "warning: empty ACL: acl ads
> > dstdom_regex "/usr/local/etc/squid/ad.block.txt everytime I run the
> > script that enables the refresh of the ad.block.txt file
>
> #!/bin/bash
> ## get new ad server list
> /usr/local/bin/wget -O /tmp/temp_ad_file \
> http://pgl.yoyo.org/adservers/serverlist.php?hostformat=squid-dstdom-regex;showintro=0
>
> ## clean html headers out of list
> cat /tmp/temp_ad_file | grep "(^|" > /usr/local/etc/squid/ad_block.txt
>
> ## refresh squid
> /usr/local/sbin/squid -k reconfigure
>
> ## rm temp file
> rm -rf /tmp/tmp_ad_file
>
>
> -----Original Message-----
> From: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
> Sent: 25 October 2011 02:46
> To: squid-users_at_squid-cache.org
> Subject: Re: [squid-users] empty acl
>
> On Mon, 24 Oct 2011 23:48:28 +0100, zongo saiba wrote:
> > Greetings to all ,
> >
> > Just a quick email as I get a "warning: empty ACL: acl ads
> > dstdom_regex "/usr/local/etc/squid/ad.block.txt everytime I run the
> > script that enables the refresh of the ad.block.txt file. I was using
> > linux (Ubuntu server
> > 11.10) and never got that. I am now on freebsd 8.2; this is when the
> > error above started. I modified the script and there is no issue
> > there.
> >
> > I can't figure out for the life of me why squid 3.1 is giving that
> > error message. Any help is much welcome.
>
> The file is empty at the time of Squid reconfigure/startup or the Squid user account does not have read access to load it.
>
> Amos
>
>
Received on Tue Oct 25 2011 - 21:09:45 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 26 2011 - 12:00:02 MDT