No http/https after Mail server installation

Dear Forum

After the MTU problem was solved the server seemed to run proper. I could install a few apps until the Mail Server App. The installation was successful but after a reboot the server is not reachable anymore via browser. I checked the logs. Apache shows:

[Tue Mar 27 13:52:58.126859 2018] [mpm_prefork:notice] [pid 15347] AH00171: Graceful restart requested, doing restart
[Tue Mar 27 13:52:59.001100 2018] [mpm_prefork:notice] [pid 15347] AH00163: Apache/2.4.25 (Univention) OpenSSL/1.0.2l configured -- resuming normal op$
[Tue Mar 27 13:52:59.001155 2018] [core:notice] [pid 15347] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 27 13:53:39.678727 2018] [mpm_prefork:notice] [pid 15347] AH00171: Graceful restart requested, doing restart
[Tue Mar 27 13:53:40.000590 2018] [mpm_prefork:notice] [pid 15347] AH00163: Apache/2.4.25 (Univention) OpenSSL/1.0.2l configured -- resuming normal op$
[Tue Mar 27 13:53:40.000650 2018] [core:notice] [pid 15347] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 27 13:53:51.931913 2018] [autoindex:error] [pid 15938] [client 183.89.35.76:34446] AH01276: Cannot serve directory /var/www/univention/js/umc$
[Tue Mar 27 14:02:41.771005 2018] [autoindex:error] [pid 17562] [client 183.89.35.76:34962] AH01276: Cannot serve directory /var/www/univention/js/umc$
[Tue Mar 27 14:03:11.464886 2018] [autoindex:error] [pid 15936] [client 183.89.35.76:34996] AH01276: Cannot serve directory /var/www/univention/js/umc$
[Tue Mar 27 14:03:16.312841 2018] [autoindex:error] [pid 17562] [client 183.89.35.76:35004] AH01276: Cannot serve directory /var/www/univention/js/umc$
[Tue Mar 27 14:04:14.460791 2018] [autoindex:error] [pid 17425] [client 183.89.35.76:35058] AH01276: Cannot serve directory /var/www/univention/js/umc$
[Tue Mar 27 14:04:49.654122 2018] [mpm_prefork:notice] [pid 15347] AH00171: Graceful restart requested, doing restart
[Tue Mar 27 14:04:50.000406 2018] [mpm_prefork:notice] [pid 15347] AH00163: Apache/2.4.25 (Univention) OpenSSL/1.0.2l configured -- resuming normal op$
[Tue Mar 27 14:04:50.000431 2018] [core:notice] [pid 15347] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 27 14:08:42.209010 2018] [autoindex:error] [pid 23093] [client 183.89.35.76:35252] AH01276: Cannot serve directory /var/www/univention/js/umc$
[Tue Mar 27 14:08:46.833309 2018] [autoindex:error] [pid 23090] [client 183.89.35.76:35264] AH01276: Cannot serve directory /var/www/univention/js/umc$
[Tue Mar 27 14:09:59.128733 2018] [mpm_prefork:notice] [pid 15347] AH00171: Graceful restart requested, doing restart
[Tue Mar 27 14:10:00.001012 2018] [mpm_prefork:notice] [pid 15347] AH00163: Apache/2.4.25 (Univention) OpenSSL/1.0.2l configured -- resuming normal op$
[Tue Mar 27 14:10:00.001040 2018] [core:notice] [pid 15347] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 27 14:10:11.815838 2018] [mpm_prefork:notice] [pid 15347] AH00169: caught SIGTERM, shutting down
[Tue Mar 27 14:10:11.900652 2018] [suexec:notice] [pid 18365] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue Mar 27 14:10:13.004034 2018] [mpm_prefork:notice] [pid 18366] AH00163: Apache/2.4.25 (Univention) OpenSSL/1.0.2l configured -- resuming normal op$
[Tue Mar 27 14:10:13.004088 2018] [core:notice] [pid 18366] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 27 14:10:13.914004 2018] [mpm_prefork:notice] [pid 18366] AH00169: caught SIGTERM, shutting down
[Tue Mar 27 14:10:13.984435 2018] [suexec:notice] [pid 18419] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue Mar 27 14:10:15.003547 2018] [mpm_prefork:notice] [pid 18420] AH00163: Apache/2.4.25 (Univention) OpenSSL/1.0.2l configured -- resuming normal op$
[Tue Mar 27 14:10:15.003601 2018] [core:notice] [pid 18420] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 27 14:10:29.150097 2018] [autoindex:error] [pid 18518] [client 183.89.35.76:35336] AH01276: Cannot serve directory /var/www/univention/js/umc$
[Tue Mar 27 14:13:02.678126 2018] [mpm_prefork:notice] [pid 18420] AH00169: caught SIGTERM, shutting down

A port scan shows that 443 is not open anymore

Starting Nmap 7.01 ( https://nmap.org ) at 2018-03-27 14:51 +07
Nmap scan report for ucs.xx.com (xx.xx.xx.xx)
Host is up (0.021s latency).
Not shown: 990 filtered ports
PORT     STATE  SERVICE
21/tcp   open   ftp
25/tcp   open   smtp
80/tcp   open   http
110/tcp  open   pop3
113/tcp  closed ident
143/tcp  open   imap
199/tcp  closed smux
2000/tcp open   cisco-sccp
5060/tcp open   sip
8008/tcp open   http

Nmap done: 1 IP address (1 host up) scanned in 5.08 seconds

Hey,

can you start Apache manually via systemctl start apache2.service ? Maybe it’s disabled for some reason; try running systemctl enable apache2.service so that is started during the boot process.

Additionally: what’s the output of journalctl -b -u apache2.service ?

Kind regards,
mosu

Hi Moritz

Thank you for the fast response.

root@ucs:~# systemctl enable apache2.service

Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "en_US.UTF-8",
        LC_MONETARY = "en_US.UTF-8",
        LC_ADDRESS = "th_TH.UTF-8",
        LC_TELEPHONE = "th_TH.UTF-8",
        LC_NAME = "th_TH.UTF-8",
        LC_MEASUREMENT = "en_US.UTF-8",
        LC_IDENTIFICATION = "th_TH.UTF-8",
        LC_NUMERIC = "en_US.UTF-8",
        LC_PAPER = "th_TH.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "en_US.UTF-8",
        LC_MONETARY = "en_US.UTF-8",
        LC_ADDRESS = "th_TH.UTF-8",
        LC_TELEPHONE = "th_TH.UTF-8",
        LC_NAME = "th_TH.UTF-8",
        LC_MEASUREMENT = "en_US.UTF-8",
        LC_IDENTIFICATION = "th_TH.UTF-8",
        LC_NUMERIC = "en_US.UTF-8",
        LC_PAPER = "th_TH.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

root@ucs:~# journalctl -b -u apache2.service

-- Logs begin at Tue 2018-03-27 13:24:12 +07, end at Tue 2018-03-27 15:30:05 +07. --
Mar 27 14:22:09 ucs systemd[1]: Starting The Apache HTTP Server...
Mar 27 14:22:10 ucs apachectl[1827]: AH00526: Syntax error on line 22 of /etc/apache2/sites-enabled/default-ssl.conf:
Mar 27 14:22:10 ucs apachectl[1827]: SSLCertificateFile: file '/etc/univention/letsencrypt/signed.crt' does not exist
Mar 27 14:22:10 ucs apachectl[1827]: Action 'start' failed.
Mar 27 14:22:10 ucs apachectl[1827]: The Apache error log may have more information.
Mar 27 14:22:10 ucs systemd[1]: apache2.service: Control process exited, code=exited status=1
Mar 27 14:22:10 ucs systemd[1]: Failed to start The Apache HTTP Server.
Mar 27 14:22:10 ucs systemd[1]: apache2.service: Unit entered failed state.
Mar 27 14:22:10 ucs systemd[1]: apache2.service: Failed with result 'exit-code'.

Best regards
Alexander

Hey,

this right here is your problem.

Kind regards,
mosu

Mastodon