You are hereForums / Support / Help Pleeeeaaase!!

Help Pleeeeaaase!!


5 replies [Last post]
Offline
Joined: Jan 20 2010
Help Pleeeeaaase!!
Printer-friendly versionSend to friend

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%2Ce...
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%2Ce...
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%2Ce...
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.

Offline
Joined: Jan 20 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%2C...
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%2C...
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%2C...
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.

Offline
Joined: Dec 29 2009

1. try without dir size limit. I think size limiting is bugged.
2. how much free space do you have on your hdd ?

Offline
Joined: Jan 20 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.

Offline
Joined: Jan 10 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.

Offline
Joined: Jan 20 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.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

Buy Now

Videocache Bundle (RPM and tar archive) is available for just $39.99. Secure your copy now by clicking the button below.
For details, check this page.

Recent comments

Spread it

Thank you for spreading the word!

Who's online

There are currently 3 users and 113 guests online.