VideoCache

videos are not loaded from the cache directories

by Anonymous on 13 Mar 2012

video cache version 1.9.9
Videos are cached successfully on their directories /var/spool/videocache/dailymotion per example,
But each time I want to watch the same video the squid is not calling this video from the cache

Below you can find the output of trace.log, please help.

12/Mar/2012:14:02:33 3397 - - RPC_CONNECT_ERR - Traceback (most recent call last):
  File "/usr/share/videocache/videocache.py", line 175, in connection
    video_pool.ping()
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in "call"
    return self."send(self."name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in "request
    verbose=self."verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1292, in single_request
    self.send_content(h, request_body)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1439, in send_content
    connection.endheaders(request_body)
  File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 776, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 757, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

12/Mar/2012:14:09:38 3583 192.168.1.15 DAILYMOTION CACHE_ERR xp9pkn.mp4 Traceback (most recent call last):
  File "/usr/sbin/vc-scheduler", line 339, in cache_remote_url
    block = connection.read(16384)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.7/httplib.py", line 561, in read
    s = self.fp.read(amt)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
timeout: timed out

12/Mar/2012:14:13:23 3583 192.168.1.15 DAILYMOTION CACHE_ERR xp9pkn.mp4 Traceback (most recent call last):
  File "/usr/sbin/vc-scheduler", line 339, in cache_remote_url
    block = connection.read(16384)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.7/httplib.py", line 561, in read
    s = self.fp.read(amt)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
timeout: timed out

Regards
Bahaa Bacharouch

2 Answers

by jallcca on 15 May 2012

I have the same problem . Here the log in trace.log

15/May/2012:10:49:54 3376 - - RPC_CONNECT_ERR -
Traceback (most recent call last):
  File "/usr/sbin/vc-scheduler", line 103, in connection
    video_pool.ping()
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in "call"
    return self."send(self."name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in "request
    verbose=self."verbose
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1235, in request
    self.send_content(h, request_body)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1349, in send_content
    connection.endheaders()
  File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
    self._send_output()
  File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.6/httplib.py", line 739, in send
    self.connect()
  File "/usr/lib64/python2.6/httplib.py", line 720, in connect
    self.timeout)
  File "/usr/lib64/python2.6/socket.py", line 567, in create_connection
    raise error, msg
error: [Errno 111] Connection refused

IN scheduler.log
I have the next error:

15/May/2012:10:44:00 1524 INFO - - QUEUE_DUMPED - - -
15/May/2012:10:49:54 3376 INFO - - CACHE_THREAD_SCHEDULER_START - Starting cache thread scheduler. -
15/May/2012:10:49:54 3376 ERROR - - RPC_CONNECT_ERR - - [Errno 111] Connection refused
15/May/2012:10:49:54 3376 INFO - - VIDEO_POOL_SERVER_START - Starting VideoPool Server at port 9100. -
15/May/2012:10:49:54 3376 INFO - - STORE_LOG_WATCH_START - Watching Squid's store.log for videos cached by Squid. -
15/May/2012:10:49:54 3376 INFO - - QUEUE_LOAD - Video queue loaded from dump file -
15/May/2012:10:49:54 3376 INFO - - QUEUE_DUMPED - - -
15/May/2012:10:51:54 3376 INFO - - QUEUE_DUMPED - - -
15/May/2012:10:53:39 3376 INFO - - VIDEOS_RECEIVED - Received 1 videos from Videocache. -
15/May/2012:10:53:42 3376 INFO - - VIDEOS_RECEIVED - Received 1 videos from Videocache. -

when i want to wacth the video the second computer of the server cache it isn't calling .

by Kulbir Saini on 21 May 2012

Hi,

Could you please contact us using the contact link? Also send your squid.conf and videocache.conf for inspection.

Thank You!

You need to sign in. Please sign in to add answer to this question.