Proxy_store downloading half videos !!

shahzaib shahzaib shahzaib.cb at
Thu Sep 18 10:49:25 UTC 2014


   We're using proxy_store on the edge server for replicating requested mp4
files and some of our users reported that some of the videos are half sized
and therefore they are unable to stream whole video file on their end
(coming from the edge server). On digging into the access_logs of nginx, i
found the 500 internal server errors for 10~20 videos and on checking the
size of 500 error videos it was half of the size compare to the mirrored
video files on the origin. Please check the following error of the culprit
video link :- - - [18/Sep/2014:15:13:58 +0500] "GET
/files/videos/2014/09/12/1410536044adf1b-360.mp4?start=729 HTTP/1.1" 500
588 "" "Mozilla/4.0
(compatible; MSIE 8.0; Windows NT 6.0)"

I'd like to inform that the issue is coming for 40% of the videos.

error_log :-

2014/09/18 15:30:40 [error] 3883#0: *77490
"/var/www/html/files/videos/2014/09/16/141088548798bb1-360.mp4" mp4 start
time exceeds file duration, client:, server:,
request: "GET /files/videos/2014/09/16/141088548798bb1-360.mp4?start=736.8

You can see the "start time exceeds error" on edge server but the video
link starting from start=736.8 exists on origin server.

Nginx config :-

server {

        listen       80;
        root /var/www/html/tunefiles;
        location ~ \.(mp4|jpeg|jpg)$ {
               root   /var/www/html/tunefiles;
        error_page 404 = @fetch;


        location ~ \.(php)$ {

        location @fetch {
        proxy_store        on;
            proxy_store_access user:rw group:rw all:r;
        root /var/www/html/tunefiles;


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list