Public bug reported:

There is a script (/etc/resolvconf/update-libc.d/squid)  provided by the
squid package which calls:

  invoke-rc.d reload squid || true

The thing is, that command somehow does not cause the squid to reload.
This is particularly painful when Ubuntu is being contained in
VirtualBox and some resolv.conf changes are done during the boot
process. I.e. after the system boot the squid proxy server is just not
working (it returns HTTP/500 and HTTP header X-Squid-Error:
ERR_CANNOT_FORWARD). In access log one can see something like this:

  1518190105.150      0 127.0.0.1 TCP_MISS/500 4495 GET 
http://security.ubuntu.com/ubuntu/dists/artful-security/InRelease - HIER_NONE/- 
text/html
  1518190105.153      0 127.0.0.1 TCP_MISS/500 4474 GET 
http://pl.archive.ubuntu.com/ubuntu/dists/artful/InRelease - HIER_NONE/- 
text/html 

I.e. HIER_NONE appears practically after 0 miliseconds means that squid
is experiencing connectivity problems.

That being said, reloading squid using systemd equivalent of the invoke-
rc.d command works just fine (in the script also):

  systemctl reload squid || true

So, to sum up, I would like to ask to fix the squid package by either:
* Change /etc/resolvconf/update-libc.d/squid to use `systemctl reload squid`
* Make `invoke-rc.d reload` work properly for squid

Environment:
Description:    Ubuntu 17.10
Release:        17.10
squid:
  Installed: 3.5.23-5ubuntu1.1
  Candidate: 3.5.23-5ubuntu1.1

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: squid 3.5.23-5ubuntu1.1
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Feb  9 17:03:47 2018
InstallationDate: Installed on 2016-08-03 (555 days ago)
InstallationMedia: Kubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
SourcePackage: squid3
UpgradeStatus: Upgraded to artful on 2017-10-05 (127 days ago)
mtime.conffile..etc.squid.squid.conf: 2017-11-27T19:29:36.332000

** Affects: squid3 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug artful

** Patch added: "Proposed fix: use systemd in 
/etc/resolvconf/update-libc.d/squid"
   
https://bugs.launchpad.net/bugs/1748471/+attachment/5051932/+files/squid.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1748471

Title:
  Automatic squid reload on resolv.conf update does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/1748471/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to