• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Forwarded to devs Horde log file not created, stopping fail2ban jail to start

TomBoB

Silver Pleskian
TITLE:
Horde log file not created, stopping fail2ban jail to start
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Plesk Onyx Version 17.8.11 Update #38; on ‪CentOS Linux 7.6.1810 (Core)‬
PROBLEM DESCRIPTION:
newly installed system with only roundcube. Horde added using updates & upgrades. Fail2ban added using updates & upgrades.
Turning on fail2ban jail for Horde produces error:
"
Unable to switch on the selected jails: f2bmng failed: ERROR No file(s) found for glob /var/log/psa-horde/psa-horde.log
ERROR Failed during configuration: Have not found any log file for plesk-horde jail
ERROR:__main__:Command '['/usr/bin/fail2ban-client', 'reload', 'plesk-horde']' returned non-zero exit status 255
ERROR:__main__:Failed to reload following jails due to errors in configuration: plesk-horde.
"​
STEPS TO REPRODUCE:
on new system, load horde, load fail2ban, enable fail2ban jail for horde.​
ACTUAL RESULT:
error message
Unable to switch on the selected jails: f2bmng failed: ERROR No file(s) found for glob /var/log/psa-horde/psa-horde.log
ERROR Failed during configuration: Have not found any log file for plesk-horde jail
ERROR:__main__:Command '['/usr/bin/fail2ban-client', 'reload', 'plesk-horde']' returned non-zero exit status 255
ERROR:__main__:Failed to reload following jails due to errors in configuration: plesk-horde.​
EXPECTED RESULT:
jail enables​
ANY ADDITIONAL INFORMATION:
problem solved by manually creating the psa-horde folder and a blank psa-horde.log file within
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 
Hi Igor,

thanks for your answer. However it is the other way around.
the article states:
Cause
A jail of the component that is not installed on the server is enabled in the Fail2Ban configuration file.
which is not correct in my case stated above. In my case stated above Horde *is* installed, with fail2ban installed afterwards. (It just hasn't been used yet by any customer/client as it is a new server setup). Enabling the jail still fails.
As I found out this is due to the missing log file. Which apparently isn't created (even a blank one) when Horde is installed in the first place. [Maybe the log file is only created the first time a client actually logs in / starts using Horde?]
Maybe your devs can incorporate the creation of a blank Horde log file as soon as Horde gets installed. :)
 
Last edited:
Ok. Thank you. I forwarded it to developers. Let's wait for their decision.
 
From developer:

Did not reproduce on Centos 7.5. Followed the STR, but jail was enabled successfully:

2019-02-18 15:37:22,047 fail2ban.transmitter [3753]: WARNING Command ['stop', 'plesk-horde'] has failed. Received UnknownJailException('plesk-horde',)
2019-02-18 15:37:22,049 fail2ban.server [3753]: INFO Changed logging target to /var/log/fail2ban.log for Fail2ban v0.9.6
2019-02-18 15:37:22,051 fail2ban.jail [3753]: INFO Creating new jail 'plesk-horde'
2019-02-18 15:37:22,156 fail2ban.jail [3753]: INFO Jail 'plesk-horde' uses pyinotify
2019-02-18 15:37:22,198 fail2ban.jail [3753]: INFO Initiated 'pyinotify' backend
2019-02-18 15:37:22,202 fail2ban.filter [3753]: INFO Added logfile = /var/log/psa-horde/psa-horde.log
 
Ordered a new cloud server a few days ago from InternetX with Plesk Webhost preloaded. It came with version 17.8.11 Update #53 .
Had the same issue. Could it be the image they are using to create the instance?
 
I've just had the same issue, I think:

fail2ban-client -x start
2023-01-14 19:54:36,377 fail2ban [3292]: ERROR Failed during configuration: Have not found any log file for plesk-horde jail

Plesk Obsidian Web Admin Edition 18.0.49 Update #2
OS Debian 11.6

I've fixed the issue by removing from jail.local:
"[plesk-horde]
enabled = true"

I don't have Horde installed.
 
@Frostbolt If you do not have horde, instead of removing the entry from jail.local a possibly better solution could be to deactive the Horde jail in IP Address Banning (Fail2Ban) in Plesk. Late, should you ever use Horde, you can reactivate it there and won't need to edit files directly.
 
@Frostbolt If you do not have horde, instead of removing the entry from jail.local a possibly better solution could be to deactive the Horde jail in IP Address Banning (Fail2Ban) in Plesk. Late, should you ever use Horde, you can reactivate it there and won't need to edit files directly.
Yeah, well the problem was it didn't show up there... :( It wasn't in the list of jails.
 
Back
Top