Description
certbot does not complete, command:
certbot renew --force-renewal --nginx
Renewing an existing certificate for mydomain.com and 2 more domains
Failed to renew certificate mydomain.com with error: nginx restart failed:
nginx: [emerg] "server_names_hash_bucket_size" directive is duplicate in /etc/nginx/conf.d/botblocker-nginx-settings.conf:16
So I had to comment this line from file /etc/nginx/conf.d/botblocker-nginx-settings.conf
:
#server_names_hash_bucket_size 256;
And added it on file nginx.conf :
http {
...
server_names_hash_bucket_size 256;
...
}
This is a strange letsencrypt behavior because nginx -t has just non blocking warnings and I can reload / restart nginx without any problem.
Now it's working fine but I am afraid of an update of nginx-ultimate-bad-bot-blocker that would re-add server_names_hash_bucket_size
line onto this file /etc/nginx/conf.d/botblocker-nginx-settings.conf
.
Ubuntu 22.04
Linux prodiart-ubuntu-uk 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
nginx version: nginx/1.18.0 (Ubuntu)
I also have this warnings but they are non blocking warnings:
nginx -t
nginx: [warn] duplicate network "138.199.57.151", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:18972
nginx: [warn] duplicate network "143.244.38.129", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:18988
nginx: [warn] duplicate network "195.181.163.194", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:19083
nginx: [warn] duplicate network "5.188.120.15", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:19210
nginx: [warn] duplicate network "89.187.173.66", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:19257
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful