Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2005 18:06:32 +0500
From:      Tofik Suleymanov <tofik@oxygen.az>
To:        Warren <shinjii@virusinfo.rdksupportinc.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: squid problem
Message-ID:  <426653D8.8020004@oxygen.az>
In-Reply-To: <200504202300.02853.shinjii@virusinfo.rdksupportinc.com>
References:  <200504191753.35868.shinjii@virusinfo.rdksupportinc.com> <42663901.8050701@oxygen.az> <200504202300.02853.shinjii@virusinfo.rdksupportinc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warren wrote:
>>What do logs say ?
> 
> 
> 
> 2005/04/20 22:54:57| Starting Squid Cache version 2.5.STABLE9 for 
> i386-portbld-freebsd5.3...
> 2005/04/20 22:54:57| Process ID 8201
> 2005/04/20 22:54:57| With 1216 file descriptors available
> 2005/04/20 22:54:57| Performing DNS Tests...
> 2005/04/20 22:54:57| Successful DNS name lookup tests...
> 2005/04/20 22:54:57| DNS Socket created at 0.0.0.0, port 59981, FD 5
> 2005/04/20 22:54:57| Adding nameserusver 127.0.0.1 from /etc/resolv.conf
> FATAL: Cannot open '/usr/local/squid/logs/access.log' for writing.
>         The parent directory must be writeable by the
>         user 'squid', which is the cache_effective_user
>         set in squid.conf.
> Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
> CPU Usage: 0.044 seconds = 0.044 user + 0.000 sys
> Maximum Resident Size: 1844 KB
> Page faults with physical i/o: 0
> 
> 
> Squid previously used to work, then all of a sudden it would crash each time 
> and up till now i havent botherd to much with it.

Log shows you the all of the needed information: 
/usr/local/squid/logs/access.log is not writeable by the user "squid"

Following two commands should fix things up:

chown -R squid:squid /usr/local/squid/
chmod -R 750 /usr/local/squid/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?426653D8.8020004>