VideoCache

Help Pleeeeaaase!!

by landysaccount on 20 Jan 2010

Hello List.

I installed videocache from source on Debian Lenny and was looking at the videocache.log and noticed that I'm getting CACHE_FULL YOUTUBE. I don't know what I'm doing wrong since videocache is not caching videos. I also checked /var/spool/videocache/youtube and there isn't anything in there.

This is what my videocache.conf looks like:

enable_video_cache = 1
cache_host = 127.0.0.1
proxy = http://127.0.0.1:3128/

proxy_username =
proxy_password =
hit_threshold = 1

# I want 10GB of videos
base_dir = /var/spool/videocache/ : 10240
disk_avail_threshold = 100

This is videocache.log:

2010-01-20 18:27:06,158 25578 172.16.254.10 - REQUEST - http://v9.lscache8.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906501%2C905605&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1264050000&key=yt1&signature=6299B41C79853A58947027F4DC0D97736CFB407F.603510B072D35B7C6642BC366A70A1C2CF450323&factor=1.25&id=5dc2e107819e6513
2010-01-20 18:27:06,160 25578 172.16.254.10 5dc2e107819e6513 URL_HIT YOUTUBE http://v9.lscache8.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906501%2C905605&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1264050000&key=yt1&signature=6299B41C79853A58947027F4DC0D97736CFB407F.603510B072D35B7C6642BC366A70A1C2CF450323&factor=1.25&id=5dc2e107819e6513
2010-01-20 18:27:06,160 25578 172.16.254.10 5dc2e107819e6513 CACHE_MISS YOUTUBE Requested video was not found in cache.
2010-01-20 18:27:06,169 25578 172.16.254.10 5dc2e107819e6513 NEW_URL YOUTUBE http://v9.lscache8.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906501%2C905605&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1264050000&key=yt1&signature=6299B41C79853A58947027F4DC0D97736CFB407F.603510B072D35B7C6642BC366A70A1C2CF450323&factor=1.25&id=5dc2e107819e6513
2010-01-20 18:27:08,742 25581 172.16.254.10 5dc2e107819e6513 SCHEDULED YOUTUBE Video scheduled for download.
2010-01-20 18:27:08,745 25619 172.16.254.10 5dc2e107819e6513 CACHE_FULL YOUTUBE Cache directory '/var/spool/videocache/' has exceeded the maximum size allowed.

Sorry for the double post. Thanks in advanced for your help.

5 Answers

by landysaccount on 20 Jan 2010

I changed

cache_host = 127.0.0.1
proxy = http://127.0.0.1:3128/

to an actual ip address:

cache_host = 172.16.0.1
proxy = http://172.16.0.1:3128/

But, still getting:

2010-01-20 18:42:31,385 25578 172.16.254.10 - REQUEST - http://v21.lscache4.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906501%2C905605&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1264050000&key=yt1&signature=48D255338B295B8F3CB17671BBA41A3E1882353C.C365540F567A85EF9D22C310E43D30895C7AD4F0&factor=1.25&id=36e4e340b7d4e869&
2010-01-20 18:42:31,386 25578 172.16.254.10 36e4e340b7d4e869 URL_HIT YOUTUBE http://v21.lscache4.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906501%2C905605&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1264050000&key=yt1&signature=48D255338B295B8F3CB17671BBA41A3E1882353C.C365540F567A85EF9D22C310E43D30895C7AD4F0&factor=1.25&id=36e4e340b7d4e869&
2010-01-20 18:42:31,386 25578 172.16.254.10 36e4e340b7d4e869 CACHE_MISS YOUTUBE Requested video was not found in cache.
2010-01-20 18:42:31,393 25578 172.16.254.10 36e4e340b7d4e869 NEW_URL YOUTUBE http://v21.lscache4.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906501%2C905605&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1264050000&key=yt1&signature=48D255338B295B8F3CB17671BBA41A3E1882353C.C365540F567A85EF9D22C310E43D30895C7AD4F0&factor=1.25&id=36e4e340b7d4e869&
2010-01-20 18:42:35,725 26153 172.16.254.10 36e4e340b7d4e869 CACHE_FULL YOUTUBE Cache directory '/var/spool/videocache/' has exceeded the maximum size allowed.
2010-01-20 18:42:35,728 25581 172.16.254.10 36e4e340b7d4e869 SCHEDULED YOUTUBE Video scheduled for download.
by mkrok on 20 Jan 2010
  1. try without dir size limit. I think size limiting is bugged.
  2. how much free space do you have on your hdd ?
by landysaccount on 21 Jan 2010

My HDD is only 30% full. I'm not using any quota or space limiting. I also changed the cache_host to an actual ip address:
cache_host=172.16.0.1 and also changed the base_dir :

base_dir= /var/spool/videocache/:0

Now, at least I see in the videocache.log that has downloaded some videos:

2010-01-20 22:57:28,887 27036 172.16.100.61 - REQUEST - http://v15.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpir$
2010-01-20 22:57:28,888 27036 172.16.100.61 1e7981c4823e6b8e URL_HIT YOUTUBE http://v15.lscache2.c.youtube.com/videoplayback?ip=0.0.0$
2010-01-20 22:57:28,888 27036 172.16.100.61 1e7981c4823e6b8e CACHE_MISS YOUTUBE Requested video was not found in cache.
2010-01-20 22:57:28,892 27036 172.16.100.61 1e7981c4823e6b8e NEW_URL YOUTUBE http://v15.lscache2.c.youtube.com/videoplayback?ip=0.0.0$
2010-01-20 22:57:30,895 27037 172.16.100.61 1e7981c4823e6b8e SCHEDULED YOUTUBE Video scheduled for download.
2010-01-20 22:57:30,923 27036 172.16.0.1 - REQUEST - http://v15.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2$
2010-01-20 22:57:30,924 27036 172.16.0.1 1e7981c4823e6b8e URL_HIT YOUTUBE http://v15.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&$
2010-01-20 22:57:30,925 27036 172.16.0.1 1e7981c4823e6b8e CACHE_MISS YOUTUBE Requested video was not found in cache.
2010-01-20 22:57:30,935 27036 172.16.0.1 1e7981c4823e6b8e NEW_URL YOUTUBE http://v15.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&$
2010-01-20 22:58:09,468 32044 172.16.100.11 033b707161288088 DOWNLOAD YOUTUBE 23865963 Video was downloaded and cached.
2010-01-20 23:01:22,305 32085 172.16.254.4 bd4727a3223cb956 DOWNLOAD YOUTUBE 15426466 Video was downloaded and cached.

Looks like is working but, don't know which of the two changes fixed the problem.

by belikeyeshua on 21 Jan 2010

Also, I think you need to change this:

base_dir = /var/spool/videocache/ : 10240

to this:

base_dir = /var/spool/videocache/:10240

Then type in update-vc and restart squid & apache. Or just reboot.

by landysaccount on 24 Jan 2010

I tried:

base_dir = /var/spool/videocache/:10240

and

base_dir = /var/spool/videocache/ : 10240

and neither work. If I use a cache size I get CACHE_FULL. Looks like thats a bug.

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