Help with squid Swap file
I have just installed squid on another machine and have gotten a error message that i have never seen before. Here is the error
[root@server root]# vi /usr/local/squid/etc/squid.conf
[root@server root]# /usr/local/squid/sbin/squid -z
2004/03/09 00:02:32| Creating Swap Directories
FATAL: Failed to make swap directory /usr/local/squid/var/cache/00/05: (13) Permission denied
Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 10
[root@server root]# cd /usr/local/squid/var/cache/00/
[root@server 00]# ls
00 01 02 03 04
[root@server 00]# mkdir 05
[root@server 00]# cd
[root@server root]# /usr/local/squid/sbin/squid -z
2004/03/09 00:03:22| Creating Swap Directories
FATAL: Failed to make swap directory /usr/local/squid/var/cache/00/06: (13) Permission denied
Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 10
[root@server root]#
[root@server root]# vi /usr/local/squid/etc/squid.conf
[root@server root]# /usr/local/squid/sbin/squid -z
2004/03/09 00:02:32| Creating Swap Directories
FATAL: Failed to make swap directory /usr/local/squid/var/cache/00/05: (13) Permission denied
Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 10
[root@server root]# cd /usr/local/squid/var/cache/00/
[root@server 00]# ls
00 01 02 03 04
[root@server 00]# mkdir 05
[root@server 00]# cd
[root@server root]# /usr/local/squid/sbin/squid -z
2004/03/09 00:03:22| Creating Swap Directories
FATAL: Failed to make swap directory /usr/local/squid/var/cache/00/06: (13) Permission denied
Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 10
[root@server root]# /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'.
2004/03/09 00:11:30| WARNING: Closing open FD 2
2004/03/09 00:11:30| Starting Squid Cache version 2.5.STABLE4 for i586-pc-linux-gnu...
2004/03/09 00:11:30| Process ID 2411
2004/03/09 00:11:30| With 1024 file descriptors available
2004/03/09 00:11:30| Performing DNS Tests...
2004/03/09 00:11:30| Successful DNS name lookup tests...
2004/03/09 00:11:30| DNS Socket created at 0.0.0.0, port 1027, FD 3
2004/03/09 00:11:30| Adding nameserver 207.69.188.187 from /etc/resolv.conf
2004/03/09 00:11:30| Adding nameserver 207.69.188.186 from /etc/resolv.conf
FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.
The parent directory must be writeable by the
user 'squidadm', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
CPU Usage: 0.050 seconds = 0.040 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 287
Aborted
[root@server root]# cd /usr/local/squid/var/logs/
[root@server logs]# ls
[root@server var]# ls -l
total 8
drwxr-xr-x 3 root root 4096 Mar 7 23:07 cache
drwxr-xr-x 2 root root 4096 Feb 21 20:52 logs
How many of these swap directorys do I need? Also how do I change the folder so a use "squidadm" can write to it? I am not sure whats up. I can not start squid yet.
Last edited by phatboyz; 03-09-2004 at 02:27 PM.
|