dnsmasq failed to create listening socket. Address already in use.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
In a fresh installation of xenial with maas, juju and lxd, I'm trying to bootstrap juju on a lxd container. However, it returns the following error:
juju bootstrap lxd-controller lxd
ERROR cannot find network interface "lxdbr0": route ip+net: no such network interface
ERROR invalid config: route ip+net: no such network interface
lxdbr0 doesn't exists.
systemctl status lxd
● lxd.service - LXD - main daemon
Loaded: loaded (/lib/systemd/
Active: active (running) since Thu 2016-08-04 14:05:19 BST; 12min ago
Docs: man:lxd(1)
Process: 19477 ExecStartPost=
Process: 19447 ExecStartPost=
Process: 19434 ExecStartPre=
Main PID: 19446 (lxd)
Tasks: 8
Memory: 6.6M
CPU: 198ms
CGroup: /system.
└─19446 /usr/bin/lxd --group lxd --logfile=
Aug 04 14:05:19 xenial-maas systemd[1]: Starting LXD - main daemon...
Aug 04 14:05:19 xenial-maas lxd[19446]: t=2016-
Aug 04 14:05:19 xenial-maas systemd[1]: Started LXD - main daemon.
From journalctl I extract the following:
-- Unit lxd-bridge.service has begun starting up.
Aug 04 14:05:18 xenial-maas named[2382]: listening on IPv4 interface lxdbr0, 10.76.187.1#53
Aug 04 14:05:18 xenial-maas systemd-
Aug 04 14:05:18 xenial-maas lxd-bridge.
Aug 04 14:05:18 xenial-maas dnsmasq[19391]: failed to create listening socket for 10.76.187.1: Address already in use
Aug 04 14:05:18 xenial-maas dnsmasq[19391]: FAILED to start up
Aug 04 14:05:18 xenial-maas lxd-bridge.
Aug 04 14:05:18 xenial-maas named[2382]: no longer listening on 10.76.187.1#53
Aug 04 14:05:19 xenial-maas systemd[1]: Started LXD - network bridge.
-- Subject: Unit lxd-bridge.service has finished start-up
sudo lsof -i | grep 10.76.187.1 provides empty input. dpkg-reconfigure -p medium lxd has been followed in dumb mode, all to yes, and accepting default suggestions for ipv4 and ipv6 ranges.
Version of lxd package is 2.0.3-0ubuntu1~
Thanks!
José.
Changed in lxd (Ubuntu): | |
status: | New → Invalid |
This typically happens when you already have a DNS server running on your machine.
Do you have bind9 (named) installed by any chance?
If so, either remove it (if you don't use it) or configure it to only bind to the IP addresses that you want it to respond on, otherwise its default configuration conflicts with dnsmasq's DNS server running on lxdbr0 leading to the error you received.