Lxc
lxd init: bind: 地址已經在使用中
我對 lxd init 的綁定問題有疑問。任何其他應用程序都沒有使用埠 8443,因此我認為 lxd init 嘗試綁定此埠兩次。
我的 lxd 版本是 3.14,我正在使用 Gentoo。
你知道如何解決這個問題嗎?
alpha /var/log # lxd init Would you like to use LXD clustering? (yes/no) [default=no]: yes What name should be used to identify this node in the cluster? [default=alpha]: alpha.stty.cz What IP address or DNS name should be used to reach this node? [default=171.25.220.247]: alpha.stty.cz Are you joining an existing cluster? (yes/no) [default=no]: Setup password authentication on the cluster? (yes/no) [default=yes]: Trust password for new clients: Again: Do you want to configure a new local storage pool? (yes/no) [default=yes]: Name of the storage backend to use (btrfs, dir, lvm) [default=btrfs]: Would you like to create a new btrfs subvolume under /var/lib/lxd? (yes/no) [default=yes]: Do you want to configure a new remote storage pool? (yes/no) [default=no]: Would you like to connect to a MAAS server? (yes/no) [default=no]: Would you like to configure LXD to use an existing bridge or host interface? (yes/no) [default=no]: yes Name of the existing bridge or host interface: ovs-br0 Would you like stale cached images to be updated automatically? (yes/no) [default=yes] Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]: Error: Failed to update server configuration: cannot listen on https socket: listen tcp 171.25.220.247:8443: bind: address already in use
的輸出
sudo netstat -pna | grep 8443
是unix 3 [ ] STREAM CONNECTED 28443 7135/konsole
該問題也發佈在 Github 上。(https://github.com/lxc/lxd/issues/7560)
您很可能需要將您的 lxd 版本更新到 3.19 或更高版本;搜尋錯誤和問題將我帶到了這個執行緒:
github.com/lxc/lxd/issues/6682
netstat
不會顯示任何在 8443 上偵聽的程序,聽起來好像沒有可能是梨形的配置。它看起來只是您在舊版本的 lxd 中發現的錯誤。