mitchellkrogza / nginx-ultimate-bad-bot-blocker

Nginx Block Bad Bots, Spam Referrer Blocker, Vulnerability Scanners, User-Agents, Malware, Adware, Ransomware, Malicious Sites, with anti-DDOS, Wordpress Theme Detector Blocking and Fail2Ban Jail for Repeat Offenders
Other
3.81k stars 472 forks source link

[BUG] "[emerg] limit_conn_zone "bot2_connlimit" is already bound to key "$bot_iplimit" in /etc/nginx/conf.d/globalblacklist.conf:19300" after recent update #532

Open Danrancan opened 10 months ago

Danrancan commented 10 months ago

Describe the bug

After a recent update to badbotblocker nginx -t is showing the following error:

[emerg] limit_conn_zone "bot2_connlimit" is already bound to key "$bot_iplimit" in /etc/nginx/conf.d/globalblacklist.conf:19300

To Reproduce

Install Nginx Mainline for Ubuntu 22.04. Run nginx -t

Expected behavior

I expect this error to not appear.

Server (please complete the following information):


Linux mail.facl.xyz 5.15.0-1035-raspi #38-Ubuntu SMP PREEMPT Tue Jul 18 12:17:11 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Paste any log / error messages here (paste in between the ```     ``` markers)

Additional information

Add any other context about the problem here.

Sharlyll commented 4 months ago

Hi, This error is back after a recent install in a new ubuntu22 nginx 1.18.0 server It is NOT a manual install.

nginx: [emerg] "server_names_hash_max_size" directive is duplicate in /etc/nginx/conf.d/botblocker-nginx-settings.conf:17 I ended up commenting all of the configuration, it next gave these errors:

nginx: [emerg] limit_conn_zone "bot2_connlimit" is already bound to key "$bot_iplimit" in /etc/nginx/conf.d/globalblacklist.conf:19311 nginx: [emerg] limit_conn_zone "bot2_connlimit" is already bound to key "$bot_iplimit" in /etc/nginx/conf.d/globalblacklist.conf:19312

Please help!