I am new to cachevideo however i am able to install and cache youtube with permission of squid user & group but not able to retrieve via web.I have check forum and try to browse http://localhost/videocache I was failed to get output.
permission of videocache is
drwxr-xr-x 17 squid squid 512 Oct 2 12:45 videocache
if i change permission i can able to get output via web but in this case i can't download and cached. Please give me some light to resolve this issue.
Sorry for reply late, I actually got busy with some other work. Did you check cache_host variable in your /etc/videocache.conf file? It should be changed to your IP. Plus, please check videocahce logs and try to browse the URL in a line which says CACHE_HIT.
If problem persists, please reply with your videocache log file.
cache_host is there with proxy ip . but when i browse url_hit address , I got error in browser as
This webpage has a redirect loop.
has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
videocache logs as follows:
218ebe1ad3f3ec86 URL_HIT YOUTUBE http://x.x.x.x/videocache/youtube/218ebe1ad3f3ec86?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&algorithm=throttle-factor&itag=5&ipbits=0&signature=BE1692719343236609864DDF7211845D67541B18.C6689610B131911DB21F8F2A36CB48C74BA687A4&sver=3&expire=1255006800&key=yt1&factor=1.25&burst=40&id=218ebe1ad3f3ec86& 218ebe1ad3f3ec86 CACHE_HIT YOUTUBE Video was served from cache.
Thats means a probable apache misconfiguration. Do you have auto redirects in apache configuration or htaccess?
I have change lighttpd to apache and included cache.conf which contains following content.
Alias /videocache /var/spool/videocache
where Directory /var/spool/videocache is Allow from all
I have re-installed packages again with apache support but still face same problem. I am using freebsd-7. youtube video get downloaded in videocache directory. Even i can browse http://proxyip/videocache and download the video from that url. but squid server can't serve during request however the videocache.log shows contect served from cache. the downloaded files has ownership of 'squid'. if i changed ownership of file manually it gets play. is that means i need to change ownership of the cached file every time to get able to serve from proxyserver?
Please help me out to fix this issue.
Frankly I never used FreeBSB, but can help if you can provide more data. You said that downloaded file has ownership of 'squid' and then said you changed it? Did you change it to 'apache' or something else? All downloaded file are supposed to be owned by 'squid' user and 'squid' group.
Please provide the data and we'll be able to fix it soon.
The following are the ownership and permission:
drwxr-xr-x 17 squid squid 512 Oct 10 14:03 videocache
drwxr-xr-x 2 squid squid 512 Oct 10 14:03 bliptv drwxr-xr-x 2 squid squid 512 Oct 10 14:03 break drwxr-xr-x 2 squid squid 512 Oct 10 14:02 dailymotion drwxr-xr-x 2 squid squid 512 Oct 10 14:02 google drwxr-xr-x 2 squid squid 512 Oct 10 14:02 metacafe drwxr-xr-x 2 squid squid 512 Oct 10 14:03 redtube drwxr-xr-x 2 squid squid 512 Oct 10 14:03 soapbox drwxr-xr-x 2 squid squid 512 Oct 10 21:10 tmp drwxr-xr-x 2 squid squid 512 Oct 10 14:03 tube8 drwxr-xr-x 2 squid squid 512 Oct 10 14:03 tvuo1 drwxr-xr-x 2 squid squid 512 Oct 10 14:03 vimeo drwxr-xr-x 2 squid squid 512 Oct 10 14:03 wrzuta drwxr-xr-x 2 squid squid 512 Oct 10 14:03 xtube drwxr-xr-x 2 squid squid 512 Oct 10 14:03 youporn drwxr-xr-x 2 squid squid 512 Oct 10 21:11 youtube
-rw-r--r-- 1 www squid 9529513 Oct 10 20:54 56dfcd34b44234e4 -rw-r--r-- 1 www squid 2987105 Oct 10 21:27 c3b88c05e0a53aec
where ownership 'www' has been changed from squid. as the result the video is able to play if it is set to default 'squid' i can't play it.