lxd init:バインディング:アドレスはすでに使用中です。

lxd init:バインディング:アドレスはすでに使用中です。

lxd initにバインディングの問題があります。ポート8443は他のアプリケーションでは使用されていないため、lxd initがこのポートを2回バインドしようとしているようです。

私の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)

ベストアンサー1

lxd バージョンを 3.19 以降にアップデートする必要がある可能性が高いです。バグや問題を検索すると、次のスレッドにリンクされます。

github.com/lxc/lxd/issues/6682

netstatこれは、8443を受信するプロセスがないことを示しています。これは可能な船形の構成のように聞こえます。以前のバージョンのlxdで見つかったバグのように見えます。

おすすめ記事