• 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.

Resolved Problem apache after upgrade to debian 8

garcue

Regular Pleskian
I just updated my machine to debian 8 and at the end I find that my sites have a 502. I skip a configuration file regeneration message in the same plesk panel. But it shows the following error when trying:

web:f2bmng failed: ERROR No file(s) found for glob /var/log/apache2/*error.log ERROR No file(s) found for glob /var/log/apache2/*access.log ERROR No file(s) found for glob /var/log/apache2/*access.log ERROR No file(s) found for glob /var/log/apache*/*error.log ERROR Failed during configuration: Have not found any log file for apache-overflows jail ERROR:f2bmng:Command '['/usr/bin/fail2ban-client', 'reload']' returned non-zero exit status 255

Can anybody help me? it seems my apache2 service does not work
 
Hi garcue,

pls. note, that an error like:
f2bmng failed: ERROR No file(s) found for glob /var/log/apache2/*error.log ERROR No file(s) found for glob /var/log/apache2/*access.log ERROR No file(s) found for glob /var/log/apache2/*access.log ERROR No file(s) found for glob /var/log/apache*/*error.log ERROR Failed during configuration: Have not found any log file for apache-overflows jail ERROR:f2bmng:Command '['/usr/bin/fail2ban-client', 'reload']' returned non-zero exit status 255
... indicates, that Fail2Ban can't be started, as one jail ( => apache-overflows ) can't find the configured log - definitions.

If logs are not created at the standard paths, you might consider to restart the depending services ( here: service apache2 restart ). Pls. consider as well, to verify, that the definitions at your Fail2Ban - jails match your current settings for the depending service(s). A example control command like:
Code:
ls -lah /var/log/apache2
... could help you to investigate, if the defined log - paths are still valid and the log(s) existent. :)


To reconfigure your webserver - configuration files, you could use the Plesk Repair Utility, with an example command like:
Code:
plesk repair web -y -v
 
Thanks for the quick reply UFHH01

The command ls -lah / var / log / apache returns that there is no content inside the directory, it seems that during the upgrade something happened and it was deleted :(

This is the output of the repair command:

Checking Plesk version
Installed Plesk version/build: 17.5.3 Debian 7.0 1705170317.16

Checking for custom configuration templates ......................... [OK]

Checking for the JkWorkersFile directive in the Apache configuration [OK]

Checking associations between domains and IP addresses .............. [OK]

Checking for corrupted reference between IP collections and IP
addresses ........................................................... [OK]

Checking for links between APS applications and subscriptions ....... [OK]

Checking for the Zend extension declaraion in php.ini ............... [OK]

Check symbolic links for latest virtual host config files ........... [OK]

Checking for system users home directories consistency .............. [OK]

Checking for records with empty name field in the Configurations table[OK]

Checking for nginx ULIMIT value ..................................... [OK]

Checking for extra configurations in database not owned by any object
There is an extra configuration with id 517 belongs to the missed domain with id 126
There is an extra configuration with id 539 belongs to the missed domain with id 132
There is an extra configuration with id 547 belongs to the missed domain with id 135
There is an extra configuration with id 551 belongs to the missed domain with id 136
There is an extra configuration with id 631 belongs to the missed domain with id 153

There are some unnecessary configurations in the database. Please
check In some cases, extra webserver configuration files remaining after removing domains might cause conflicts with webserver configuration rebuild process for solution ..................... [WARNING]

Repairing web server configuration
Reinstalling SSL/TLS certificates ............................... [OK]
Applying the default SSL/TLS certificate to all IP addresses .... [OK]
[2017-10-02 20:59:15] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/f2bmng' '--set-options'] with exit code [1]
Error occured while sending feedback. HTTP code returned: 500
f2bmng failed: ERROR Found no accessible config files for 'filter.d/sshd' under /etc/fail2ban
ERROR No section: 'Definition'
ERROR No section: 'Definition'
ERROR Unable to read the filter
ERROR Errors in jail 'ssh'. Skipping...
ERROR Found no accessible config files for 'filter.d/recidive' under /etc/fail2ban
ERROR No section: 'Definition'
ERROR No section: 'Definition'
ERROR Unable to read the filter
ERROR Errors in jail 'recidive'. Skipping...
ERROR Found no accessible config files for 'filter.d/apache-badbots' under /etc/fail2ban
ERROR No section: 'Definition'
ERROR No section: 'Definition'
ERROR Unable to read the filter
ERROR Errors in jail 'apache-overflows'. Skipping...
WARNING 'filter' not defined in 'plesk-apache'. Using default one: ''
WARNING No filter set for jail plesk-apache
WARNING 'filter' not defined in 'plesk-apache'. Using default one: ''
WARNING 'action' not defined in 'plesk-apache'. Using default one: ''
WARNING No actions were defined for plesk-apache
WARNING 'filter' not defined in 'plesk-apache-badbot'. Using default one: ''
WARNING No filter set for jail plesk-apache-badbot
WARNING 'filter' not defined in 'plesk-apache-badbot'. Using default one: ''
WARNING 'action' not defined in 'plesk-apache-badbot'. Using default one: ''
WARNING No actions were defined for plesk-apache-badbot
WARNING 'filter' not defined in 'plesk-courierimap'. Using default one: ''
WARNING No filter set for jail plesk-courierimap
WARNING 'filter' not defined in 'plesk-courierimap'. Using default one: ''
WARNING 'action' not defined in 'plesk-courierimap'. Using default one: ''
WARNING No actions were defined for plesk-courierimap
WARNING 'filter' not defined in 'plesk-horde'. Using default one: ''
WARNING No filter set for jail plesk-horde
WARNING 'filter' not defined in 'plesk-horde'. Using default one: ''
WARNING 'action' not defined in 'plesk-horde'. Using default one: ''
WARNING No actions were defined for plesk-horde
WARNING 'filter' not defined in 'plesk-modsecurity'. Using default one: ''
WARNING No filter set for jail plesk-modsecurity
WARNING 'filter' not defined in 'plesk-modsecurity'. Using default one: ''
WARNING 'action' not defined in 'plesk-modsecurity'. Using default one: ''
WARNING No actions were defined for plesk-modsecurity
WARNING 'filter' not defined in 'plesk-panel'. Using default one: ''
WARNING No filter set for jail plesk-panel
WARNING 'filter' not defined in 'plesk-panel'. Using default one: ''
WARNING 'action' not defined in 'plesk-panel'. Using default one: ''
WARNING No actions were defined for plesk-panel
WARNING 'filter' not defined in 'plesk-postfix'. Using default one: ''
WARNING No filter set for jail plesk-postfix
WARNING 'filter' not defined in 'plesk-postfix'. Using default one: ''
WARNING 'action' not defined in 'plesk-postfix'. Using default one: ''
WARNING No actions were defined for plesk-postfix
WARNING 'filter' not defined in 'plesk-proftpd'. Using default one: ''
WARNING No filter set for jail plesk-proftpd
WARNING 'filter' not defined in 'plesk-proftpd'. Using default one: ''
WARNING 'action' not defined in 'plesk-proftpd'. Using default one: ''
WARNING No actions were defined for plesk-proftpd
WARNING 'filter' not defined in 'plesk-roundcube'. Using default one: ''
WARNING No filter set for jail plesk-roundcube
WARNING 'filter' not defined in 'plesk-roundcube'. Using default one: ''
WARNING 'action' not defined in 'plesk-roundcube'. Using default one: ''
WARNING No actions were defined for plesk-roundcube
WARNING 'filter' not defined in 'plesk-wordpress'. Using default one: ''
WARNING No filter set for jail plesk-wordpress
WARNING 'filter' not defined in 'plesk-wordpress'. Using default one: ''
WARNING 'action' not defined in 'plesk-wordpress'. Using default one: ''
WARNING No actions were defined for plesk-wordpress
ERROR No file(s) found for glob /var/log/apache2/*error.log
ERROR:f2bmng:Command '['/usr/bin/fail2ban-client', 'reload']' returned non-zero exit status 255
Repairing server-wide configuration parameters for web servers .... [OK]
Updating the file of sharing passwords and permissions of users
according to actual information ................................... [OK]
Repairing web server configuration for all domains. This aspect can
be used with individual domains ("plesk repair web example.com"),
and on the server level ("plesk repair web") ...................... [OK]

Checking the usage of PHP handlers .................................. [OK]

Error messages: 0; Warnings: 1; Errors resolved: 0
 
Hi garcue,

as you experience issues with Fail2Ban in the first place, pls. consider to DE- and RE-install the component. A detailled suggestion how to do that has been given here: => #50


If you experience, that your apache webserver didn't create the serverwide logs at "/var/log/apache2" ( on Debian/Ubuntu - based systems ), pls. consider to investigate the reason(s).
  • Restart the apache2 - webserver with the command ( logged in as user "root" over SSH ):
    Code:
    service apache2 restart
    ... and watch out for possible issues/errors/problems at the command line.
  • Use an example FIND - command like
    Code:
    find /etc/apache2 -type f -name "*.conf" -exec grep --color -Hni "/error.log" {} \;
    and make sure, that an entry like:
    Code:
    ErrorLog ${APACHE_LOG_DIR}/error.log
    ... is existent and not commented with an "#" in front at your "apache2.conf".
  • Use an example FIND - command like
    Code:
    find /etc/apache2 -type f -name "*.conf" -exec grep --color -Hni "/access.log" {} \;
    and make sure, that an entry like:
    Code:
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    ... is existent and not commented with an "#" in front at your "/etc/apache2/sites-available/000-default.conf" and "default-ssl.conf"
  • Pls. check, that at least ONE symbolic link for "000-default.conf" or/and "default-ssl.conf" is existent at "/etc/apache2/sites-enabled"
 
Thanks for the attempt UFHH01

I did not use the option and decided to migrate the machine restoring a backup generated that same day.

:( :( :(
 
Back
Top