I have just transfered my ubuntu videocache hard drive which was working fine, into a new vmware virtual machine, and am having problems with serving cached videos.
It seems some videos get served from the cache via the apache server, but new ones dont.
I can see once a video's threshold is hit, it downloads and saves the video, but when the video is played on the youtube website, it says
"an error occured, please try again later"
I have checked that the client browser can access the video using the url that is being provided
Here is some of the video cache log below showing its working.
If I open up a web browser on a client machine, and use the first part of the url such as
With the above URL firefox asks to save the file and it does so from the cache without a problem. However if i try to play that video inside the youtube website, it doesnt work. It just says
"An error occured, please try again later"
Various other posts suggest to look at the cache_host option in the videocache config file, which is set to 192.168.1.3 - the correct address of the apache server.
These videos play perfectly fine until they are cached, and then they stop playing in the browser.
02/Aug/2011:02:50:38 2559 INFO 192.168.1.2 YOUTUBE CACHE_HIT 4fdc8670a958022c Video was served from cache using the URL 302:http://192.168.1.3/videocache/youtube/4fdc8670a958022c?sparams=id,expire,ip,ipbits,itag,algorithm,burst,factor,oc:U0hQR1JOUF9FSkNOMF9KSFRF&fexp=909319,912602,913510&algorithm=throttle-factor&burst=40&ip=0.0.0.0&ipbits=0&signature=0C5C377626E3DF806D973493F320473B99FFD8CA.53EE8DD8E4E5D46F964F2B4D6F921CF5A220DB91&sver=3&expire=1312232400&key=yt1&factor=1.25&playretry=1&id=4fdc8670a958022c&itag=34 - 02/Aug/2011:02:50:38 2559 INFO 192.168.1.2 YOUTUBE URL_HIT T9yGcKlYAiw http://www.youtube.com/get_video?t=vjVQa1PpcFNMtMOYtq7Lw_kawlIGYQl5vB3Cffwe51w=&asv=3&video_id=T9yGcKlYAiw&noflv=1&fmt=34&el=detailpage - 02/Aug/2011:02:50:38 2559 INFO 192.168.1.2 YOUTUBE CACHE_HIT T9yGcKlYAiw Video was served from cache using the URL 302:http://192.168.1.3/videocache/youtube/T9yGcKlYAiw?el=detailpage&asv=3&fmt=34&video_id=T9yGcKlYAiw&t=vjVQa1PpcFNMtMOYtq7Lw_kawlIGYQl5vB3Cffwe51w= -
Does anyone have any ideas?
It's a known issue because of a recent Youtube API change. Can you please contact me via email to get the latest fix?
I got this error:
09/Aug/2011:21:10:25 22139 INFO - - VIDEOS_RECEIVED - Received 1 videos from Videocache. - 09/Aug/2011:21:10:28 22139 INFO 188.8.131.52 YOUTUBE CACHE_THREAD_START -lOCzEoJ_-M Starting cache thread. - 09/Aug/2011:21:10:30 22139 ERROR 184.108.40.206 YOUTUBE VIDEO_URL_ERR -lOCzEoJ_-M Could not determine video URL. - 09/Aug/2011:21:10:33 22139 INFO - - CACHE_THREAD_REMOVE -lOCzEoJ_-M Cache thread completed. Removing from active list. -
You just sent me 220.127.116.11 and can not caching youtueb videos.
Please help me