[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

Launchpad Bug Tracker 1575572 at bugs.launchpad.net
Fri May 6 13:25:22 UTC 2016

This bug was fixed in the package init-system-helpers - 1.32ubuntu1

init-system-helpers (1.32ubuntu1) yakkety; urgency=medium

  * Merge from Debian unstable.  Remaining changes:
    - init: Drop sysvinit-core as alternative pre-depends, and add
      upstart-sysv instead.

init-system-helpers (1.32) unstable; urgency=medium

  * dh_systemd_{enable,start}: Quiesce "No such file or directory" error
    messages when calling on a package without /lib/systemd/system/.
    (Closes: #822710)
  * invoke-rc.d: Fix check for failing "runlevel" command.
  * invoke-rc.d: Under systemd, "runlevel" only switches to 3 or 5 when
    multi-user.target/graphical.target have been reached, not before.
    Adjust the runlevel check accordingly. This is only relevant for the check
    for wrong/dangling rcN.d/ symlinks, so just pin it to "5" (the precise
    value does not matter much). Fixing this in systemd requires bigger
    architectural changes, so use this tiny (and backportable) bandaid for the
    time being. (LP: #1575572, see #608456)

 -- Martin Pitt <martin.pitt at ubuntu.com>  Thu, 05 May 2016 22:35:39

** Changed in: init-system-helpers (Ubuntu)
       Status: Fix Committed => Fix Released

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.

  apache2 fails to start if installed via cloud config (on Xenial)

Status in init-system-helpers package in Ubuntu:
  Fix Released
Status in systemd package in Ubuntu:
Status in init-system-helpers source package in Xenial:
Status in systemd source package in Xenial:
  Won't Fix
Status in systemd package in Debian:

Bug description:
  Using the following cloud config, apache2 will fail to start on
  installation on Xenial:

  - apache2

  See for example:

  $ gcloud compute instances create xenial-$(date +%y%m%d-%H%M) --image ubuntu-1604-xenial-v20160420c --image-project ubuntu-os-cloud --metadata-from-file user-data=cloud-config
  xenial-160427-1050  europe-west1-d  n1-standard-1       RUNNING

  $ ssh ubuntu at 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
     Active: inactive (dead)
       Docs: man:systemd-sysv-generator(8)

  Related Bugs:
   * bug 1576692: [cloud-init] fully support package installation in systemd

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list