Welcome! Log In Create A New Profile

Advanced

Re: Nginx crashing with image filter and cache enabled

Maxim Dounin
June 13, 2018 08:28AM
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/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx crashing with image filter and cache enabled

ayman June 11, 2018 08:53AM

Re: Nginx crashing with image filter and cache enabled

Maxim Dounin June 13, 2018 08:28AM

Re: Nginx crashing with image filter and cache enabled

ayman July 12, 2018 06:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready