[Bug 1748471] Re: Automatic squid reload on resolv.conf update does not work
[Expired for squid3 (Ubuntu) because there has been no activity for 60 days.] ** Changed in: squid3 (Ubuntu) Status: Incomplete => Expired -- 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
[Bug 1748471] Re: Automatic squid reload on resolv.conf update does not work
Or let me put it the other way. Below goes what I have figured out so far. 1. Whenever I start my virtual machine (from a "Powered Off" state) internet via proxy does not work. $ env | grep -i http_proxy HTTP_PROXY=http://localhost:48080/ http_proxy=http://localhost:48080/ $ systemctl status squid ● squid.service - LSB: Squid HTTP Proxy version 3.x Loaded: loaded (/etc/init.d/squid; generated; vendor preset: enabled) Active: active (running) since Fri 2018-02-16 13:11:38 CET; 7min ago Docs: man:systemd-sysv-generator(8) Process: 2081 ExecReload=/etc/init.d/squid reload (code=exited, status=0/SUCCESS) Process: 383 ExecStart=/etc/init.d/squid start (code=exited, status=0/SUCCESS) Tasks: 4 (limit: 4915) CGroup: /system.slice/squid.service ├─ 539 /usr/sbin/squid -YC -f /etc/squid/squid.conf ├─ 541 (squid-1) -YC -f /etc/squid/squid.conf ├─2095 (logfile-daemon) /var/log/squid/access.log └─2285 (pinger) Feb 16 13:11:38 hatchling squid[539]: Squid Parent: will start 1 kids Feb 16 13:11:38 hatchling squid[539]: Squid Parent: (squid-1) process 541 started Feb 16 13:11:49 hatchling systemd[1]: Reloading LSB: Squid HTTP Proxy version 3.x. Feb 16 13:11:49 hatchling squid[904]: * Reloading Squid HTTP Proxy configuration files Feb 16 13:11:49 hatchling squid[904]:...done. Feb 16 13:11:49 hatchling systemd[1]: Reloaded LSB: Squid HTTP Proxy version 3.x. Feb 16 13:13:58 hatchling systemd[1]: Reloading LSB: Squid HTTP Proxy version 3.x. Feb 16 13:13:58 hatchling squid[2081]: * Reloading Squid HTTP Proxy configuration files Feb 16 13:13:58 hatchling squid[2081]:...done. Feb 16 13:13:58 hatchling systemd[1]: Reloaded LSB: Squid HTTP Proxy version 3.x. $ sudo netstat -tulpn | grep 48080 tcp6 0 0 :::48080:::*LISTEN 541/(squid-1) $ wget google.com --2018-02-16 13:20:59-- http://google.com/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:48080... connected. Proxy request sent, awaiting response... 500 Internal Server Error 2018-02-16 13:20:59 ERROR 500: Internal Server Error. The curious thing is that squid listens to port 48080 (as stated in my configuration). I.e. I assume it *has* read the configuration file. 2. Issuing `invoke-rc.d squid reload` manually does help: $ sudo invoke-rc.d squid reload $ systemctl status squid ● squid.service - LSB: Squid HTTP Proxy version 3.x Loaded: loaded (/etc/init.d/squid; generated; vendor preset: enabled) Active: active (running) since Fri 2018-02-16 13:11:38 CET; 11min ago Docs: man:systemd-sysv-generator(8) Process: 2674 ExecReload=/etc/init.d/squid reload (code=exited, status=0/SUCCESS) Process: 383 ExecStart=/etc/init.d/squid start (code=exited, status=0/SUCCESS) Tasks: 5 (limit: 4915) CGroup: /system.slice/squid.service ├─ 539 /usr/sbin/squid -YC -f /etc/squid/squid.conf ├─ 541 (squid-1) -YC -f /etc/squid/squid.conf ├─2285 (pinger) ├─2688 (logfile-daemon) /var/log/squid/access.log └─2689 (pinger) Feb 16 13:11:49 hatchling squid[904]:...done. Feb 16 13:11:49 hatchling systemd[1]: Reloaded LSB: Squid HTTP Proxy version 3.x. Feb 16 13:13:58 hatchling systemd[1]: Reloading LSB: Squid HTTP Proxy version 3.x. Feb 16 13:13:58 hatchling squid[2081]: * Reloading Squid HTTP Proxy configuration files Feb 16 13:13:58 hatchling squid[2081]:...done. Feb 16 13:13:58 hatchling systemd[1]: Reloaded LSB: Squid HTTP Proxy version 3.x. Feb 16 13:23:09 hatchling systemd[1]: Reloading LSB: Squid HTTP Proxy version 3.x. Feb 16 13:23:09 hatchling squid[2674]: * Reloading Squid HTTP Proxy configuration files Feb 16 13:23:09 hatchl
[Bug 1748471] Re: Automatic squid reload on resolv.conf update does not work
Hi Christopher, Sorry for the invoke-rc.d command mistake: it was jsut a typo. Of course you are right and the actual command there like you have said. As for the resolvconf, it is installed on my machine: $ apt policy resolvconf resolvconf: Installed: 1.79ubuntu8 Candidate: 1.79ubuntu8 Version table: *** 1.79ubuntu8 500 500 http://pl.archive.ubuntu.com/ubuntu artful/universe amd64 Packages 500 http://pl.archive.ubuntu.com/ubuntu artful/universe i386 Packages 100 /var/lib/dpkg/status I would like to underline that on my Artful installation `invoke-rc.d squid reload` somehow does not cause Squid to re-load the configuration correctly: it is not able to go to network (although network is set up correctly) showing instant HIER_NONE/ in the access.log. However, like in your case there are entries in /var/log/syslog about squid reloading: Feb 15 19:17:39 hatchling systemd[1]: Reloading LSB: Squid HTTP Proxy version 3.x. Feb 15 19:17:39 hatchling squid[4613]: * Reloading Squid HTTP Proxy configuration files Feb 15 19:17:39 hatchling squid[4613]:...done. Feb 15 19:17:39 hatchling systemd[1]: Reloaded LSB: Squid HTTP Proxy version 3.x. -- 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
[Bug 1748471] Re: Automatic squid reload on resolv.conf update does not work
Hi, the command is actually: $ invoke-rc.d squid reload not $ invoke-rc.d reload squid Fortunately the latter is what I already see in debian/squid.resolvconf which is what becomes /etc/resolvconf/update-libc.d/squid I see in the log of the daemon correct reload entries when running the above: Feb 16 10:16:11 bionic-test systemd[1]: Reloading LSB: Squid HTTP Proxy version 3.x. Feb 16 10:16:11 bionic-test squid[19363]: * Reloading Squid HTTP Proxy configuration files Feb 16 10:16:11 bionic-test squid[19363]:...done. So IMHO it is not the change invoke.rc -> systemctl that is needed. Instead I'd assume you are affected by bug 1713803 Could you check if resolveconf is even installed (so that the hooks would be processed)? ** Changed in: squid3 (Ubuntu) Status: New => Incomplete -- 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
[Bug 1748471] Re: Automatic squid reload on resolv.conf update does not work
The attachment "Proposed fix: use systemd in /etc/resolvconf/update- libc.d/squid" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: 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