squid restart fails

Bug #577693 reported by Henry Wertz on 2010-05-09
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
squid (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: squid

     Any method of restarting squid fails to restart it. Such as:
============
user@scrap:~$ sudo /etc/init.d/squid restart
[sudo] password for user:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service squid restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart squid
restart: Job failed to restart
=============
user@scrap:~$ sudo service squid restart
[sudo] password for user:
restart: Job failed to restart

===========
user@scrap:~$ sudo restart squid
restart: Job failed to restart
==========

     After a while, a "start" using any of these methods works fine.
     I'm assuming the root problem is that squid takes considerable time to shut down; in the previous init system, "/etc/init.d/squid stop" would not return until squid had exited. The new behavior of returning immediately is quite desirable in the effort to speed suspend and shutdown times, but I think "restart" is still just implemented by "stop" immediately followed by a "start". If the current "stop" behavior is retained, I would guess "restart", instead of being "stop" then "start", will have to have a check for pid exit placed into it. squid shutdowns are on the order of 10s of seconds so if this involves polling I would check every second at the most.

Find attached my squid.conf, in case there's some configuration workaround...

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: squid 2.7.STABLE7-1ubuntu12
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Sat May 8 23:54:16 2010
ExecutablePath: /usr/sbin/squid
ProcEnviron: PATH=(custom, no user)
SourcePackage: squid

Henry Wertz (hwertz) wrote :
Henry Wertz (hwertz) wrote :

Here's squid.conf, in case there's some configuration option that does what I need

Chuck Short (zulcss) wrote :

Which version of squid are you using?

chuck

Changed in squid (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Henry Wertz (hwertz) wrote :

I am running 2.7.STABLE7-1ubuntu12. Yeah, hadn't realized I had that 3.0RC1 config file (I have another proxy running on a gentoo box, which probably has 3.0). I will try just dropping in the stock ubuntu squid.conf to make sure it's not some oddity of my config file preventing it from restarting. If it still doesn't restart, I suspect this is the root cause of bugs 561750 (squid starts and stops immediately (after upgrade from karmic to lucid)) and 573839 (Local Squid quits working on interface change).

Henry Wertz (hwertz) wrote :

Yep. With stock config, just telnetting to localhost 3128 and getting one item, restart is fine. But the browser, I think it keeps persistent connections open so squid doesn't immediately quit and the restart fails.

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

Other bug subscribers