Nginx crashing with image filter and cache enabled

ayman nginx-forum at forum.nginx.org
Mon Jun 11 12:53:49 UTC 2018


Hi,

When enabling the cache on image filter; nginx workers crash and keep
getting 500.

I'm using Nginx 1.14.0

error log:
2018/06/11 12:30:49 [alert] 46105#0: worker process 46705 exited on signal
11 (core dumped)

proxy_cache_path /opt/nginx/img-cache/resized levels=1:2
keys_zone=resizedimages:10m max_size=3G;

location ~ ^/resize/(\d+)x(\d+)/(.*) {
                proxy_pass                  https://proxypass/$3
                proxy_cache resizedimages;
                proxy_cache_key "$host$document_uri";
                proxy_temp_path off;
                proxy_cache_valid 200 1d;
                proxy_cache_valid any 1m;
                proxy_cache_use_stale error timeout invalid_header
updating;

                image_filter                resize $1 $2;
                image_filter_jpeg_quality   90;
                image_filter_buffer         20M;
                image_filter_interlace      on;

}

If i disable the cache it's working perfectly!

Do you recommend to change anything in the config? What could be the issue?


Thanks.
Ayman

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280115,280115#msg-280115



More information about the nginx mailing list