Search squid archive

Re: errors on some youtube videos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



check your access.log if this content was cache HIT, if it is then this is cache hit storeurl redirect loop.
You can also see this using firebug plugin on firefox.

follow the link below.
http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion

Chudy



----- Original Message ----
> From: Guillaume 4 <licks0resquid@xxxxxxxxxxx>
> To: squid-users@xxxxxxxxxxxxxxx
> Sent: Thu, May 27, 2010 1:51:01 PM
> Subject:  errors on some youtube videos
> 
> 
Hi there
I'm using a squid proxy with a youtube rewrite module to cache 
> the vids.It's working  ~fine except for *some* vids that won't load.

When 
> trying to view the vids, youtube says : "An error occurred, please try again 
> later."

This isn't really relevant, but in the store.log, here what I get 
> :

1274876139.777 RELEASE -1 FFFFFFFF 2171EABA7915771683088F05E4A343B1 
>  204 1274875723        -1  41629446 text/html 0/0 GET 
> http://www.youtube.com/player_204?el=detailpage&fv=LNX%2010,1,53,22&scoville=1&ec=100&fexp=902919&plid=AASHfiKGfwfeoAfQ&rt=0.246&event=streamingerror&v=dk6Yu2BRC6g&fmt=34

1274876269.468 
> RELEASE -1 FFFFFFFF D0C3CF82B3C1E75EFFBBA2C475D7DEBE  204 1274875853        -1 
>  41629446 text/html 0/0 GET 
> http://www.youtube.com/player_204?el=detailpage&fv=LNX%2010,1,53,22&scoville=1&ec=100&fexp=902919&plid=AASHfiKGfwfeoAfQ&rt=129.896&event=streamingerror&v=dk6Yu2BRC6g&fmt=34

When 
> I remove the store_url_rewrite part into the squid.conf, it does works 
> fine.

Note this is only happening to *some* vids, the rest is woking fine 
> and being cached properly.

Here's my store_url_rewrite script 
> :

#!/usr/bin/perl$|=1;while (<>) {    @X = split;        $x = 
> $X[0];        $_ = $X[1];
# compatibility from old cached 
> get_video?video_idif 
> (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(videoplayback\?id=.*?|video_id=.*?)\&(.*?)/) 
> {        $z = $2; $z =~ s/video_id=/get_video?video_id=/;        print $x . 
> "http://video-srv.youtube.com.SQUIDINTERNAL/"; . $z . "\n";
# youtube HD 
> itag=22} elsif 
> (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?\&(itag=22).*?\&(id=[a-zA-Z0-9]*)/) 
> {        print $x . "
> target=_blank >http://video-srv.youtube.com.SQUIDINTERNAL/"; . $2 . "&" . 
> $3 . "\n";
# youtube Normal screen always HD itag 35, Normal screen never HD 
> itag 34, itag=18 <--normal?} elsif 
> (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?\&(itag=[0-9]*).*?\&(id=[a-zA-Z0-9]*)/) 
> {        print $x . "
> target=_blank >http://video-srv.youtube.com.SQUIDINTERNAL/"; . $3 . 
> "\n";
} else {        print $x . $_ . "\n";}}

I really don't know 
> where to search at the moment, any suggestion will be more than welcome! 
> :)

Thanks in advance,Guillaume





    
>                 
>       
> 
_________________________________________________________________
Hotmail: 
> Trusted email with powerful SPAM protection.

> href="https://signup.live.com/signup.aspx?id=60969"; target=_blank 
> >https://signup.live.com/signup.aspx?id=60969



      


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux