3일 후에 서버 연결이 끊김

3일 후에 서버 연결이 끊김

3일 후에 연결이 끊어지는 Ubuntu 20.04 서버에 문제가 있습니다. 서버는 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 주소에 대한 연결을 차단하는 네트워크의 일부 구성 요소와 관련이 있는지는 확실하지 않습니다.

관련 정보