<div dir="ltr">Hi Xen,<div><br></div><div>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.</div><div><br></div><div>Regards,</div><div>Zim</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 12:47 PM, Xen <span dir="ltr"><<a href="mailto:xen@dds.nl" target="_blank">xen@dds.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Are you terribly certain the owner:group of the generated log files
is the same as those of the cache dirs?.<br>
<br>
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.<div><div class="h5"><br>
<br>
<br>
<div>On 08/24/2015 04:05 PM, JL wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>Hi, </div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>/dev/sde1 on /var/spool/squid4 type ext3
(rw,noatime,seclabel,data=ordered)</div>
<div>/dev/sdd1 on /var/spool/squid3 type ext3
(rw,noatime,seclabel,data=ordered)</div>
<div>/dev/sdc1 on /var/spool/squid2 type ext3
(rw,noatime,seclabel,data=ordered)</div>
<div>/dev/sdb1 on /var/spool/squid1 type ext3
(rw,noatime,seclabel,data=ordered)</div>
<div><br>
</div>
<div>I set the cache user to be squid in the squid.conf and I
reference the drives for caching.</div>
<div><br>
</div>
<div>cache_dir aufs /var/spool/squid1 460800 32 512</div>
<div>cache_dir aufs /var/spool/squid2 460800 32 512</div>
<div>cache_dir aufs /var/spool/squid3 460800 32 512</div>
<div>cache_dir aufs /var/spool/squid4 460800 32 512</div>
<div><br>
</div>
<div>ls -l of the /var/spool shows proper perms, they are
propagated.</div>
<div><br>
</div>
<div>drwxr-x---. 34 squid squid 4096 Aug 21 10:01 squid1</div>
<div>drwxr-x---. 34 squid squid 4096 Aug 21 10:01 squid2</div>
<div>drwxr-x---. 34 squid squid 4096 Aug 21 10:01 squid3</div>
<div>drwxr-x---. 34 squid squid 4096 Aug 21 10:01 squid4</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Some like this.</div>
<div><br>
</div>
<div>2015/08/16 03:41:55 kid1| /var/spool/squid1/cache/19/8B:
(13) Permission denied</div>
<div>2015/08/16 03:42:10 kid1| /var/spool/squid2/cache/19/8B:
(13) Permission denied</div>
<div>2015/08/16 03:42:25 kid1| /var/spool/squid3/cache/19/8B:
(13) Permission denied</div>
<div>2015/08/16 03:42:40 kid1| /var/spool/squid4/cache/19/8B:
(13) Permission denied</div>
<div>2015/08/16 03:42:55 kid1| /var/spool/squid1/cache/1A/8B:
(13) Permission denied</div>
<div>2015/08/16 03:43:10 kid1| /var/spool/squid2/cache/1A/8B:
(13) Permission denied</div>
<div>2015/08/16 03:43:25 kid1| /var/spool/squid3/cache/1A/8B:
(13) Permission denied</div>
<div>2015/08/16 03:43:40 kid1| /var/spool/squid4/cache/1A/8B:
(13) Permission denied</div>
<div>2015/08/16 03:43:55 kid1| /var/spool/squid1/cache/1B/8B:
(13) Permission denied</div>
<div><br>
</div>
<div>Some like this.</div>
<div><br>
</div>
<div>2015/08/21 10:02:13 kid1| /var/spool/squid2/17/1FF: (13)
Permission denied</div>
<div>2015/08/21 10:02:13 kid1| DiskThreadsDiskFile::openDone:
(13) Permission denied</div>
<div>2015/08/21 10:02:13 kid1| <span style="white-space:pre-wrap"> </span>/var/spool/squid4/00/00/00000000</div>
<div>2015/08/21 10:02:28 kid1| /var/spool/squid3/17/1FF: (13)
Permission denied</div>
<div>2015/08/21 10:02:32 kid1| DiskThreadsDiskFile::openDone:
(13) Permission denied</div>
<div>2015/08/21 10:02:32 kid1| <span style="white-space:pre-wrap"> </span>/var/spool/squid4/00/00/00000001</div>
<div>2015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone:
(13) Permission denied</div>
<div>2015/08/21 10:02:33 kid1| <span style="white-space:pre-wrap"> </span>/var/spool/squid4/00/00/00000002</div>
<div>2015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone:
(13) Permission denied</div>
<div>2015/08/21 10:02:33 kid1| <span style="white-space:pre-wrap"> </span>/var/spool/squid4/00/00/00000003</div>
<div>2015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone:
(13) Permission denied</div>
<div>2015/08/21 10:02:33 kid1| <span style="white-space:pre-wrap"> </span>/var/spool/squid4/00/00/00000004</div>
<div>2015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone:
(13) Permission denied</div>
<div>2015/08/21 10:02:33 kid1| <span style="white-space:pre-wrap"> </span>/var/spool/squid4/00/00/00000005</div>
<div>2015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone:
(13) Permission denied</div>
<div>2015/08/21 10:02:33 kid1| <span style="white-space:pre-wrap"> </span>/var/spool/squid4/00/00/00000006</div>
<div>2015/08/21 10:02:33 kid1| DiskThreadsDiskFile::openDone:
(13) Permission denied</div>
<div>2015/08/21 10:02:33 kid1| <span style="white-space:pre-wrap"> </span>/var/spool/squid4/00/00/00000007</div>
<div><br>
</div>
<div>The folders remain empty of course, so no caching is taking
place.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Any help would be great.</div>
<div><br>
</div>
<div>Thanks!</div>
<div>Zim</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
squid-users mailing list
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>
<a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
<br></blockquote></div><br></div>