“No file(s) found for glob /var/log/maillog” error in Plesk causing trouble? Our experts are here with two different solutions.
At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.
Let’s take a look at how our Support Team recently helped out a customer with the “No file(s) found” error.
How to resolve No file(s) found for glob /var/log/maillog” error in Plesk
We can Easily switch on jails in Plesk by navigating to Jails under IP Address Banning (Fail2Ban) under Tools & Settings section. However, sometimes we may across one of the following error messages:
-
Unable to switch on the selected jails: f2bmng failed: ERROR No file(s) found for glob /var/log/secure ERROR Failed during configuration: Have not found any log file for ssh jail
-
fail2ban.jailreader [8610]: ERROR No file(s) found for glob /var/log/psa-horde/psa-horde.log
-
fail2ban.jailreader [8610]: ERROR No file(s) found for glob /var/log/maillog
-
fail2ban.jailreader [8610]: ERROR No file(s) found for glob /var/log/plesk-roundcube/errors
The Plesk error can also prevent the Enable intrusion detection from being enabled. We can find this option under Tools & Settings > IP Address Banning (Fail2Ban) > Settings while activating Fail2Ban.
Another noticeable symptom due to this error includes the following status report:
# service fail2ban status ... fail2ban [8610]: ERROR Failed during configuration: Have not found any log file for plesk-postfix jail
fail2ban-client[12099]: ERROR Failed during configuration: Have not found any log file for plesk-horde jail
According to our experienced Support Engineers, the error is due to an absent logfile. Fortunately, our Support Team has come up with 2 ways to resolve this issue.
Option 1: Create missing logfiles/directories
- First, we will connect to the Plesk server through SSH.
- Then, we have to create each of the missing logfiles manually as well as assign appropriate ownership for each of them:
# touch /var/log/maillog && chmod 640 /var/log/maillog # mkdir /var/log/psa-horde && touch /var/log/psa-horde/psa-horde.log && chown horde_sysuser:horde_sysgroup /var/log/psa-horde/psa-horde.log # touch /var/log/plesk-roundcube/errors && chown roundcube_sysuser:roundcube_sysgroup /var/log/plesk-roundcube/errors && chmod 640 /var/log/plesk-roundcube/errors # touch /var/log/secure && chmod 600 /var/log/secure
- Next, we will start Fail2Ban with this command:
# service fail2ban start
Disable the jail
- First, we will connect to the Plesk server through SSH.
- Next, we have to open the /etc/fail2ban/jail.local file in a text editor.
- Then we will look for the component named in the error message. For instance, in the example here, the component is psa-horde. So we will remove it as seen below:
[plesk-horde] enabled = true
- After that, we have to save the changes and exit the file.
- Finally, we will start Fail2Ban with the following command:
# service fail2ban start
[Looking for a solution to another query? We are just a click away.]
Conclusion
To sum up, our skilled Support Engineers at Bobcares demonstrated how to resolve the “No file(s) found for glob /var/log/maillog” error.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments