[K12OSN] k12ltsp 4.2.1 & squid

Eric Harrison eharrison at mail.mesd.k12.or.us
Sun Apr 10 22:20:04 UTC 2005


On Sun, 10 Apr 2005 bear2bar at netscape.net wrote:

> Hi Eric,
>
> Thanks for the response.
>
> /var/log/squid/cache.log -> no such file or directory !
> /var/log/messages
>
> [root at krypton ~]# service squid start
> init_cache_dir /var/spool/squid... /etc/init.d/squid: line 54: 22862 Aborted                 $SQUID -z -F -D >>/var/log/squid/squid.out 2>&1
> Starting squid: /etc/init.d/squid: line 53: 22863 Aborted                 $SQUID $SQUID_OPTS >>/var/log/squid/squid.out 2>&1
>                                                           [FAILED]

What is in /var/log/squid/squid.out ?

Line 54 of /etc/init.d/squid is where it tries to create the cache
directories (the default is /var/spool/squid). It also is the first
time that squid is called. So that means something is wrong with
your cache directory or something is wrong with your squid config.
The answer should be in /var/log/squid/squid.out.


Take a look at /etc/squid/squid.conf and see if you have any
custom cache_dir entries. If you do, verify that that the 
directory specified for each entry exists and is writable by
the squid user. If there are no custom cache_dir entries, check
/var/spool/squid

You didn't mention AVC messages in /var/log/messages, so I assume
it is not a SELinux problem. You can double-check by running
this command and then try to start squid:

 	echo 0 > /selinux/enforce
 	/sbin/service squid start

If squid then starts, let us know and we'll tell you how to fix
it.

Finally, there may be something wrong with your squid config.
One thing I've seen is that broken DNS will break your squid config.
Make sure you have the hostname/IP address entered in /etc/hosts
and then try to start squid again.  The DNS problem and any other
squid-config related issue should show up in /var/log/squid/squid.out

-Eric





More information about the K12OSN mailing list