I installed Squid3 on Rasbian, and did some minor configuration. Then I set it up to cache to an auto mounting usb drive.
I was looking over the logs and found only TCP_MISS
. I was hoping after a little bit of using Squid with the I'd see some hits. I looked in the cache (the ufs tree is there) and it appears to be caching files.
I ran squid -X -d9
and got errors that the log files could not be written:
FATAL: Cannot open '/var/log/squid3/access.log' for writing.
The parent directory must be writeable by the
user 'proxy', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 3.1.20): Terminated abnormally.
the permissions for /var/log/squid3
are:
drwxrwxr-x 2 proxy proxy 4096 Apr 29 14:13 squid3
and inside:
-rwxrwx--- 1 proxy proxy 0 Apr 29 06:25 access.log
-rwxrwx--- 1 proxy proxy 303469 Apr 28 23:41 access.log.1
-rwxrwxrwx 1 proxy proxy 14730 Apr 29 14:47 cache.log
-rwxrwx--- 1 proxy proxy 79626 Apr 28 22:00 cache.log.1
-rwxrwx--- 1 root root 0 Apr 27 14:09 store.log.1
Permissions for the cache mounted at /cache0
drwxrwxr-x 19 root proxy 4096 Apr 29 14:47 cache0
How can I resolve these errors? Thank you in advance.