[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
The solution proposed by Alecz20 (alexguzu) works for me :) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
I also see this issue after installing pihole which uses dnsmasq. As a solution until we have a fix available, would it not be better to run `sudo systemctl edit dnsmasq` and add the three lines: [Unit] After=network-online.target Wants=network-online.target rather than edit /lib/systemd/system/dnsmasq.service directly? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
** Changed in: dnsmasq (Ubuntu) Status: In Progress => Confirmed ** Changed in: hundredpapercuts Status: In Progress => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
** Changed in: dnsmasq (Debian) Status: Unknown => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
Submitted patch upstream, will revisit in a couple weeks before taking on an extra deviation in Ubuntu (since currently we do not have any delta). ** Changed in: hundredpapercuts Assignee: David Britton (davidpbritton) => (unassigned) ** Changed in: dnsmasq (Ubuntu) Assignee: David Britton (davidpbritton) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
** Also affects: dnsmasq (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774970 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
** Changed in: dnsmasq (Ubuntu) Status: Confirmed => In Progress ** Changed in: hundredpapercuts Status: Confirmed => In Progress ** Changed in: hundredpapercuts Assignee: (unassigned) => David Britton (davidpbritton) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774970 ** Changed in: dnsmasq (Ubuntu) Assignee: (unassigned) => David Britton (davidpbritton) ** Bug watch added: Debian Bug tracker #774970 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774970 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
> Rather surprised I need to add this report, and that this Bug report isn't a > higher Importance and not resolved in 3 months. Surely loads of users will have this issue? dnsmasq (as opposed to dnsmasq-base) is not in main in Ubuntu, so relies entirely on community support. It is not installed by default on Ubuntu, and is an "unusual end-user configuration" as far as I can tell. And a workaround appears available and is trivial. If somebody wants to drive getting a fix landed, please do. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
I have found I needed to add After=network-online.target to dnsmasq.service to ensure my ethernet port, ens18, is available, on boot. Using Ubuntu 16.04.2 In my case, I am using dnsmasq as per the PiHole installation where the IP is static and dhcpclient is turned off. But this is clearly not a PiHole problem as it just installs Dnsmasq. Rather surprised I need to add this report, and that this Bug report isn't a higher Importance and not resolved in 3 months. Surely loads of users will have this issue? Kind Regards -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
I have openvswitch-switch, which did required from me to apply some changes to systemd service file that seems not to be aware of virtual devices up. So, bottom line, /etc/network/interface files are taking action in a way that smashes the rush to boot up, so dnsmasq also become a victim, and for me the solution above was not compatible. So I had to add to dnsmasq.service the follow lines: Requires=sys-subsystem-net-devices-.device After=sys-subsystem-net-devices-.device Wants=sys-subsystem-net-devices-.device Got the above info from systemctl --full | grep subsystem Best regards! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
04:47 stgraber: do you have an opinion on the proposed fix for bug 1531184 please? 04:49 rbasak: it's probably fine. Note that anyone who actually has the dnsmasq package installed on their system is likely to run into other problems, so not a big priority for us. 04:49 rbasak: (dnsmasq-base is what we care about in the distro and that doesn't ship the init script) ** Changed in: dnsmasq (Ubuntu) Importance: High => Low ** Tags added: bitesize -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
yeah, Immatix! Thanks so much added After=network-online.target Wants=network-online.target to the [Unit] section of /lib/systemd/system/dnsmasq.service waiting for the fixed to be release -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
** Changed in: dnsmasq (Ubuntu) Importance: Undecided => High ** Also affects: hundredpapercuts Importance: Undecided Status: New ** Changed in: hundredpapercuts Status: New => Confirmed ** Changed in: hundredpapercuts Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
I believe I was having the same problem, I use the --bind-interfaces option as well as a few --interface options for different interfaces, and dnsmasq would regularly fail to start during boot because one of the interfaces wasn't present yet. Logs show dnsmasq was being started before network.target was reached. Apr 30 22:23:19 sirius systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server... Apr 30 22:23:20 sirius dnsmasq[1152]: dnsmasq: syntax check OK. Apr 30 22:23:20 sirius dnsmasq[1296]: dnsmasq: unknown interface trunk.3 Apr 30 22:23:20 sirius systemd[1]: dnsmasq.service: Control process exited, code=exited status=2 Apr 30 22:23:20 sirius systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server. Apr 30 22:23:20 sirius systemd[1]: dnsmasq.service: Unit entered failed state. Apr 30 22:23:20 sirius systemd[1]: dnsmasq.service: Failed with result 'exit-code'. --- Apr 30 22:23:27 sirius systemd[1]: Reached target Network. I've since added After=network-online.target Wants=network-online.target to the [Unit] section of /lib/systemd/system/dnsmasq.service and restarted once and the problem didn't occur, but this hasn't been extensively tested. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: dnsmasq (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1531184] Re: dnsmasq doesn't start on boot because its interface isn't up yet
Adding the following to the [Unit] section of dnsmasq.service fixes the problem: After=network-online.target Wants=network-online.target -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1531184 Title: dnsmasq doesn't start on boot because its interface isn't up yet To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1531184/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs