The default configuration is missing the /etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl file

Bug #1166667 reported by Vincent Ladeuil
72
This bug affects 16 people
Affects Status Importance Assigned to Milestone
squid-deb-proxy (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The provided default configuration contains:

 # this contains the package blacklist
acl blockedpkgs urlpath_regex "/etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl"

But this file is not provided by the package (nor any example about what the content should be).

This leads to cron.daily generating emails of the form:

From: Anacron <email address hidden>
Subject: Anacron job 'cron.daily' on example.com
To: <email address hidden>
Date: Tue, 9 Apr 2013 10:08:17 +0200 (CEST)

/etc/cron.daily/logrotate:
2013/04/09 09:28:41| strtokFile: /etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl not found
2013/04/09 09:28:41| Warning: empty ACL: acl blockedpkgs urlpath_regex "/etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl"

Commenting out the faulty line in /etc/squid-deb-proxy/squid-deb-proxy.conf breaks with (from /var/log/syslog):
Apr 15 10:22:56 saw squid3: Bungled squid-deb-proxy.conf line 73: http_access deny blockedpkgs

Related branches

Vincent Ladeuil (vila)
description: updated
Revision history for this message
AlberT (dralbert) wrote :

This is fixed in 0.6.5 (see bug #1005257)

Revision history for this message
AlberT (dralbert) wrote :

Just updated to new version .. obviously it overwrote my "patch" .. bug still there .. please consider it

Revision history for this message
AlberT (dralbert) wrote :

My apologies, in the previous comment I'm referring to 12.04 LTS updates ...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in squid-deb-proxy (Ubuntu):
status: New → Confirmed
Revision history for this message
Andreas Oberritter (mtdcr) wrote :

This warnings still appears in 13.10.

Revision history for this message
velofreak (velofreak) wrote :

This warnings still appears in 14.04-armhf.

Revision history for this message
Brendan_P (brendan-p) wrote :

Confirmed seeing in 14.04 x86_64

Revision history for this message
Chris Glass (tribaal) wrote :

This should be fixed in the next version of squid-deb-proxy when it's released.

Changed in squid-deb-proxy (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package squid-deb-proxy - 0.8.10

---------------
squid-deb-proxy (0.8.10) unstable; urgency=medium

  [ Michael Vogt ]
  * debian/po/nl.po:
    - add Dutch translation of squid-deb-proxy debconf messages,
      thanks to Frans Spiesschaert (closes: 766519)

  [ Chris Glass ]
  * Don't remove the package blacklist file if it is empty when
    gathering rules. This should fix LP: #1166667 (closes: #775545)

 -- Michael Vogt <email address hidden> Thu, 29 Jan 2015 15:50:49 +0100

Changed in squid-deb-proxy (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Marius Gedminas (mgedmin) wrote :

Unfortunately this is not fixed.

    $ apt-cache policy squid-deb-proxy
    squid-deb-proxy:
      Installed: 0.8.10
      Candidate: 0.8.10
      Version table:
     *** 0.8.10 0
            500 http://lt.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
            100 /var/lib/dpkg/status

Every night I get an email like this:

    From: Anacron <root@mymachine>
    To: root@mymachine
    Subject: Anacron job 'cron.daily' on mymachine
    Date: Fri, 9 Oct 2015 07:58:48 +0300 (EEST)

    /etc/cron.daily/logrotate:
    2015/10/09 07:55:22| Warning: empty ACL: acl blockedpkgs urlpath_regex "/etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl"

Revision history for this message
Mark Fraser (launchpad-mfraz) wrote :

Still seeing this on 16.04:
apt-cache policy squid-deb-proxy
squid-deb-proxy:
  Installed: 0.8.14
  Candidate: 0.8.14
  Version table:
 *** 0.8.14 500

/etc/cron.daily/logrotate:
squid: ERROR: Could not send signal 10 to process 899: (3) No such process
error: error running shared postrotate script for '/var/log/squid/*.log '
2017/01/27 06:25:04| Warning: empty ACL: acl blockedpkgs urlpath_regex "/etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl"
run-parts: /etc/cron.daily/logrotate exited with return code 1

Revision history for this message
Peter Goodall (pjgoodall) wrote :

I am seeing this in 16.04 :

----

/etc/cron.daily/logrotate:
2017/08/08 14:00:10| Warning: empty ACL: acl blockedpkgs urlpath_regex "/etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl"

---

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.