LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   proxy server giving an error while service restart (https://www.linuxquestions.org/questions/linux-networking-3/proxy-server-giving-an-error-while-service-restart-390401/)

srnerkar1 12-08-2005 01:58 AM

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...

fouldsy 12-08-2005 03:00 AM

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.

srnerkar1 12-08-2005 04:10 AM

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

fouldsy 12-08-2005 07:08 AM

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.

amitsharma_26 12-08-2005 07:23 AM

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..

srnerkar1 12-09-2005 03:15 AM

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.

srnerkar1 12-09-2005 03:16 AM

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.

fouldsy 12-09-2005 05:03 AM

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.

amitsharma_26 12-09-2005 05:29 AM

fouldsy

Quote:

cache_mem 16 MB //AFAIK it is the RAM to be used by SQUID
maximum_object_size 8192 KB
//AFAIK it is the objects(jpg/gif/java or any other object size limit to be saved on harddisk.
cache_dir ufs /var/spool/squid 200 16 256 //??
cache_store_log /var/log/squid/store.log //wht exactly store.log stores ?
Can you clear me a bit more about these 4 lines ?

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 ?

srnerkar1 12-30-2005 11:41 PM

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.