proxy server giving an error while service restart
hello everybody,
while i have redhat v9 and i have configured Squid Proxy server on it. uptill now it was working fine but now it has following error When I try to do " service squid restart". [root@m1 root]# service squid restart Stopping squid: /etc/init.d/squid: line 162: 4255 Aborted $SQUID -k check >/dev/null 2>&1 [FAILED] Starting squid: /etc/init.d/squid: line 162: 4256 Aborted $SQUID $SQUID_OPTS 2>/dev/null [FAILED] [root@m1 root]# [root@m1 root]# So PLEASE can I have your quick help regarding this.................Thanks in Advance... |
Hmm, check how big the squid log files have become. If they hit 2Gb, Squid doesn't like it all and refuses to work. Removing them and restarting Squid should do it, and you might then want to look at rotating you log files weekly, or even daily depending on how much traffic your cache handles.
|
hello sir,
Thank you for a quick reply. As you mention in your reply that i must first clean the log files and then restart the service again , but sir i did in the same way but it is giving the same error, So sir can you again guide me properly In what way i must clean up the log files and which files I must clean up. And Is there any effect on working of proxy server if I clean up log files daily..... I cleaned up following file in following ways 1.cat > /var/log/squid/cache.log CTRL+D 2.cat > /var/log/squid/access.log CTRL+D Is it proper??????? Thank you again.....waiting for a reply |
Within /var/log/squid/ you'll have access.log, cache.log, and store.log. Typing "ls -l -h" will show you how large each of these in easily readable format.
If they are too large, us "mv access.log access.log.1" to rename them, and then restart the Squid service. Also, you might want to look at using logrotate as cron job to do this automatically at regular intervals as I already mentioned. |
Please post ls -l for
/var/log/squid or/& /usr/local/squid/var/logs You must have these 3 files access.log, cache.log & store.log. Thanks ..amit.. |
which default parameters I should increase to increase by default size of all above 3 files?
And after moving files by " mv access.log access.log.1 " and before starting squid service is it necessary to create those moved files manually? or all 3 get created automatically after starting squid service???? Thank you in advance. |
howto increase log files size
which default parameters I should increase to increase by default size of all above 3 files?
And after moving files by " mv access.log access.log.1 " and before starting squid service is it necessary to create those moved files manually? or all 3 get created automatically after starting squid service???? Thank you in advance. |
I think the 2Gb log file is a limitation of the base system rather than Squid. I wouldn't want to look at changing it though, as if your logs are getting that large, it becomes unmanageable trying to parse them at some point.
Once you have renamed or deleted them, upon restarting Squid they should automatically be created again, so there should be no need to do this manually. |
fouldsy
Quote:
Also to mention as you have mentioned 2 GB is the limit for squid logs, Cant we limit the log files size in squid.conf or through log rotate ? |
squid not working (problem while stopping service)
hello onces again there,
Thanks to all who gave me suggestions about squid server before. BUT sir here I accured one more problem in squid. As per our previous discussions I always used to clear the logs regurly by renaming log files. Yesterday I found anothere problem that squid suddenly stop working. After that, every time when I tried to restart squid It shows stopping squid.....Failed but startting squid .............Ok I cleared log again and again but gives same error. So what could be reason for that................Thank you :scratch: |
All times are GMT -5. The time now is 07:23 PM. |