sudo sqlite3 /var/snap/lxd/common/lxd/database/local.db "DELETE FROM config WHERE key='core.bgp_address';"
sudo sqlite3 /var/snap/lxd/common/lxd/database/local.db "DELETE FROM config WHERE key='core.bgp_routerid';"
Then restart the daemon.
Hope this helps anybody with similar issues. Donât know if this should be considered a bug.
maybe the previous post was not completely clear about the fact, that we removed the bgp configuration from the network but it was still in the database
i do not think this is expected behaviour
This solution helped me solve a similar problem with core.storage_buckets_address.
I was getting the same error and LXD wouldnât start.
I tried to see why with > journalctl -u snap.lxd.daemon -n 300
and noticed this in the output: Error: Bind network address: listen tcp 10.63.227.1:8555: bind: cannot assign requested address
A few days ago I was experimenting with LXD storage buckets (s3), and I had run lxc config set core.storage_buckets_address 10.63.227.1:8555
I fixed it as per above:
sudo sqlite3 /var/snap/lxd/common/lxd/database/local.db
sqlite> DELETE FROM config WHERE key='core.storage_buckets_address';
I am adding it here, because this was very useful to me. I was exasperated and even tried to remove the LXD snap so I could start from scratch, but (luckily) âsnap remove lxdâ would get stuck because of this problem, so I searched the net and found this solution.