[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] offlist question - squid



I reply to the list only because if I wasn't a squid user I would
never have found out about Cobalt. (apparently some ones came with
squid embedded as a proxy server.) These are for the most part squid FAQs.

On Tue, Nov 11, 2003 at 02:53:53AM -0600, Ted wrote:
> I get this error after trying to run squid after compiling it.
> 
> after i run this :
> 
> /usr/local/squid/sbin/squid -NCd1

In general squid needs to be started by root, the process will then
change to run as the effective user.

You also need to run squid the first time with the '-z' option to make
sure your cache directories have been properly created and exist. Then
you run it again normally. I'm not sure what the -NCd1 does.
 
> 
> I get this. I have tried changing permisions ownership and the whole bit and
> the error persists.
> 
> /usr/local/squid/sbin/squid -NCd1
> WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log
> /usr/local/squid/var/logs/cache.log: Permission denied
>          messages will be sent to 'stderr'.

This message means that you have not created the directories and made
them writeable by the squid effective user; 'nobody' by default is the
effective user.

> 2003/11/11 03:03:24| WARNING: Closing open FD    2
> 2003/11/11 03:03:24| Starting Squid Cache version 2.5.STABLE4 for
> sparc-sun-solaris2.9...
> 2003/11/11 03:03:24| Process ID 25527
> 2003/11/11 03:03:24| With 32768 file descriptors available
> 2003/11/11 03:03:24| Performing DNS Tests...
> 2003/11/11 03:03:24| Successful DNS name lookup tests...
> 2003/11/11 03:03:24| DNS Socket created at 0.0.0.0, port 35378, FD 3
> 2003/11/11 03:03:24| Adding nameserver 216.140.141.11 from /etc/resolv.conf
> 2003/11/11 03:03:24| Adding nameserver 127.0.0.1 from /etc/resolv.conf

perfectly normal


> FATAL: Cannot open '/usr/local/squid/var/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.

The FATAL is stopping you. It looks like you have decided to create a
user called squid to be the effective user, instead of the default
'nobody'. This is fine. You still need to start as root, make sure the
user squid exists, and owns (or has write access) to the mentioned
files and the cache files.


> Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
> CPU Usage: 0.120 seconds = 0.060 user + 0.060 sys
> Maximum Resident Size: 0 KB
> Page faults with physical i/o: 0
> Abort
> 
> 
> 
> 
> Ted Green
> ted@xxxxxxxxxxxxxxx
> Total Access Networks Inc.
> CyberShop #1
> 100 North Main Street
> Elgin Texas 78621
> 512-281-3010
> 
> Supplying:
> Network Builds and Development
> Wiring - Residential and Commercial
> PC repairs and upgrades
> National Dialup Access
> National ISDN Access
> Regional Fixed Wireless Access
> Web Hosting
> Web Design & Creation
> Domain Registration
> Free Domain Parking
> Cheap Ecommerce
> Credit Card Services
> Collocation
> 
> See web site for more details:
> http://www.totalaccess.net
> 
> Order your products or services today!
> http://webplus.totalaccess.net
> 
> Copyright 1995-2003 Total Access Networks, Inc. All Rights Reserved.
> Designated
> trademarks and brands are the property of their respective owners.
> 
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users

-- 
Josh Kuperman                       
josh@xxxxxxxxxxxxxxxxxx