Ubuntu 20.04 サーバーで問題が発生しています。3 日後に接続が失われます。サーバーは Dracut を使用して起動します。起動して DHCP サーバーから IP アドレスを取得した後、NetworkManager を停止します。NetworkManager が原因の可能性があると指摘されたため、この操作を実行しました。
起動後に取得した IP アドレスをサーバーが保持するようにしたいと思います。
root@host:/var/log# systemctl list-units --all '*etwork*'
UNIT LOAD ACTIVE SUB DESCRIPTION
networkd-dispatcher.service loaded active running Dispatcher daemon for systemd-networkd
NetworkManager-wait-online.service loaded inactive dead Network Manager Wait Online
NetworkManager.service loaded inactive dead Network Manager
systemd-networkd.service loaded inactive dead Network Service
network-online.target loaded active active Network is Online
network-pre.target loaded inactive dead Network (Pre)
network.target loaded active active Network
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
7 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
ログを見ると、マシンが突然別のマシンの influxdb に接続できなくなり、その後は ssh もできなくなったことがわかります。Journalctl ログ:
Aug 14 11:19:01 myhost pulseaudio[67379]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
...
Aug 14 11:58:05 myhost telegraf[3018]: 2020-08-14T09:58:05Z E! [outputs.influxdb] When writing to [http://someip]: Post http://someip/write?consistency=any&db=telegraf: net/http: request canceled (Client.Timeout exceeded while awai>
Aug 14 11:58:05 myhost telegraf[3018]: 2020-08-14T09:58:05Z E! [agent] Error writing to outputs.influxdb: could not write any address
ログで確認できる他の関連事項は次の通りです。
Aug 14 10:34:08 myhost systemd-timesyncd[2889]: Timed out waiting for reply from 91.189.91.157:123 (ntp.ubuntu.com).
しかし、これは繰り返し発生する現象であり、この問題に関連しているのか、それともネットワークの一部のコンポーネントがその IP アドレスへの接続をブロックしているだけなのかはわかりません。