Re: [squid-users] Re: Squid Cache Directory - Webmin
On 16.02.2012 12:54, berry guru wrote: Do logs get rotated because they reach a certain size or threshold? No. Just when "squid -k rotate" is run. Most distros integrate their packages with the OS logrotate system. I found something that is kind of confusing me, the owner of cache.log is the user 'proxy' which I never created, so this must be a default user from squid. Yes it is. I ran ls -l /var/log/squid3/cache.log and found that -rw-r- 1 proxy proxy 38762 2012-02-15 14:03 /var/log/squid3/cache.log So it looks like the permissions need to be assigned to the user proxy, but I don't have that info. I'm pretty sure this will fix the Webmin info, but my I'm wondering how users are giving permissions to Webmin for the cache.log directory. Er, yes. Sorry I don't know webmin to help on that particular. Maybe someone else here can say. Amos
Re: [squid-users] Re: Squid Cache Directory - Webmin
Do logs get rotated because they reach a certain size or threshold? I found something that is kind of confusing me, the owner of cache.log is the user 'proxy' which I never created, so this must be a default user from squid. I ran ls -l /var/log/squid3/cache.log and found that -rw-r- 1 proxy proxy 38762 2012-02-15 14:03 /var/log/squid3/cache.log So it looks like the permissions need to be assigned to the user proxy, but I don't have that info. I'm pretty sure this will fix the Webmin info, but my I'm wondering how users are giving permissions to Webmin for the cache.log directory. On Wed, Feb 15, 2012 at 2:53 PM, Amos Jeffries wrote: > On 16.02.2012 11:31, berry guru wrote: >> >> If I were to run chmod ugo+rwx *file* where file would be cache.log am >> I going to break something. Is this the appropriate approach? > > > It is incomplete. When the log gets rotated things die again. > > The Squid details are in a folder called .../squid3/ so that you can assign > that folder the appropriate read/write and owner/group permissions and leave > its parent /var/log with root-only or similar access. > > PS. I should have said re-run -k parse when you think you have resolved the > issues. Sometimes a major problem causes early abortand later problems > remain hidden. > > Amos >
Re: [squid-users] Re: Squid Cache Directory - Webmin
On 16.02.2012 11:31, berry guru wrote: If I were to run chmod ugo+rwx *file* where file would be cache.log am I going to break something. Is this the appropriate approach? It is incomplete. When the log gets rotated things die again. The Squid details are in a folder called .../squid3/ so that you can assign that folder the appropriate read/write and owner/group permissions and leave its parent /var/log with root-only or similar access. PS. I should have said re-run -k parse when you think you have resolved the issues. Sometimes a major problem causes early abortand later problems remain hidden. Amos
Re: [squid-users] Re: Squid Cache Directory - Webmin
If I were to run chmod ugo+rwx *file* where file would be cache.log am I going to break something. Is this the appropriate approach? On Wed, Feb 15, 2012 at 2:23 PM, berry guru wrote: > My mistake, I should have specified that I'm ran it with squid3. > > The "squid -k parse" gave me some good info > > WARNING: Cannot write log file: /var/log/squid3/cache.log > /var/log/squid3/cache.log: Permission denied > messages will be sent to 'stderr'. > > So it looks like I need to change permissions to that directory, and > give it the appropriate write permissions. > > > On Wed, Feb 15, 2012 at 2:14 PM, Amos Jeffries wrote: >> On 16.02.2012 11:05, berry guru wrote: >>> >>> I reverted back to the default squid configuration and I'm still >>> getting the same error. I restarted Squid, but still no go. >>> >>> Supposedly the squid -z should of done it for me. >>> >>> Any thoughts? >>> >> >> >> Run "squid -k parse". That will show you any other issues in the config. >> >> Also, you said you installed "squid3". On Debian and child systems that is a >> different package and binary. You need to run "squid3 -z" etc in that case. >> >> Amos
Re: [squid-users] Re: Squid Cache Directory - Webmin
My mistake, I should have specified that I'm ran it with squid3. The "squid -k parse" gave me some good info WARNING: Cannot write log file: /var/log/squid3/cache.log /var/log/squid3/cache.log: Permission denied messages will be sent to 'stderr'. So it looks like I need to change permissions to that directory, and give it the appropriate write permissions. On Wed, Feb 15, 2012 at 2:14 PM, Amos Jeffries wrote: > On 16.02.2012 11:05, berry guru wrote: >> >> I reverted back to the default squid configuration and I'm still >> getting the same error. I restarted Squid, but still no go. >> >> Supposedly the squid -z should of done it for me. >> >> Any thoughts? >> > > > Run "squid -k parse". That will show you any other issues in the config. > > Also, you said you installed "squid3". On Debian and child systems that is a > different package and binary. You need to run "squid3 -z" etc in that case. > > Amos
Re: [squid-users] Re: Squid Cache Directory - Webmin
On 16.02.2012 11:05, berry guru wrote: I reverted back to the default squid configuration and I'm still getting the same error. I restarted Squid, but still no go. Supposedly the squid -z should of done it for me. Any thoughts? Run "squid -k parse". That will show you any other issues in the config. Also, you said you installed "squid3". On Debian and child systems that is a different package and binary. You need to run "squid3 -z" etc in that case. Amos
Re: [squid-users] Re: Squid Cache Directory - Webmin
I reverted back to the default squid configuration and I'm still getting the same error. I restarted Squid, but still no go. Supposedly the squid -z should of done it for me. Any thoughts? On Wed, Feb 15, 2012 at 11:25 AM, berry guru wrote: > I was afraid you were going to say that Sebastian, but at the same > time it makes sense. I'm going to restore my squid.conf from a backup > and see where I stand. Thanks for the direction. > > Cheers, > > On Wed, Feb 15, 2012 at 10:58 AM, Sebastian Muniz > wrote: >> On 2/15/2012 3:07 PM, berry guru wrote: >>> >>> I thought I had it, I found something in Chp5 of the Squid Definitive >>> book talking about initializing cache directories. I ran the squid -z >>> command and got back the following details after is took: >>> >>> aclParseAccessLine: squid.conf line 846: http_access permit all >>> aclParseAccessLine: expecting 'allow' or 'deny', got 'permit'. >>> Create Swap Directories >>> >> Hello Berry, >> If you have manually modified the squid.conf file I would suggest to reset >> to defaults and start again. >> My experience with webmin is that you use it OR (exclusive OR) you do it >> manually. Manually modifying conf files tends to confuse webmin. >> In this case the error is correct, you are missing allow or deny in the line >> Check http://www.squid-cache.org/Doc/config/http_access/ >> >> Regards. >> Sebastian
Re: [squid-users] Re: Squid Cache Directory - Webmin
I was afraid you were going to say that Sebastian, but at the same time it makes sense. I'm going to restore my squid.conf from a backup and see where I stand. Thanks for the direction. Cheers, On Wed, Feb 15, 2012 at 10:58 AM, Sebastian Muniz wrote: > On 2/15/2012 3:07 PM, berry guru wrote: >> >> I thought I had it, I found something in Chp5 of the Squid Definitive >> book talking about initializing cache directories. I ran the squid -z >> command and got back the following details after is took: >> >> aclParseAccessLine: squid.conf line 846: http_access permit all >> aclParseAccessLine: expecting 'allow' or 'deny', got 'permit'. >> Create Swap Directories >> > Hello Berry, > If you have manually modified the squid.conf file I would suggest to reset > to defaults and start again. > My experience with webmin is that you use it OR (exclusive OR) you do it > manually. Manually modifying conf files tends to confuse webmin. > In this case the error is correct, you are missing allow or deny in the line > Check http://www.squid-cache.org/Doc/config/http_access/ > > Regards. > Sebastian
Re: [squid-users] Re: Squid Cache Directory - Webmin
On 2/15/2012 3:07 PM, berry guru wrote: I thought I had it, I found something in Chp5 of the Squid Definitive book talking about initializing cache directories. I ran the squid -z command and got back the following details after is took: aclParseAccessLine: squid.conf line 846: http_access permit all aclParseAccessLine: expecting 'allow' or 'deny', got 'permit'. Create Swap Directories Hello Berry, If you have manually modified the squid.conf file I would suggest to reset to defaults and start again. My experience with webmin is that you use it OR (exclusive OR) you do it manually. Manually modifying conf files tends to confuse webmin. In this case the error is correct, you are missing allow or deny in the line Check http://www.squid-cache.org/Doc/config/http_access/ Regards. Sebastian
[squid-users] Re: Squid Cache Directory - Webmin
I thought I had it, I found something in Chp5 of the Squid Definitive book talking about initializing cache directories. I ran the squid -z command and got back the following details after is took: aclParseAccessLine: squid.conf line 846: http_access permit all aclParseAccessLine: expecting 'allow' or 'deny', got 'permit'. Create Swap Directories On Wed, Feb 15, 2012 at 9:50 AM, berry guru wrote: > I installed Webmin to configure Squid3 and was wondering how do I go > about initializing the squid cache directory. > > Under the Squid Proxy Server it states "Your Squid cache directory > /var/spool/squid3 has not been initialized. This must be done before > Squid can be run." I entered both a username I typically use and > root, but they both return the error "Cannot write to directory > /etc/squid3" > > I'm thinking this is an issue with permissions to that directory. I'm > not exactly sure on how to edit those permissions. Am I correct in > that assumption?