VideoCache

videocache does not cache video when i changed my ip address

by mustafa raji on 22 Jan 2012

hi
i had installed videocache with
squid 2.7 stable9
ubuntu server

first the videocache was working very good and caching video than i just change the ip of the server to test it as a transparent server using mikrotik nat role.

the videocache has stoped caching the video, for clearence this is videocache.log

22/Jan/2012:14:28:35 2903 INFO 192.168.12.2 YOUTUBE URL_HIT bfe789a6dae9a811 http://o-o.preferred.teo-vno1.v11.lscache2.c.youtube.com/videoplayback?key=yt1&ipbits=8&algorithm=throttle-factor&id=bfe789a6dae9a811&cp=U0hRTFJQU19OU0NOMV9KSldIOnREZ1BhbGNJTWkx&burst=40&keepalive=yes&expire=1327255799&sver=3&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Csource%2Calgorithm%2Cburst%2Cfactor%2Ccp&ip=85.0.0.0&factor=1.25&itag=34&fexp=906358%2C906423%2C911609&signature=C858527776CFBE2AB00600E3E18FD9616013E5AE.8B19FD74BB1372066C0A46003ECA559BE1ED1A3E&source=youtube&range=4751360-7127039 -
22/Jan/2012:14:28:35 2903 INFO 192.168.12.2 YOUTUBE CACHE_MISS bfe789a6dae9a811 Requested video was not found in cache. -
22/Jan/2012:14:29:17 2903 INFO 192.168.12.2 YOUTUBE URL_HIT v-eJptrpqBE http://www.youtube.com/watch?v=v-eJptrpqBE&feature=g-logo&context=G23d00f7FOAAAAAAACAA -
22/Jan/2012:14:29:17 2903 INFO - - VIDEO_SUBMIT - Submitted 1 videos to videocache scheduler. -
22/Jan/2012:14:29:19 2903 INFO 192.168.12.2 YOUTUBE URL_HIT bfe789a6dae9a811 http://o-o.preferred.teo-vno1.v11.lscache2.c.youtube.com/videoplayback?algorithm=throttle-factor&burst=40&expire=1327255799&itag=34&ip=85.0.0.0&signature=48D6B7C701691E720041F898D800225C6065ED61.64C5476927F0B1DADD1CD53BD919CE1CFB672DDB&factor=1.25&keepalive=yes&ipbits=8&cp=U0hRTFJQU19OU0NOMV9KSldIOkxxczIxcDdQcHc3&key=yt1&source=youtube&sver=3&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Csource%2Calgorithm%2Cburst%2Cfactor%2Ccp&id=bfe789a6dae9a811&fexp=907525%2C914026%2C905601%2C908423&range=13-2375679 -
22/Jan/2012:14:29:19 2903 INFO 192.168.12.2 YOUTUBE CACHE_MISS bfe789a6dae9a811 Requested video was not found in cache. -
22/Jan/2012:14:29:50 2903 INFO 192.168.12.2 YOUTUBE URL_HIT bfe789a6dae9a811 http://o-o.preferred.teo-vno1.v11.lscache2.c.youtube.com/videoplayback?factor=1.25&sver=3&cp=U0hRTFJQU19OU0NOMV9KSldIOkxxczIxcDdQcHc3&itag=34&id=bfe789a6dae9a811&ip=85.0.0.0&keepalive=yes&signature=48D6B7C701691E720041F898D800225C6065ED61.64C5476927F0B1DADD1CD53BD919CE1CFB672DDB&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Csource%2Calgorithm%2Cburst%2Cfactor%2Ccp&burst=40&ipbits=8&key=yt1&source=youtube&algorithm=throttle-factor&expire=1327255799&fexp=907525%2C914026%2C905601%2C908423&range=2375680-4751359 -
22/Jan/2012:14:29:50 2903 INFO 192.168.12.2 YOUTUBE CACHE_MISS bfe789a6dae9a811 Requested video was not found in cache. -
22/Jan/2012:14:30:14 2903 INFO 192.168.12.2 YOUTUBE URL_HIT bfe789a6dae9a811 http://o-o.preferred.teo-vno1.v11.lscache2.c.youtube.com/videoplayback?algorithm=throttle-factor&factor=1.25&signature=48D6B7C701691E720041F898D800225C6065ED61.64C5476927F0B1DADD1CD53BD919CE1CFB672DDB&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Csource%2Calgorithm%2Cburst%2Cfactor%2Ccp&itag=34&expire=1327255799&ipbits=8&ip=85.0.0.0&cp=U0hRTFJQU19OU0NOMV9KSldIOkxxczIxcDdQcHc3&sver=3&keepalive=yes&id=bfe789a6dae9a811&key=yt1&source=youtube&burst=40&fexp=907525%2C914026%2C905601%2C908423&range=4751360-7127039 -
22/Jan/2012:14:30:14 2903 INFO 192.168.12.2 YOUTUBE CACHE_MISS bfe789a6dae9a811 Requested video was not found in cache. -

and scheduler.log is

22/Jan/2012:14:26:16 941 INFO 192.168.12.2 YOUTUBE VIEW_COUNT_LOW v-eJptrpqBE Video has not received enough views and will not be cached. -
22/Jan/2012:14:26:17 941 INFO - - CACHE_THREAD_REMOVE v-eJptrpqBE Cache thread completed. Removing from active list. -
22/Jan/2012:14:27:44 941 INFO - - VIDEOS_RECEIVED - Received 1 videos from Videocache. -
22/Jan/2012:14:27:47 941 INFO 192.168.12.2 YOUTUBE CACHE_THREAD_START v-eJptrpqBE Starting cache thread. -
22/Jan/2012:14:27:56 941 INFO 192.168.12.2 YOUTUBE VIEW_COUNT_LOW v-eJptrpqBE Video has not received enough views and will not be cached. -
22/Jan/2012:14:27:57 941 INFO - - CACHE_THREAD_REMOVE v-eJptrpqBE Cache thread completed. Removing from active list. -
22/Jan/2012:14:29:17 941 INFO - - VIDEOS_RECEIVED - Received 1 videos from Videocache. -
22/Jan/2012:14:29:22 941 INFO 192.168.12.2 YOUTUBE CACHE_THREAD_START v-eJptrpqBE Starting cache thread. -
22/Jan/2012:14:29:31 941 INFO 192.168.12.2 YOUTUBE VIEW_COUNT_LOW v-eJptrpqBE Video has not received enough views and will not be cached. -
22/Jan/2012:14:29:32 941 INFO - - CACHE_THREAD_REMOVE v-eJptrpqBE Cache thread completed. Removing from active list. -

and when i restart the apache2 the error show up
Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

please can you tell me where is the wrong

thank you & best regards

4 Answers

by Kulbir Saini on 25 Jan 2012

Hi Mustafa,

I don't see any errors in the log messages you have pasted. Please check the description of the option min_youtube_views in /etc/videocache.conf and set it to zero. Please contact us with your videocache.conf if the problem still persists. Don't forget to restart vc-scheduler after changing the option.

Thank You!

by mustafa raji on 26 Jan 2012

thank you MR.kulbir
the cache was working normally after i reboot the machine the min_youtube_views by default 1000 i change it to 0 to disable this option

by Carlos Sauñe on 29 Jan 2012

Seems like youtube is changing his URL, there's a lot of videos using partial content, check the final part of your URL: range=4751360-7127039

Saludos.

by Kulbir Saini on 30 Jan 2012

Hi Carlos,

I checked and everything seems to be working fine as of now. Anyway, I'll keep an eye on it.

Thank You!

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