Solved: nginx: [emerg] the size 10485760 of shared memory zone “le_nginx_SSL” conflicts with…

Today, I find one of my domain renew failed, and the error message is

Solved: nginx: [emerg] the size 10485760 of shared memory zone “le_nginx_SSL” conflicts with already declared size 1048576 in /etc/letsencrypt/options-ssl-nginx.conf:7

Today, I find one of my domain renew failed, and the error message isnginx: [emerg] the size 10485760 of shared memory zone "le_nginx_SSL" conflicts with already declared size 1048576 in /etc/letsencrypt/options-ssl-nginx.conf:7

This is caused by the setting on /etc/letsencrypt/options-ssl-nginx.conf , the setting is like below:ssl_session_cache shared:le_nginx_SSL:10m;

The problem is the setting here 10m is 10485760 bytes, after I changed to 1m , renew succeed.

To test the problem, also can run the following command to test:sudo nginx -c /etc/nginx/nginx.conf -t


Something needs to investigate

I don’t know why the renew can work before, but this time, it failed with this error. I also checked other server, the setting with 10m still works.