- Plesk for Linux
- Renaming domain in Plesk results in the following error in
CONFIG_TEXT: IOError: [Errno 2] No such file or directory: '/var/www/vhosts/system/example.com/logs/error_log'
2018-01-17 17:47:51,580 fail2ban.filter : ERROR Unable to open /var/www/vhosts/system/example.com/logs/error_log
2018-01-17 17:47:51,581 fail2ban.filter : ERROR [Errno 2] No such file or directory: '/var/www/vhosts/system/example.com/logs/error_log'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/fail2ban/server/filter.py", line 696, in getFailures
has_content = log.open()
File "/usr/lib/python2.7/dist-packages/fail2ban/server/filter.py", line 802, in open
self.__handler = open(self.__filename, 'rb')
IOError: [Errno 2] No such file or directory: '/var/www/vhosts/system/example.com/logs/error_log'
plesk-apache-badbotjails are used.
This behavior is considered as Plesk bug PPPM-7867.
As a workaround, after renaming a domain restart fail2ban service manually:
- Connect to the server using SSH
- Run the following command:
# service fail2ban restart