VideoCache
Videocache is no longer in development.

some cache.log errors and wornings

by Anonymous on 7 Feb 2012

hi admin
please would you help me in some cache.log error and warning
cache.log shows

2012/02/07 11:37:23| clientProcessRequest: Invalid Request
2012/02/07 11:37:24| clientProcessRequest: Invalid Request
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/handlers.py", line 78, in emit
    self.doRollover()
  File "/usr/lib/python2.7/logging/handlers.py", line 137, in doRollover
    os.rename(sfn, dfn)
OSError: [Errno 2] No such file or directory
Logged from file videocache.py, line 38
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/handlers.py", line 78, in emit
    self.doRollover()
  File "/usr/lib/python2.7/logging/handlers.py", line 136, in doRollover
    os.remove(dfn)
OSError: [Errno 2] No such file or directory: '/var/log/videocache/videocache.log.10'
Logged from file videocache.py, line 38
2012/02/07 12:20:33| clientProcessRequest: Invalid Request
2012/02/07 12:32:47| squidaio_queue_request: WARNING - Queue congestion
2012/02/07 12:55:46| clientProcessRequest: Invalid Request
2012/02/07 13:09:16| clientProcessRequest: Invalid Request
2012/02/07 13:11:03| clientProcessRequest: Invalid Request
2012/02/07 13:11:03| clientProcessRequest: Invalid Request
2012/02/07 13:26:27| clientProcessRequest: Invalid Request
2012/02/07 13:26:30| clientProcessRequest: Invalid Request
2012/02/07 13:36:48| clientProcessRequest: Invalid Request
2012/02/07 13:51:41| clientProcessRequest: Invalid Request
2012/02/07 13:52:29| clientProcessRequest: Invalid Request
2012/02/07 13:54:07| clientProcessRequest: Invalid Request
2012/02/07 13:54:34| clientProcessRequest: Invalid Request
2012/02/07 13:54:49| clientProcessRequest: Invalid Request
2012/02/07 13:54:53| clientProcessRequest: Invalid Request

now if you notice in time of 12:55:46 there is a invalid request from my client so the access.log file shows a normal http request in this second as shown, kindly at least can you show me a hint about object i can read to solve this invalid request issue,

Tue Feb  7 12:55:45 2012  10294 192.168.40.1 TCP_MISS/204 327 GET http://pixel.quantserve.com/pixel;r=594757810;a=p-23Fqia_-MkKko;fpan=0;fpa=P0-1973419512-132860799307$
Tue Feb  7 12:55:46 2012   4976 192.168.40.1 TCP_MISS/200 6965 GET http://photos-b.ak.fbcdn.net/hphotos-ak-ash4/431630_367121669967698_179647632048437_1515031_10283514$
Tue Feb  7 12:55:46 2012  42149 192.168.40.1 TCP_MISS/200 401 GET http://0-333.channel.facebook.com/pull? - DIRECT/69.171.227.41 text/plain
Tue Feb  7 12:55:46 2012      0 192.168.40.1 NONE/400 3770 NONE error:invalid-request - NONE/- text/html
Tue Feb  7 12:55:46 2012   1352 192.168.40.1 TCP_MISS/200 709 GET http://insider.msg.yahoo.com/client_ad.php? - DIRECT/67.195.186.236 text/xml
Tue Feb  7 12:55:46 2012  10989 192.168.40.1 TCP_MISS/200 9899 GET http://dc368.4shared.com/img/Wk9gsaR8/s2/The_Concise_Oxford_Dictionary_.pdf - DIRECT/199.101.133.38 -
Tue Feb  7 12:55:47 2012  17186 192.168.40.1 TCP_MISS/200 45935 GET http://dc355.4shared.com/download/ynB1psJE/Harvest_Moon_240x320"NEW_.jar? - DIRECT/199.101.133.25 $
Tue Feb  7 12:55:47 2012     20 192.168.40.1 TCP_MEM_HIT/200 9906 GET http://dc368.4shared.com/img/Wk9gsaR8/s2/The_Concise_Oxford_Dictionary_.pdf - NONE/- -

the queue congestion error because i have three partition (each with 5 GB ) for squid directory in the same hard,and the hard is sata so i think it's a hardware issue,

OSError: [Errno 2] No such file or directory: '/var/log/videocache/videocache.log.10' this error is new i noticed today for the first time i checked the directory and there is file videocache.log.10 (its exist) so what is the cause of the error? please

before two days i have a forward loop warning i solve this problem by changing the iptables rules which is in your book i think it's for proxy becoming the gateway for the network that what i though at least, so you don't need for the rule to drop the packet that comes from the squid box it self, that what i though at least, can you correct to me the information if it's wrong please,
my squid is installed on ubuntu server 11.04,

caching is working normally but i think this problem effect for the squid server performance

thank you with my best regards i hope you have the time to answer me

1 Answers

by Kulbir Saini on 13 Feb 2012

Hi,

Your Squid is overloaded because of heavy I/O. Try to get a faster disk. If it's not possible to get a faster disk, try disabling Squid's cache and check the performance again. The warnings are not severe and are related to videocache's log rotation mechanism.