4

I have a centos 8 server with nginx and certbot installed. When I check:

cat /var/log/nginx/error.log

I get this error a lot:

[alert] 2245236#0: *42902735 could not allocate new session in SSL session shared cache "le_nginx_SSL" while SSL handshaking, client: ip, server: ip

Would you know how to fix this issue?

Thank you.

nlegall
  • 23
  • 5

1 Answers1

2

I had the same issued and solved it by increasing the cache size:

ssl_session_cache shared: le_nginx_SSL:20m; # before 10m

You can try to reduce ssl_session_timeoutto delete quicker the sessions.

reference: http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_cache

nlegall
  • 23
  • 5
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 16 '23 at 11:32