Each time I run updates on the rules I always get errors/warnings like these:
root@server [/var/cpanel/cwaf/scripts]# ./updater.pl -w
(in cleanup) Can’t open tmp/cwaf_cookies.tmp: No such file or directory at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/HTTP/Cookies.pm line 415.
info [updater] Missing owner for domain server.hostname.com, force lookup to root
^* matches null string many times in regex; marked by ← HERE in m/^* ← HERE .domain.net:\d+$/ at /opt/cpanel/perl5/514/site_lib/Comodo/CWAF/Cpanel.pm line 98.
^* matches null string many times in regex; marked by ← HERE in m/^* ← HERE .domains.com:\d+$/ at /opt/cpanel/perl5/514/site_lib/Comodo/CWAF/Cpanel.pm line 98.
Can you fix some of these?
I get these both on Apache and Litespeed.
All servers are running Cloudlinux 6.7 with latest kernel.
Thank you for feedback.
We will fix this issues in next release excepting this one:
Can't open tmp/cwaf_cookies.tmp: No such file or directory at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/HTTP/Cookies.pm line 415.
Seems your /var/cpanel/cwaf/etc/main.conf is bit outdated and updater ca’t find cookie file.
To fix issue please change this line:
http_cookie_file=“tmp/cwaf_cookies.tmp”
so it will look like this:
http_cookie_file=“/tmp/cwaf_cookies.tmp”
But we don’t have custom settings for our servers.
So then I can easily copy a new main.conf file from a new server and use that on all servers as long as we have the latest agent on all servers?