Re: [squid-users] Squid 3.1.10 CentOS : cache_swap_log (13) Permission Denied

From: Christophe Marchand <cmarchand_at_oxiane.com>
Date: Tue, 18 Dec 2012 16:55:16 +0100

Thanks for this, Eliezer, it makes sense that this option is not more used.
I define effective_group as squid, but do not specify effective_user.
squid user can access rwx to /var/cache/squid
Will try this wednesday morning...

Thanks again,
Christophe

Le 18/12/2012 16:20, Eliezer Croitoru a écrit :
> I am not sure how you manage your rights on the server and also the
> locations in it but,
> Squid cache dir should be fully accessible using the "effective_user"
> of squid.
> It's the same for squid logs.
>
> Make sure the whole directory tree is accessible using the squid user.
>
> I just noticed that cache_swap_log is not used in 3.1 but only in 2.6
> so just remove it.
> A swap log should not be specified.
> If you can still use it without errors in squid startup it's a bug and
> should be reported.
>
> So remove it and try to fix your permissions since this is your problem.
>
> Regards,
> Eliezer
>
> On 12/18/2012 04:51 PM, Christophe Marchand wrote:
>> Thanks Gregory for your response.
>>
>> unfortunately, I've already ran squid -z, both under root user and
>> squid user/
>> Making squid own /var/cache sounds me strange : all files/directories
>> under /var/cache will be owned by squid user, which is not acceptable
>> : a lot of other programs need to access to this trees.
>>
>> Best regards,
>> Christophe
>>
>> Le 18/12/2012 14:21, Zill, Gregory (OMA-GIS) a écrit :
>>> Use the following commands to set the cache folder and then change
>>> permissions, assuming squid user runs the squid instance.
>>> # <path>/squid -z
>>> # chown -R squid. /var/cache
>>> -----Original Message-----
>>> From: Christophe Marchand [mailto:cmarchand_at_oxiane.com]
>>> Sent: Tuesday, December 18, 2012 7:09 AM
>>> To: squid-users_at_squid-cache.org
>>> Subject: [squid-users] Squid 3.1.10 CentOS : cache_swap_log (13)
>>> Permission Denied
>>> Hi,
>>> I have the following problem : when I do not declare a cache dir, my
>>> squid starts correctly and runs perfectly. When I uncomment the
>>> cache_dir line, it fails with this message :
>>> 2012/12/18 11:31:18| /var/cache/squid/.00: (13) Permission denied
>>> FATAL: commonUfsDirOpenSwapLog: Failed to open swap log.
>>> My squid.conf is :
>>> cache_dir aufs /drive/squid_cache/ 344064 64 64
>>> coredump_dir /var/spool/squid
>>> access_log none
>>> cache_store_log none
>>> cache_swap_log /var/cache/squid/
>>> ls -al /var/cache returns this :
>>> drwxrw-r--. 2 squid squid 4096 18 déc. 10:56 squid
>>> ps -ef | grep squid does not show a squid running
>>> I've read all threads on this, but found no solution.
>>> Any help will be much appreciated.
>>> Thanks in advance,
>>> Christophe
>>>
>>> This message contains information which may be confidential and
>>> privileged. Unless you are the intended recipient (or authorized to
>>> receive this message for the intended recipient), you may not use,
>>> copy, disseminate or disclose to anyone the message or any
>>> information contained in the message. If you have received the
>>> message in error, please advise the sender by reply e-mail, and
>>> delete the message. Thank you very much.
>>>
>>
>
>
Received on Tue Dec 18 2012 - 15:55:31 MST

This archive was generated by hypermail 2.2.0 : Wed Dec 19 2012 - 12:00:15 MST