ISPconfig 3 suddenly stopped responding

Discussion in 'General' started by Deolu, Feb 21, 2021.

  1. Deolu

    Deolu New Member

    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 20.04.1 LTS

    [INFO] uptime: 18:34:01 up 11:55, 1 user, load average: 0.01, 0.02, 0.00

    [INFO] memory:
    total used free shared buff/cache available
    Mem: 3.8Gi 1.6Gi 1.1Gi 3.0Mi 1.1Gi 1.9Gi
    Swap: 0B 0B 0B

    [INFO] systemd failed services status:
    UNIT LOAD ACTIVE SUB DESCRIPTION

    ● apache2.service loaded failed failed The Apache HTTP Server

    ● snap.lxd.activate.service loaded failed failed Service for snap application lx
    d.activate

    LOAD = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB = The low-level unit activation state, values depend on unit type.

    2 loaded units listed.

    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.2dev20201016

    PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies


    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 20.04.1 LTS
    Release: 20.04
    Codename: focal



    ...skipping 1 line

    [INFO] php (cli) version is 7.4.3

    ##### PORT CHECK #####

    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening
    [WARN] Port 80 (Webserver) seems NOT to be listening
    [WARN] Port 443 (Webserver SSL) seems NOT to be listening

    ##### MAIL SERVER CHECK #####

    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connecti
    ons you have to enable this.

    ##### RUNNING SERVER PROCESSES #####

    [WARN] I could not determine which web server is running.
    [INFO] I found the following mail server(s):
    Postfix (PID 1799)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 599)

    ...skipping 1 line
    Dovecot (PID 599)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 996)

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [localhost]:10023 (904/postgrey)
    [localhost]:10024 (1393/amavisd-new)
    [localhost]:10025 (1799/master)
    [localhost]:10026 (1393/amavisd-new)
    [localhost]:10027 (1799/master)
    [localhost]:11211 (615/memcached)
    [anywhere]:110 (599/dovecot)
    [anywhere]:143 (599/dovecot)
    [anywhere]:465 (1799/master)
    [anywhere]:21 (996/pure-ftpd)
    ***.***.***.***:53 (616/named)
    [localhost]:53 (616/named)
    ***.***.***.***:53 (512/systemd-resolve)
    [anywhere]:22 (667/sshd:)
    [anywhere]:25 (1799/master)
    [localhost]:953 (616/named)
    [anywhere]:993 (599/dovecot)
    [anywhere]:995 (599/dovecot)
    *:*:*:*::*:10024 (1393/amavisd-new)
    *:*:*:*::*:10026 (1393/amavisd-new)
    *:*:*:*::*:3306 (796/mysqld)
    [localhost]10 (599/dovecot)
    [localhost]43 (599/dovecot)
    *:*:*:*::*:465 (1799/master)
    *:*:*:*::*:21 (996/pure-ftpd)
    *:*:*:*::*f816:3eff:fef3:53 (616/named)
    *:*:*:*::*:53 (616/named)
    *:*:*:*::*:22 (667/sshd:)
    *:*:*:*::*:25 (1799/master)
    *:*:*:*::*:953 (616/named)
    *:*:*:*::*:993 (599/dovecot)
    *:*:*:*::*:995 (599/dovecot)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    ...skipping 1 line

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain f2b-sshd (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icm
    p-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icm
    p-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with
    icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icm
    p-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. today fail2ban banned my ip address and I couldn't login. check fail2ban.
    sudo zgrep 'Ban' /var/log/fail2ban.log*
     
  4. Deolu

    Deolu New Member

    The panel isn't working, all the site isn't working
     
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Apache is not running, as you can see in the report: "apache2.service loaded failed failed The Apache HTTP Server"
    Try starting it and if it fails, see why with
    Code:
    systemctl status apache2
     
  6. Deolu

    Deolu New Member

    Thank you, i have turned it on and off again, when i tried to restart apache
    systemctl restart apache2
    i got :
    root@vps-c4b3a0d6:/home/ubuntu# systemctl restart apache2

    Code:
    root@vps-c4b3a0d6:/home/ubuntu# systemctl restart apache2
    Job for apache2.service failed because the control process exited with error code.
    See "systemctl status apache2.service" and "journalctl -xe" for details.
    
    When checking the reason it failed, i got this:
    apache2.service - The Apache HTTP Server
    Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese>
    Active: failed (Result: exit-code) since Sun 2021-02-21 06:40:27 UTC; 1 da>
    Docs: https://httpd.apache.org/docs/2.4/
    Process: 617 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAI>

    Feb 21 06:40:26 vps-c4b3a0d6 systemd[1]: Starting The Apache HTTP Server...
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[644]: AH00548: NameVirtualHost has no ef>
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[644]: AH00112: Warning: DocumentRoot [/v>
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[644]: AH00543: apache2: bad user name we>
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[617]: Action 'start' failed.
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[617]: The Apache error log may have more>
    Feb 21 06:40:27 vps-c4b3a0d6 systemd[1]: apache2.service: Control process exite>
    Feb 21 06:40:27 vps-c4b3a0d6 systemd[1]: apache2.service: Failed with result 'e>
    Feb 21 06:40:27 vps-c4b3a0d6 systemd[1]: Failed to start The Apache HTTP Server.
    lines 1-15/15 (END)...skipping...
    ● apache2.service - The Apache HTTP Server
    Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Sun 2021-02-21 06:40:27 UTC; 1 day 1h ago
    Docs: https://httpd.apache.org/docs/2.4/
    Process: 617 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

    Feb 21 06:40:26 vps-c4b3a0d6 systemd[1]: Starting The Apache HTTP Server...
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[644]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.vh>
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[644]: AH00112: Warning: DocumentRoot [/var/www/fallowmiddleschool.com/web] does not exist
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[644]: AH00543: apache2: bad user name web20
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[617]: Action 'start' failed.
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[617]: The Apache error log may have more information.
    Feb 21 06:40:27 vps-c4b3a0d6 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
    Feb 21 06:40:27 vps-c4b3a0d6 systemd[1]: apache2.service: Failed with result 'exit-code'.
    Feb 21 06:40:27 vps-c4b3a0d6 systemd[1]: Failed to start The Apache HTTP Server.
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Code:
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[644]: AH00112: Warning: DocumentRoot [/var/www/fallowmiddleschool.com/web] does not exist
    Feb 21 06:40:27 vps-c4b3a0d6 apachectl[644]: AH00543: apache2: bad user name web20
    is interesting. Did you manually delete something, but does the vhost still exist?
    (Always make changes through the panel instead of manually to prevent this kind of things from happening!)
     
  8. Deolu

    Deolu New Member

  9. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Try
    Code:
    a2dissite fallowmiddleschool.com
    and then see if Apache starts.
     
  10. Deolu

    Deolu New Member

    :/# a2dissite fallowmiddleschool.com
    ERROR: Site fallowmiddleschool.com does not exist!
     
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    What is the output of
    Code:
    sudo grep -R "web20" /etc/apache2/sites-available
     
  12. Deolu

    Deolu New Member

     
  13. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Your message is empty ;)
     
  14. Deolu

    Deolu New Member

    sorry... this was what i got:

    root@vps-c4b3a0d6:/# sudo grep -R "web20" /etc/apache2/sites-available
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: <Directory /var/www/clients/client10/web20/web>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: <Directory /var/www/clients/client10/web20/web>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: <Directory /var/www/clients/client10/web20/web>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: <Directory /var/www/clients/client10/web20/cgi-bin>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: ScriptAlias /cgi-bin/ /var/www/clients/client10/web20/cgi-bin/
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: SuexecUserGroup web20 client10
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: FCGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: FCGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php3
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: FCGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php4
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: FCGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php5
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: <Directory /var/www/clients/client10/web20/web>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: FCGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: FCGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php3
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: FCGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php4
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: FCGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php5
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: AssignUserId web20 client10
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: <Directory /var/www/clients/client10/web20/webdav>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost-le-ssl.conf: DavLockDB /var/www/clients/client10/web20/tmp/DavLock
    root@vps-c4b3a0d6:/#
     
  15. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Did you try creating a LE cert for this site by hand instead of through ISPConfig? Or rename it? This is not the usual name.

    Remove -le-ssl.conf from the filename and then run the command I mentioned before.
     
  16. Deolu

    Deolu New Member

    ok, done that, got this :
    root@vps-c4b3a0d6:/etc/apache2/sites-available# sudo grep -R "web20" /etc/apache 2/sites-available
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: <Directo ry /var/www/clients/client10/web20/web>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: < Directory /var/www/clients/client10/web20/web>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: < Directory /var/www/clients/client10/web20/web>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: <Directory /var/ www/clients/client10/web20/cgi-bin>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: ScriptAl ias /cgi-bin/ /var/www/clients/client10/web20/cgi-bin/
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: S uexecUserGroup web20 client10
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: F CGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: F CGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php3
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: F CGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php4
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: F CGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php5
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: <Directo ry /var/www/clients/client10/web20/web>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: F CGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: F CGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php3
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: F CGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php4
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: F CGIWrapper /var/www/php-fcgi-scripts/web20/.php-fcgi-starter .php5
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: A ssignUserId web20 client10
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: < Directory /var/www/clients/client10/web20/webdav>
    /etc/apache2/sites-available/fallowmiddleschool.com.vhost: D avLockDB /var/www/clients/client10/web20/tmp/DavLock
     
  17. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I meant this command :)
    Code:
    a2dissite fallowmiddleschool.com
    And then try starting apache.
     
  18. Deolu

    Deolu New Member

    ERROR: Site fallowmiddleschool.com does not exist!
     
  19. Deolu

    Deolu New Member

    Oh my its back up. I restarted apache and it came up. Thank you so much
     
  20. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Glad to hear. No problem.
     

Share This Page