apache down

Discussion in 'Installation/Configuration' started by Lecrivain yoann, Sep 3, 2021.

Tags:
  1. Lecrivain yoann

    Lecrivain yoann New Member

    Hello, my apache is down without action.
    ispconfig 3.2.5
    debian 10

    Code:
    root@ns504755:~# /etc/init.d/apache2 start
    [....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.
    See "systemctl status apache2.service" and "journalctl -xe" for details.
     failed!
    root@ns504755:~# systemctl status apache2.service
    ● apache2.service - The Apache HTTP Server
       Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Fri 2021-09-03 08:32:42 UTC; 11s ago
         Docs: https://httpd.apache.org/docs/2.4/
      Process: 2549 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
    
    Sep 03 08:32:41 ns504755 systemd[1]: Starting The Apache HTTP Server...
    Sep 03 08:32:42 ns504755 apachectl[2549]: Action 'start' failed.
    Sep 03 08:32:42 ns504755 apachectl[2549]: The Apache error log may have more information.
    Sep 03 08:32:42 ns504755 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
    Sep 03 08:32:42 ns504755 systemd[1]: apache2.service: Failed with result 'exit-code'.
    Sep 03 08:32:42 ns504755 systemd[1]: Failed to start The Apache HTTP Server.
    
    Code:
    root@ns504755:~# journalctl -xe
    Sep 03 08:33:39 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/4.jpg downloaded  (125087 bytes, 386.51KB/sec)
    Sep 03 08:33:40 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue2/1.jpg downloaded  (169317 bytes, 666.99KB/sec)
    Sep 03 08:33:40 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/5.jpg downloaded  (208308 bytes, 826.05KB/sec)
    Sep 03 08:33:40 ns504755 postfix/smtpd[1403]: warning: unknown[212.70.149.56]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Sep 03 08:33:40 ns504755 postfix/smtpd[1403]: disconnect from unknown[212.70.149.56] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    Sep 03 08:33:41 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue2/2.jpg downloaded  (193718 bytes, 806.33KB/sec)
    Sep 03 08:33:41 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/6.jpg downloaded  (290364 bytes, 722.55KB/sec)
    Sep 03 08:33:42 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue2/3.jpg downloaded  (228870 bytes, 572.68KB/sec)
    Sep 03 08:33:43 ns504755 postfix/smtpd[1481]: warning: hostname ip245.tervelnet.com does not resolve to address 87.246.7.245: Name or service not known
    Sep 03 08:33:43 ns504755 postfix/smtpd[1481]: connect from unknown[87.246.7.245]
    Sep 03 08:33:43 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/7.jpg downloaded  (282770 bytes, 1271.44KB/sec)
    Sep 03 08:33:43 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue2/4.jpg downloaded  (120163 bytes, 1109.62KB/sec)
    Sep 03 08:33:44 ns504755 dovecot[817]: auth-worker(831): sql([email protected],45.155.204.190,<EU5QKBPLWv8tm8y+>): unknown user
    Sep 03 08:33:45 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue2/5.jpg downloaded  (209996 bytes, 971.32KB/sec)
    Sep 03 08:33:45 ns504755 postfix/smtpd[1485]: warning: unknown[212.70.149.88]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Sep 03 08:33:45 ns504755 dovecot[817]: imap([email protected])<2591><u66PJRPL69tTwj6p>: Logged out in=609 out=133418 deleted=1 expunged=1 trashed=0 hdr_count=1 hdr_bytes=3640 body_count=1 body_bytes=31503
    Sep 03 08:33:45 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/config_du_jour_langue1.txt downloaded  (153 bytes, 3387.50KB/sec)
    Sep 03 08:33:46 ns504755 sshd[2674]: Invalid user felomina from 178.128.221.162 port 55896
    Sep 03 08:33:46 ns504755 sshd[2674]: pam_unix(sshd:auth): check pass; user unknown
    Sep 03 08:33:46 ns504755 sshd[2674]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=178.128.221.162
    Sep 03 08:33:46 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue2/6.jpg downloaded  (288001 bytes, 738.57KB/sec)
    Sep 03 08:33:46 ns504755 dovecot[817]: pop3-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=45.155.204.190, lip=192.99.9.213, session=<EU5QKBPLW
    Sep 03 08:33:46 ns504755 postfix/smtps/smtpd[1927]: connect from unknown[212.70.149.71]
    Sep 03 08:33:46 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/config_du_jour_langue2.txt downloaded  (119 bytes, 2769.45KB/sec)
    Sep 03 08:33:47 ns504755 postfix/smtpd[1485]: disconnect from unknown[212.70.149.88] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    Sep 03 08:33:47 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/config_du_jour_langue3.txt downloaded  (119 bytes, 2769.45KB/sec)
    Sep 03 08:33:47 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue2/7.jpg downloaded  (282076 bytes, 774.51KB/sec)
    Sep 03 08:33:47 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/config_no_menu.txt downloaded  (134 bytes, 3049.24KB/sec)
    Sep 03 08:33:48 ns504755 postfix/smtpd[1480]: warning: hostname net6-ip228.linkbg.com does not resolve to address 87.246.7.228: Name or service not known
    Sep 03 08:33:48 ns504755 postfix/smtpd[1480]: connect from unknown[87.246.7.228]
    Sep 03 08:33:48 ns504755 sshd[2674]: Failed password for invalid user felomina from 178.128.221.162 port 55896 ssh2
    Sep 03 08:33:48 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/config_no_menu_l2.txt downloaded  (117 bytes, 3014.04KB/sec)
    Sep 03 08:33:49 ns504755 pure-ftpd[2652]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/config_no_menu_l3.txt downloaded  (117 bytes, 3091.82KB/sec)
    Sep 03 08:33:49 ns504755 pure-ftpd[2652]: ([email protected]) [INFO] Logout.
    Sep 03 08:33:50 ns504755 postfix/smtpd[1403]: connect from unknown[212.70.149.56]
    Sep 03 08:33:50 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/1.jpg downloaded  (165521 bytes, 692.00KB/sec)
    Sep 03 08:33:51 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/2.jpg downloaded  (211675 bytes, 935.65KB/sec)
    Sep 03 08:33:52 ns504755 postfix/smtpd[1481]: warning: unknown[87.246.7.245]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Sep 03 08:33:52 ns504755 postfix/smtpd[1481]: disconnect from unknown[87.246.7.245] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    Sep 03 08:33:53 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/3.jpg downloaded  (256555 bytes, 608.59KB/sec)
    Sep 03 08:33:53 ns504755 sshd[2681]: Invalid user anish from 159.89.91.67 port 45048
    Sep 03 08:33:53 ns504755 sshd[2681]: pam_unix(sshd:auth): check pass; user unknown
    Sep 03 08:33:53 ns504755 sshd[2681]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=159.89.91.67
    Sep 03 08:33:54 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/4.jpg downloaded  (125087 bytes, 1070.95KB/sec)
    Sep 03 08:33:54 ns504755 postfix/smtpd[1480]: warning: unknown[87.246.7.228]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Sep 03 08:33:54 ns504755 postfix/smtpd[1480]: disconnect from unknown[87.246.7.228] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    Sep 03 08:33:55 ns504755 postfix/smtpd[1499]: connect from unknown[212.70.149.88]
    Sep 03 08:33:55 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/5.jpg downloaded  (208308 bytes, 863.45KB/sec)
    Sep 03 08:33:55 ns504755 sshd[2681]: Failed password for invalid user anish from 159.89.91.67 port 45048 ssh2
    Sep 03 08:33:56 ns504755 pure-ftpd[2663]: ([email protected]) [NOTICE] /var/www/clients/client1/web52//web/RL1923/langue3/6.jpg downloaded  (290364 bytes, 864.89KB/sec)
    lines 1004-1053/1053 (END)
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The most common reason for an apache failure without an error message in the log is a missing or defective SSL certificate. Did you change anything SSL-related lately or did you remove any SSL certs on the shell or something similar? Such an issue is unrecognizable until apache is restarted, so it might be days ago that the SSL cert was changed or removed.
     
  3. Lecrivain yoann

    Lecrivain yoann New Member

    Hello,

    thank for your answer.

    I watch log error.log from apache.

    The issue seem link to a ssl.

    I have this error for a domain :

    Code:
    root@ns504755:/etc/apache2/sites-enabled# a2dissite 100-assistis.fr.vhost
    ERROR: Site 100-assistis.fr.vhost does not exist!
    root@ns504755:/etc/apache2/sites-enabled# tail -f /var/log/ispconfig/httpd/assistis.fr/error.log
    [Fri Sep 03 08:32:42.032225 2021] [ssl:emerg] [pid 2552] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:32:42.032238 2021] [ssl:emerg] [pid 2552] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
    [Fri Sep 03 08:36:43.574886 2021] [ssl:emerg] [pid 3077] AH02572: Failed to configure at least one certificate and key for assistis.fr:443
    [Fri Sep 03 08:36:43.574917 2021] [ssl:emerg] [pid 3077] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: DH PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:36:43.574927 2021] [ssl:emerg] [pid 3077] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:36:43.574939 2021] [ssl:emerg] [pid 3077] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
    [Fri Sep 03 08:37:38.157738 2021] [ssl:emerg] [pid 3245] AH02572: Failed to configure at least one certificate and key for assistis.fr:443
    [Fri Sep 03 08:37:38.157770 2021] [ssl:emerg] [pid 3245] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: DH PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:37:38.157780 2021] [ssl:emerg] [pid 3245] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:37:38.157793 2021] [ssl:emerg] [pid 3245] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
    
    I do not kow resolve this, can you help me ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Don't use a2dissite command. Check the folder:

    /etc/apache2/sites-enabled/

    for symlinks that contain this domain name and delete them, then restart apache.
     
  5. Lecrivain yoann

    Lecrivain yoann New Member

    I remove hosqte in site-available and site enable.

    Restart is not ok
    Code:
    oot@ns504755:/etc/apache2/sites-available# tail -f /var/log/apache2/error.log
    AH00016: Configuration Failed
    [Fri Sep 03 08:51:16.202078 2021] [ssl:warn] [pid 6743] AH01909: debian.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Fri Sep 03 08:51:16.222023 2021] [ssl:emerg] [pid 6743] AH02311: Fatal error initialising mod_ssl, exiting. See /var/log/ispconfig/httpd/assistis.fr/error.log for more information
    AH00016: Configuration Failed
    [Fri Sep 03 08:57:14.154385 2021] [ssl:warn] [pid 7439] AH01909: debian.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Fri Sep 03 08:57:14.174171 2021] [ssl:emerg] [pid 7439] AH02311: Fatal error initialising mod_ssl, exiting. See /var/log/ispconfig/httpd/assistis.fr/error.log for more information
    AH00016: Configuration Failed
    [Fri Sep 03 08:59:10.634470 2021] [ssl:warn] [pid 7831] AH01909: debian.example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Fri Sep 03 08:59:10.655184 2021] [ssl:emerg] [pid 7831] AH02311: Fatal error initialising mod_ssl, exiting. See /var/log/ispconfig/httpd/assistis.fr/error.log for more information
    AH00016: Configuration Failed
    ^C
    root@ns504755:/etc/apache2/sites-available# tail -f /var/log/ispconfig/httpd/assistis.fr/error.log
    [Fri Sep 03 08:51:16.222004 2021] [ssl:emerg] [pid 6743] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:51:16.222017 2021] [ssl:emerg] [pid 6743] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
    [Fri Sep 03 08:57:14.174111 2021] [ssl:emerg] [pid 7439] AH02572: Failed to configure at least one certificate and key for assistis.fr:443
    [Fri Sep 03 08:57:14.174141 2021] [ssl:emerg] [pid 7439] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: DH PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:57:14.174151 2021] [ssl:emerg] [pid 7439] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:57:14.174164 2021] [ssl:emerg] [pid 7439] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
    [Fri Sep 03 08:59:10.655123 2021] [ssl:emerg] [pid 7831] AH02572: Failed to configure at least one certificate and key for assistis.fr:443
    [Fri Sep 03 08:59:10.655154 2021] [ssl:emerg] [pid 7831] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: DH PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:59:10.655164 2021] [ssl:emerg] [pid 7831] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
    [Fri Sep 03 08:59:10.655177 2021] [ssl:emerg] [pid 7831] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
    
    
     
  6. Lecrivain yoann

    Lecrivain yoann New Member

    It's great, i have missing an older vhost for this domain.

    Thank you, the subject it's resolved.
     

Share This Page