Comment 19 for bug 1787729

Revision history for this message
Chris Rainey (ckrzen) wrote : Re: [FAILED] Failed to start Process error reports when automatic reporting is enabled.

I just figured-out how to get "apport-autoreport.service", "whoopsie.service" & "systemd-networkd-wait-online.service" starting correctly on a networkd(netplan)-only(NetworkManager.service _disabled_ system) desktop which uses WiFi and a static-ip on Ubuntu 18.10 Desktop.

I'm commenting here in case it provides insight or another angle to approach the resolution of this bug.

BTW: the test system _was_ experiencing this bug on a clean-install of 18.10 Desktop ISO.

TL;DR

Adding a new variable(optional: yes) in the netplan yaml config for a static IP addy allows the "systemd-networkd-wait-online.service" to _ignore_ interfaces that may be blocking or inhibiting the proper startup of the apport-auto/whoopsie units.

Steps to reproduce:

1. Disable all NetworkManager related services:

$ systemctl list-unit-files | grep Net
NetworkManager-dispatcher.service disabled
NetworkManager-wait-online.service disabled
NetworkManager.service disabled

2. Create new yaml config for static IP's on all IF's(notice the 'optional: yes' directives!):

$ cat /etc/netplan/01-static-ip.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    enp2s0:
      optional: yes
      dhcp4: no
      dhcp6: no
      addresses: [192.168.1.201/24]
      gateway4: 192.168.1.254
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
  wifis:
    wlp3s0:
      optional: yes
      dhcp4: no
      dhcp6: no
      addresses: [192.168.1.202/24]
      gateway4: 192.168.1.254
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
      access-points:
        "Chez Merkle-Mac-Rainey 5 GHz":
          password: "BIG SECRET"

3. Reboot and confirm proper startup of all service units:

$ systemctl --failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

$ systemctl status
● CKR-1
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Thu 2018-12-06 15:02:16 CST; 22min ago

HTH!