title: Apache fails to start (Ubuntu 16.04) no error.log
body: <p>Apache2 crashes and there's no logging in the error.log, not even after setting the Loglevel to debug in the apache2.conf.</p>
  
  <p>Owner of the error.log is root</p>
  
  <p>No updates or changes were made on the Server</p>
  
  <p>Tried to downgrade from Apache (<code>apt-get install --reinstall apache2=2.4.18-2ubuntu3 apache2-bin=2.4.18-2ubuntu3 apache2-data=2.4.18-2ubuntu3</code>) but that doesn't help.</p>
  
  <p>service apache2 start:</p>
  
  <pre><code>Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
  
  systemctl status apache2.service:
  apache2.service - LSB: Apache2 web server
  Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
  └─apache2-systemd.conf
  Active: failed (Result: exit-code) since Tue 2017-04-04 16:06:03 UTC; 1min 26s ago
  Docs: man:systemd-sysv-generator(8)
  Process: 11071 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
  
  Apr 04 16:05:43 bpi-iot-ros systemd[1]: Starting LSB: Apache2 web server...
  Apr 04 16:05:43 bpi-iot-ros apache2[11071]: * Starting Apache httpd web server apache2
  Apr 04 16:06:03 bpi-iot-ros apache2[11071]: *
  Apr 04 16:06:03 bpi-iot-ros apache2[11071]: * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
  Apr 04 16:06:03 bpi-iot-ros systemd[1]: apache2.service: Control process exited, code=exited status=1
  Apr 04 16:06:03 bpi-iot-ros systemd[1]: Failed to start LSB: Apache2 web server.
  Apr 04 16:06:03 bpi-iot-ros systemd[1]: apache2.service: Unit entered failed state.
  Apr 04 16:06:03 bpi-iot-ros systemd[1]: apache2.service: Failed with result 'exit-code'.
  
  ● service.service
  Loaded: not-found (Reason: No such file or directory)
  Active: inactive (dead)
  
  journalctl -xe:
  Apr 04 16:09:22 bpi-iot-ros apache2[11191]: *
  Apr 04 16:09:22 bpi-iot-ros apache2[11191]: * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
  Apr 04 16:09:22 bpi-iot-ros systemd[1]: apache2.service: Control process exited, code=exited status=1
  Apr 04 16:09:22 bpi-iot-ros systemd[1]: Failed to start LSB: Apache2 web server.
  -- Subject: Unit apache2.service has failed
  -- Defined-By: systemd
  -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  -- 
  -- Unit apache2.service has failed.
  -- 
  -- The result is failed.
  Apr 04 16:09:22 bpi-iot-ros systemd[1]: apache2.service: Unit entered failed state.
  Apr 04 16:09:22 bpi-iot-ros systemd[1]: apache2.service: Failed with result 'exit-code'.
  </code></pre>
  
  <p>Error log, last lines from Monday:</p>
  
  <pre><code>[Mon Apr 03 08:56:07.530514 2017] [:error] [pid 30594] [client 192.168.2.185:52276] PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/nextcloud/lib/private/DB/Connection.php:60\nStack trace:\n#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection-&gt;connect()\n#1 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection-&gt;getDatabasePlatformVersion()\n#2 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection-&gt;detectDatabasePlatform()\n#3 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(621): Doctrine\DBAL\Connection-&gt;getDatabasePlatform()\n#4 /var/www/nextcloud/lib/private/DB/Connection.php(147): Doctrine\DBAL\Connection-&gt;setTransactionIsolation(2)\n#5 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection-&gt;__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Obj in /var/www/nextcloud/lib/private/DB/Connection.php on line 60
  [Mon Apr 03 08:56:12.034222 2017] [mpm_prefork:notice] [pid 625] AH00169: caught SIGTERM, shutting down
  </code></pre>
  
  <p>Edit: 
  apache2ctl configtest no Syntax errors.</p>
  
  <p>apache2ctl -X
  Child Process seems to hang up, can reach the SSL Warning (selfsigned) when attempting to reach the sitestarting </p>
  
  <p>did a strace of Apache starting, some Childprocess exited with Errorcode 1 (huge File so i only copied the last Lines)</p>
  
  <pre><code>11028 open("/lib/arm-linux-gnueabihf/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
  11028 read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\331i\1\0004\0\0\0"..., 512) = 512
  11028 lseek(3, 894128, SEEK_SET)        = 894128
  11028 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2960) = 2960
  11028 lseek(3, 888324, SEEK_SET)        = 888324
  11028 read(3, "A2\0\0\0aeabi\0\1(\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 51) = 51
  11028 fstat64(3, {st_mode=S_IFREG|0755, st_size=897088, ...}) = 0
  11028 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f72000
  11028 mmap2(NULL, 963928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6e3e000
  11028 mprotect(0xb6f14000, 65536, PROT_NONE) = 0
  11028 mmap2(0xb6f24000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd6000) = 0xb6f24000
  11028 mmap2(0xb6f27000, 9560, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6f27000
  11028 close(3)                          = 0
  11028 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f71000
  11028 set_tls(0xb6f714c0, 0xb6f71b98, 0xb6f7c050, 0xb6f714c0, 0xb6f7c050) = 0
  11028 mprotect(0xb6f24000, 8192, PROT_READ) = 0
  11028 mprotect(0xb6f51000, 8192, PROT_READ) = 0
  11028 mprotect(0x21000, 4096, PROT_READ) = 0
  11028 mprotect(0xb6f7b000, 4096, PROT_READ) = 0
  11028 munmap(0xb6f73000, 21672)         = 0
  11028 ioctl(1, TCGETS, 0xbedb2554)      = -1 EINVAL (Invalid argument)
  11028 brk(NULL)                         = 0x1d23000
  11028 brk(0x1d44000)                    = 0x1d44000
  11028 stat64("/root/.terminfo", 0x1d23160) = -1 ENOENT (No such file or directory)
  11028 stat64("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
  11028 stat64("/lib/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
  11028 stat64("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
  11028 gettimeofday({1491321517, 321307}, NULL) = 0
  11028 access("/etc/terminfo/x/xterm", R_OK) = -1 ENOENT (No such file or directory)
  11028 access("/lib/terminfo/x/xterm", R_OK) = 0
  11028 open("/lib/terminfo/x/xterm", O_RDONLY|O_LARGEFILE) = 3
  11028 fstat64(3, {st_mode=S_IFREG|0644, st_size=3361, ...}) = 0
  11028 read(3, "\32\1)\0&amp;\0\17\0\235\1u\5xterm|xterm-debian|X"..., 4096) = 3361
  11028 read(3, "", 4096)                 = 0
  11028 close(3)                          = 0
  11028 gettimeofday({1491321517, 324975}, NULL) = 0
  11028 ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
  11028 ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
  11028 ioctl(2, TIOCGWINSZ, {ws_row=54, ws_col=189, ws_xpixel=0, ws_ypixel=0}) = 0
  11028 fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
  11028 write(1, "\33[39;49m", 8)         = 8
  10941 &lt;... read resumed&gt; "\33[39;49m", 128) = 8
  11028 exit_group(0)                     = ?
  10941 read(3,  &lt;unfinished ...&gt;
  11028 +++ exited with 0 +++
  10941 &lt;... read resumed&gt; "", 128)       = 0
  10941 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11028, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
  10941 sigreturn({mask=[]})              = 0
  10941 close(3)                          = 0
  10941 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], 0, NULL) = 11028
  10941 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb6fae418) = 11029
  11029 close(12 &lt;unfinished ...&gt;
  10941 wait4(-1,  &lt;unfinished ...&gt;
  11029 &lt;... close resumed&gt; )             = 0
  11029 close(11)                         = 0
  11029 close(10)                         = 0
  11029 execve("/bin/echo", ["/bin/echo", "-e", " \33[31mfailed!\33[39;49m"], [/* 19 vars */]) = 0
  11029 brk(NULL)                         = 0x318000
  11029 uname({sysname="Linux", nodename="bpi-iot-ros", ...}) = 0
  11029 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
  11029 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f2e000
  11029 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
  11029 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
  11029 fstat64(3, {st_mode=S_IFREG|0644, st_size=21672, ...}) = 0
  11029 mmap2(NULL, 21672, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6f28000
  11029 close(3)                          = 0
  11029 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
  11029 open("/lib/arm-linux-gnueabihf/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
  11029 read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\331i\1\0004\0\0\0"..., 512) = 512
  11029 lseek(3, 894128, SEEK_SET)        = 894128
  11029 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2960) = 2960
  11029 lseek(3, 888324, SEEK_SET)        = 888324
  11029 read(3, "A2\0\0\0aeabi\0\1(\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 51) = 51
  11029 fstat64(3, {st_mode=S_IFREG|0755, st_size=897088, ...}) = 0
  11029 mmap2(NULL, 963928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6e1d000
  11029 mprotect(0xb6ef3000, 65536, PROT_NONE) = 0
  11029 mmap2(0xb6f03000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd6000) = 0xb6f03000
  11029 mmap2(0xb6f06000, 9560, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6f06000
  11029 close(3)                          = 0
  11029 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f27000
  11029 set_tls(0xb6f27870, 0xb6f27f48, 0xb6f31050, 0xb6f27870, 0xb6f31050) = 0
  11029 mprotect(0xb6f03000, 8192, PROT_READ) = 0
  11029 mprotect(0x24000, 4096, PROT_READ) = 0
  11029 mprotect(0xb6f30000, 4096, PROT_READ) = 0
  11029 munmap(0xb6f28000, 21672)         = 0
  11029 brk(NULL)                         = 0x318000
  11029 brk(0x339000)                     = 0x339000
  11029 fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
  11029 write(1, " \33[31mfailed!\33[39;49m\n", 22) = 22
  11029 close(1)                          = 0
  11029 close(2)                          = 0
  11029 exit_group(0)                     = ?
  11029 +++ exited with 0 +++
  10941 &lt;... wait4 resumed&gt; [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], 0, NULL) = 11029
  10941 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11029, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
  10941 sigreturn({mask=[]})              = 11029
  10941 close(12)                         = 0
  10941 close(11)                         = 0
  10941 exit_group(1)                     = ?
  10941 +++ exited with 1 +++
  </code></pre>