Author Topic: Found another rule with the same id  (Read 1477 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Found another rule with the same id
« on: April 20, 2017, 09:02:35 PM »
I have faced strange problem after CWP6 upgrade.
After Mod Security install Apache does not start. I tried Apache Rebuilt, however not fixed. :(

When I have installed Comodo WAF getting error like this:
AH00526: Syntax error on line 22 of /usr/local/apache/modsecurity-cwaf/rules/00_Init_Initialization.conf:
ModSecurity: Found another rule with the same id

When I have installed AWASP latest getting error like this:
AH00526: Syntax error on line 772 of /usr/local/apache/modsecurity-owasp-latest/crs-setup.conf:
ModSecurity: Found another rule with the same id

Offline
*
Re: Found another rule with the same id
« Reply #1 on: April 21, 2017, 10:18:51 PM »
For this problem, I do some search, i can not a solution..

For example Plesk solve the problem with an update.
https://support.plesk.com/hc/en-us/articles/213388129-ModSecurity-Found-another-rule-with-the-same-id

Any solution for CWP?

Offline
*
Re: Found another rule with the same id
« Reply #2 on: April 23, 2017, 07:44:42 AM »
try to uninstall and then install again modsecurity
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Found another rule with the same id
« Reply #3 on: May 05, 2017, 08:24:15 AM »
I tried several times to uninstall and subsequent install again but that does not work. Also, warning that mod_sec is not installed, does not appear. Do we have an unambiguous solution?

Offline
*
Re: Found another rule with the same id
« Reply #4 on: May 05, 2017, 08:48:03 AM »
try uninstalling mod security and then remove all current rules/folder and files you have in your /usr/local/apache/ folder
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Found another rule with the same id
« Reply #5 on: May 05, 2017, 11:15:09 AM »
I rm'ed dirs modsecurity-crs and modsecurity-cwaf and file modules/mod_security2.so

At first, this seemed to work but when restarting httpd it fails again:

Stopping httpd: [  OK  ]
Starting httpd: AH00526: Syntax error on line 14 of /usr/local/apache/modsecurity-cwaf/rules/02_Global_Generic.conf:
ModSecurity: Found another rule with the same id
[FAILED]

Offline
*
Re: Found another rule with the same id
« Reply #6 on: May 05, 2017, 12:36:33 PM »
Had to do a reboot after some updates to my server today, and got exactly the same error, same location.

AH00526: Syntax error on line 14 of /usr/local/apache/modsecurity-cwaf/rules/02_Global_Generic.conf:
ModSecurity: Found another rule with the same id
[FAILED]

Apache will only run if I remove Mod security. Reinstalling mod security fixes the problem until the next time I restart Apache, and same error returns.

Offline
*
Re: Found another rule with the same id
« Reply #7 on: May 05, 2017, 04:25:47 PM »
issue found and fixed it was related to comodo waf update

update cwp to latest version
sh /scripts/update_cwp
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Found another rule with the same id
« Reply #8 on: May 05, 2017, 06:03:55 PM »
Worked for me. Thank you. - JG

Offline
*
Re: Found another rule with the same id
« Reply #9 on: May 06, 2017, 04:59:52 AM »
Same. All working well again :D
Much appreciated.

Offline
*
Re: Found another rule with the same id
« Reply #10 on: May 19, 2017, 01:30:39 PM »
issue found and fixed it was related to comodo waf update

update cwp to latest version
sh /scripts/update_cwp

I have the same problem and I the newest version:   0.9.8.238
 
:-\