From owner-freebsd-questions@FreeBSD.ORG Wed Apr 20 13:06:33 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 727FE16A4CE for ; Wed, 20 Apr 2005 13:06:33 +0000 (GMT) Received: from ns01.connect.az (ns02.connect.az [62.212.236.162]) by mx1.FreeBSD.org (Postfix) with SMTP id 3E81743D39 for ; Wed, 20 Apr 2005 13:06:32 +0000 (GMT) (envelope-from tofik@oxygen.az) Received: (qmail 25651 invoked from network); 20 Apr 2005 16:06:56 -0000 Received: from unknown (HELO ?192.168.0.10?) (192.168.0.10) by office.connect.az with SMTP; 20 Apr 2005 16:06:56 -0000 Message-ID: <426653D8.8020004@oxygen.az> Date: Wed, 20 Apr 2005 18:06:32 +0500 From: Tofik Suleymanov User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050401) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Warren References: <200504191753.35868.shinjii@virusinfo.rdksupportinc.com> <42663901.8050701@oxygen.az> <200504202300.02853.shinjii@virusinfo.rdksupportinc.com> In-Reply-To: <200504202300.02853.shinjii@virusinfo.rdksupportinc.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: squid problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 13:06:33 -0000 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/