Squid failing to start
-
I see the following errors in my log after trying to start the squid service under Status: Services. Ive uninstalled/reinstalled the package numerous times. Any ideas?
Mar 25 14:17:32 php: : SQUID is installed but failed to start. Not installing redirector rule.
Mar 25 14:16:48 kernel: pid 54666 (squid), uid 0: exited on signal 6 (core dumped)
Mar 25 14:16:48 squid: getgrnam failed to find groupid for effective group 'squid'
Mar 25 14:16:48 kernel: pid 54656 (squid), uid 0: exited on signal 6 (core dumped)
Mar 25 14:16:48 kernel: pid 54655 (squid), uid 0: exited on signal 6 (core dumped)
Mar 25 14:16:47 squid: getgrnam failed to find groupid for effective group 'squid'
Mar 25 14:16:47 squid: getgrnam failed to find groupid for effective group 'squid'
Mar 25 14:16:47 kernel: pid 54645 (squid), uid 0: exited on signal 6 (core dumped)
Mar 25 14:16:47 squid: getgrnam failed to find groupid for effective group 'squid' -
cat /etc/group | grep squid
To see if your squid group still exist. If its missing you'll need to recreate it. I had the same problem once but unfortunately
recreating the group didn't solve it. I had to:1. uninstall squid from the package system.
2. pkg_delete squid port.
3. reinstall squid from package system. -
-
use pkg_info to get the name of the squid port.
on mine its squid-2.5.12_4.then pkg_delete squid-2.5.12_4.
Its appears your squid group is gone. reinstalling the squid port via the package system should fix that, thats if you don't want to go through the process of creating the group and adding squid user to it.
-
It appears I have 2 listed on my system, or is the last entry just an update?
squid-2.5.12 The successful WWW proxy cache and accelerator
squid-2.5.12_4 The successful WWW proxy cache and accelerator -
pkg_delete squid-2.5.12_4
pkg_delete: file '/usr/local/etc/rc.d/squid.sh' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/etc/squid'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
===> post-deinstallation information for squid-2.5.12_4Note:
squid related user accounts and groups were not removed.To remove the 'squid' user and the 'squid' group which were
created by a default installation of this package, runpw userdel -r -n squid -u 100
To ease updates, the cache and log directories and
all configuration files modified by you were preserved.Please remove them manually if you do not want to use
squid any longer. -
its safe to remove both.
-
excellent, that fixed it. reinstalled squid and the service is running. thx for your help.
-
Just curious, does your Squid stats work? When I click on the link it seems to be broken. I get a 404 - Not Found
-
Its broken. When time permits I'll probably take a look at it to see if I can sort that out, provided no-one is already working on it.
I'd get a chance to try out Scott's flashy CoreGUI. ;D