Nginx crashing with image filter and cache enabled
Maxim Dounin
mdounin at mdounin.ru
Wed Jun 13 12:26:26 UTC 2018
Hello!
On Mon, Jun 11, 2018 at 08:53:49AM -0400, ayman wrote:
> 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?
You may want to provide "nginx -V" output, backtrace as obtained
from the core dump, and details on the GD library used.
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx
mailing list