<div dir="ltr">nginx version: nginx/1.7.4<br>built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)<br>configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --user=nginx --group=nginx --with-http_flv_module --with-http_mp4_module<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 18, 2014 at 3:49 PM, shahzaib shahzaib <span dir="ltr"><<a href="mailto:shahzaib.cb@gmail.com" target="_blank">shahzaib.cb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>   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 :-<br><br>203.124.62.213 - - [18/Sep/2014:15:13:58 +0500] "GET /files/videos/2014/09/12/1410536044adf1b-360.mp4?start=729 HTTP/1.1" 500 588 "<a href="http://lw3.files.com/files/videos/2014/09/12/" target="_blank">http://lw3.files.com/files/videos/2014/09/12/</a>" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)"<br><br></div>I'd like to inform that the issue is coming for 40% of the videos. <br><br></div>error_log :-<br><br>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: 175.110.88.213, server: <a href="http://lw3.files.com" target="_blank">lw3.files.com</a>, request: "GET /files/videos/2014/09/16/141088548798bb1-360.mp4?start=736.8 HTTP/1.1"<br><div><br></div><div>You can see the "start time exceeds error" on edge server but the video link starting from start=736.8 exists on origin server. <br></div><div><br>Nginx config :-<br><br>server {<br><br>        listen       80;<br>        server_name <a href="http://lw3.files.com" target="_blank">lw3.files.com</a>;<br>        root /var/www/html/tunefiles;<br>        location ~ \.(mp4|jpeg|jpg)$ {<br>               root   /var/www/html/tunefiles;<br>                mp4;<br>        error_page 404 = @fetch;<br><br>            }<br><br><br>        location ~ \.(php)$ {<br>                proxy_pass <a href="http://fl008.files.net:80" target="_blank">http://fl008.files.net:80</a>;<br>        }<br><br><br><br>        location @fetch {<br>        internal;<br>        proxy_pass <a href="http://fl008.origin.com:80" target="_blank">http://fl008.origin.com:80</a>;<br>        proxy_store        on;<br>            proxy_store_access user:rw group:rw all:r;<br>        root /var/www/html/tunefiles;<br>}<br><br><br><br>}<br><br></div><div>Regards.<span class="HOEnZb"><font color="#888888"><br>Shahzaib<br></font></span></div></div>
</blockquote></div><br></div>