Hi Xen,
Thanks for the feedback. I can confirm both the --with-default-user=squid is present in squid -v and the perms of the logs are indeed squid user.
Regards,
Zim
On Mon, Aug 24, 2015 at 12:47 PM, Xen <xen@xxxxxx> wrote:
Are you terribly certain the owner:group of the generated log files is the same as those of the cache dirs?.
That is a way to check for sure what user it is running under. I was just compiling the latest 3.5.x when it would complain, and I had forgotten to compile it with --with-default-user=squid.
On 08/24/2015 04:05 PM, JL wrote:
Hi,
Sorry if this is a duplicate message, I am not sure it went through initially. I am having an issue with my caching drives that I can't seem to pinpoint the problem. I have 4 drives to be used for caching, they are ext3 filesystems mounted like so. I am running CentOS 7.
/dev/sde1 on /var/spool/squid4 type ext3 (rw,noatime,seclabel,data="">/dev/sdd1 on /var/spool/squid3 type ext3 (rw,noatime,seclabel,data="">/dev/sdc1 on /var/spool/squid2 type ext3 (rw,noatime,seclabel,data="">/dev/sdb1 on /var/spool/squid1 type ext3 (rw,noatime,seclabel,data="">
I set the cache user to be squid in the squid.conf and I reference the drives for caching.
cache_dir aufs /var/spool/squid1 460800 32 512cache_dir aufs /var/spool/squid2 460800 32 512cache_dir aufs /var/spool/squid3 460800 32 512cache_dir aufs /var/spool/squid4 460800 32 512
ls -l of the /var/spool shows proper perms, they are propagated.
drwxr-x---. 34 squid squid 4096 Aug 21 10:01 squid1drwxr-x---. 34 squid squid 4096 Aug 21 10:01 squid2drwxr-x---. 34 squid squid 4096 Aug 21 10:01 squid3drwxr-x---. 34 squid squid 4096 Aug 21 10:01 squid4
The cache dirs were successfully created using squid -z and all of the subfolders were generated. Squid starts and everything appears to be great. Until I monitor the cache.log, then I see the errors begin.
Some like this.
2015/08/16 03:41:55 kid1| /var/spool/squid1/cache/19/8B: (13) Permission denied2015/08/16 03:42:10 kid1| /var/spool/squid2/cache/19/8B: (13) Permission denied2015/08/16 03:42:25 kid1| /var/spool/squid3/cache/19/8B: (13) Permission denied2015/08/16 03:42:40 kid1| /var/spool/squid4/cache/19/8B: (13) Permission denied2015/08/16 03:42:55 kid1| /var/spool/squid1/cache/1A/8B: (13) Permission denied2015/08/16 03:43:10 kid1| /var/spool/squid2/cache/1A/8B: (13) Permission denied2015/08/16 03:43:25 kid1| /var/spool/squid3/cache/1A/8B: (13) Permission denied2015/08/16 03:43:40 kid1| /var/spool/squid4/cache/1A/8B: (13) Permission denied2015/08/16 03:43:55 kid1| /var/spool/squid1/cache/1B/8B: (13) Permission denied
Some like this.
2015/08/21 10:02:13 kid1| /var/spool/squid2/17/1FF: (13) Permission denied2015/08/21 10:02:13 kid1| DiskThreadsDiskFile::openDone: (13) Permission denied2015/08/21 10:02:13 kid1| /var/spool/squid4/00/00/000000002015/08/21 10:02:28 kid1| /var/spool/squid3/17/1FF: (13) Permission denied2015/08/21 10:02:32 kid1| DiskThreadsDiskFile::openDone: (13) Permission denied2015/08/21 10:02:32 kid1| /var/spool/squid4/00/00/000000012015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone: (13) Permission denied2015/08/21 10:02:33 kid1| /var/spool/squid4/00/00/000000022015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone: (13) Permission denied2015/08/21 10:02:33 kid1| /var/spool/squid4/00/00/000000032015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone: (13) Permission denied2015/08/21 10:02:33 kid1| /var/spool/squid4/00/00/000000042015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone: (13) Permission denied2015/08/21 10:02:33 kid1| /var/spool/squid4/00/00/000000052015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone: (13) Permission denied2015/08/21 10:02:33 kid1| /var/spool/squid4/00/00/000000062015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone: (13) Permission denied2015/08/21 10:02:33 kid1| /var/spool/squid4/00/00/00000007
The folders remain empty of course, so no caching is taking place.
I am truly stumped as to what I may be doing wrong since squid has enough perms to create the dirs but not enough to save to them.
Any help would be great.
Thanks!Zim
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users
- Follow-Ups:
- Re: Cache Permission Errors
- From: Kuntal_Basak
- References:
- Cache Permission Errors
- From: JL
- Re: Cache Permission Errors
- From: Xen
- Prev by Date: Re: Cache Permission Errors
- Next by Date: Re: Cache Permission Errors
- Previous by thread: Re: Cache Permission Errors
- Next by thread: Re: Cache Permission Errors
- Index(es):
[Index of Archives] [Linux Audio Users] [Samba] [Big List of Linux Books] [Linux USB] [Yosemite News]