[squid-users] Squid wont work

From: Bernhard Sageder <bernhard.sageder@dont-contact.us>
Date: Sat, 5 Apr 2003 18:51:23 +0200

Hi

When i try to start squid 2.52 stable2 on suse linux 8.0 i get folowing
error:

devil:~ # /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'.
2003/04/05 18:39:19| WARNING: Closing open FD 2
2003/04/05 18:39:19| Starting Squid Cache version 2.5.STABLE2 for
i686-pc-linux-gnu... 2003/04/05 18:39:19| Process ID 12768 2003/04/05
18:39:19| With 1024 file descriptors available 2003/04/05 18:39:19|
Performing DNS Tests... 2003/04/05 18:39:19| Successful DNS name lookup
tests... 2003/04/05 18:39:19| DNS Socket created at 0.0.0.0, port 2199,
FD 3 2003/04/05 18:39:19| Adding nameserver 10.16.12.5 from
/etc/resolv.conf 2003/04/05 18:39:19| Adding nameserver 213.153.32.129
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 'nobody', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version 2.5.STABLE2): Terminated abnormally.
CPU Usage: 0.030 seconds = 0.010 user + 0.020 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 323
Aborted

But the directory have the right permission (i think)
What you can see here

devil:~ # ls -lag /usr/local/squid/var
total 20
drwxr-xr-x 5 root root 4096 Apr 5 11:42 .
drwxr-xr-x 9 root root 4096 Apr 5 00:11 ..
drwxr-xr-x 18 nobody root 4096 Apr 5 14:53 cache
drw-rw-rw- 2 nobody root 4096 Apr 5 09:14 logs
drwxr-xr-x 2 root root 4096 Apr 5 09:34 run

devil:~ # ls -lag /usr/local/squid/var/logs
total 8820
drw-rw-rw- 2 nobody root 4096 Apr 5 09:14 .
drwxr-xr-x 5 root root 4096 Apr 5 11:42 ..
-rw-rw-rw- 1 nobody root 3667232 Apr 5 09:14 access.log
-rwxr-xr-x 1 nobody root 195048 Apr 5 09:07 cache.log
-rwxr-xr-x 1 root root 2542 Mar 28 17:45 rcsquid.log
-rwxr-xr-x 1 root root 5129971 Apr 5 09:14 store.log
devil:~ #

What can i do
Received on Sat Apr 05 2003 - 09:52:17 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:42 MST