VideoCache
Videocache is no longer in development.

videocache not cache

by Anonymous on 7 Aug 2009

helo, i had it 1.9.1 install done.
everything went fine.
here is the log :

2009-08-07 17:18:52,992 25443 - - XMLRPCSERVER - Starting XMLRPCServer on port 9100.
2009-08-07 17:18:53,819 25452 - - UPDATE_SIZE - Size of all caching directories updated successfully.
proxy:~# ps ax | grep py
25440 ?        Ss     0:00 (python) /usr/share/videocache/videocache.py
25441 ?        Ss     0:00 (python) /usr/share/videocache/videocache.py
25442 ?        Ss     0:00 (python) /usr/share/videocache/videocache.py

and :
hit_threshold = 1

and videocache not cache any page from youtube.
help cause log give no more clue ? thank you.

11 Answers

by Kulbir Saini on 8 Aug 2009

Hi anon,

Can you please give details about your operating system and other related things like squid version and all?

Please make sure the cache_dir is writable by squid and you have properly configured videocache. Please revisit videocache configure page and verify your configurations.

Thank You!

by Anonymous on 10 Aug 2009

hello thanks admin for fast reply,
it finally fine after i change iniparse from debian package to compile the source.
it is strange.

btw i use :

# cat /etc/issue
Ubuntu 8.04.1 \\n \\l

# /usr/local/squid/sbin/squid -v
Squid Cache: Version 2.7.STABLE4
configure options:  '--enable-gnuregex' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--prefix=/usr/local/squid' '--with-aio' '--with-dl' '--enable-storeio=aufs' '--enable-removal-policies=heap' '--enable-icmp' '--disable-delay-pools' '--disable-wccp' '--disable-snmp' '--enable-cache-digests' '--enable-default-err-langauges=English' '--enable-err-languages=English' '--enable-linux-netfilter' '--disable-ident-lookups' '--disable-hostname-checks' '--enable-underscores'
by Kulbir Saini on 10 Aug 2009

Congratulations for the successful setup. Thanks for using videocache :)

by Anonymous on 10 Aug 2009

but still youtube cannot be cached, here is the example page that cannot be cache : http://www.youtube.com/watch?v=-XZklKaQhi8&

here's squid log :

1249898787.049  80192 172.16.13.105 TCP_MISS/200 1893390 GET http://v9.lscache3.c.youtube.com/videoplayback? - DIRECT/74.125.96.17 video/x-flv
1249898791.067   1696 172.16.13.105 TCP_MISS/200 20423 GET http://www.youtube.com/watch? - DIRECT/74.125.153.102 text/html
1249898791.726    184 172.16.13.105 TCP_IMS_HIT/304 348 GET http://i1.ytimg.com/vi/DNckuX-7Mps/default.jpg - NONE/- image/jpeg
1249898793.163    296 172.16.13.105 TCP_MISS/204 485 GET http://www.youtube.com/get_video? - DIRECT/74.125.153.102 text/html
1249898795.819    447 172.16.13.105 TCP_MISS/204 310 GET http://video-stats.video.google.com/s? - DIRECT/74.125.153.127 text/html

and videocache give no log.

by Kulbir Saini on 10 Aug 2009

Please post your videocache.log. That'll help me point out the problem.

Thank You!

by Anonymous on 10 Aug 2009

ok here's the log :

2009-08-10 16:58:41,458 28966 - - RELOAD - videocache plugin was reloaded.
2009-08-10 16:58:41,458 28967 - - RELOAD - videocache plugin was reloaded.
2009-08-10 16:58:41,458 28971 - - RELOAD - videocache plugin was reloaded.
2009-08-10 16:58:41,459 28968 - - RELOAD - videocache plugin was reloaded.
2009-08-10 16:58:41,459 28972 - - RELOAD - videocache plugin was reloaded.
2009-08-10 16:58:41,459 28969 - - RELOAD - videocache plugin was reloaded.
2009-08-10 16:58:41,460 28970 - - RELOAD - videocache plugin was reloaded.
2009-08-10 16:58:49,992 29036 - - SCHEDULEDER - Download Scheduler starting.
2009-08-10 16:58:49,992 29036 - - XMLRPCSERVER - Starting XMLRPCServer on port 9100.
2009-08-10 16:58:50,008 29042 - - UPDATE_SIZE - Size of all caching directories updated successfully.
by Kulbir Saini on 10 Aug 2009

I think you didn't follow the configuration tutorial properly. Because videocache doesn't seem to detect any urls for youtube. Please ensure that you followed the required steps on configure page.

Also can you please post your squid.conf and videocache.conf files on http://pastebin.com ?

Thank You!

by Anonymous on 10 Aug 2009

Hello,
I test the videocache, but some time it's stop work, and in the videocache.log file i see the same messages :

RELOAD - videocache plugin was reloaded.
Scheduler starting.
XMLRPCSERVER - Starting XMLRPCServer on port 9100.
UPDATE_SIZE - Size of all caching directories updated successfully.

thanks

by Anonymous on 10 Aug 2009
2009-07-20 19:33:45,258 3051 - - RELOAD - videocache plugin was reloaded.
2009-07-20 19:33:45,260 3050 - - RELOAD - videocache plugin was reloaded.
2009-07-20 19:33:45,262 3053 - - RELOAD - videocache plugin was reloaded.
2009-07-20 19:33:45,263 3052 - - RELOAD - videocache plugin was reloaded.
2009-07-20 19:33:45,265 3055 - - RELOAD - videocache plugin was reloaded.
2009-07-20 19:33:45,266 3054 - - RELOAD - videocache plugin was reloaded.
2009-07-20 19:33:45,275 3049 - - RELOAD - videocache plugin was reloaded.
2009-07-20 20:29:39,654 4698 - - SCHEDULEDER - Download Scheduler starting.
by Kulbir Saini on 10 Aug 2009

Anon,

You squid and videocache are not interacting properly. Videocache is not getting any request from squid. Please paste your squid.conf file.

Thank You!

by Anonymous on 11 Aug 2009

dear admin,

i mean that some page cannot be cached from youtube,
for example this clip : http://www.youtube.com/watch?v=-XZklKaQhi8&

i did good in my config videocache as some video from youtube could be cached, here is my directory :

root@proxy:/video/youtube# ls
05f5cf7df5046e40  4e3fcd966d3cef51  7lCd9mY1kIc       e2bdaf5d9d4c98a5
0e57b5b3ddcef1a3  5YjfGex5JHY       8988e3c0a21d09eb  e8babe88d1a43f63
135f7741dc3472dd  6010208e932a110a  8c8d41bf6191b371  ed01252bc07a14e1
23d0ddc811f11974  612b3fd01a46d02f  9e821fc28e01e243  ef640a889fe8c3c4
256de2da880cec02  626f9b4ef2e7c873  b1699baef79bb865  f629129228500e63
25f9a40d77517c31  648c3e0ad01d9e8e  b5e4rmnMozU       fe312e8c43177f6e

and of course the log give the logging if it page able to get by cachevideos,
but if i access this page "http://www.youtube.com/watch?v=-XZklKaQhi8&"
the cachevideos could not be able to cache.