Welcome! Log In Create A New Profile

Advanced

Nginx crashing with image filter and cache enabled

Posted by ayman 
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Maxim Dounin
Re: Nginx crashing with image filter and cache enabled
June 13, 2018 02:30PM
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
Hi,

I have upgraded the GD library on the server recompiling nginx again and all
is good now.

Thanks a lot.

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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login