我有一台安装了 AlmaLinux9 的服务器,它运行良好,我经常重启服务器,但什么也没发生。但最近我重启了服务器,现在它不再有互联网连接。在我看到的日志中,NetworkManager 无法启动。我设法手动将 IP 地址添加到网络接口以通过 SSH 而不是通过 VNC 工作。
我还注意到启动和关机需要更长时间。停留一分钟在:
[3....] ACPI: bus type drm_connector registered
--- 1 minute between
[99...] Warning: Deprecated Driver is detected: ip6tables will not be maintained in a future major release and may be disabled
在“一次重启”之前,我没有修改过服务器上的任何特殊内容。所以我不知道到底是什么导致了这个问题。我尝试恢复备份,但没用。
/var/log/messages 的输出看起来很有趣:
Starting D-Bus System Message Bus...
Nov 2 13:22:59 host systemd[1]: systemd-logind.service: Failed with result 'timeout'.
Nov 2 13:22:59 host systemd[1]: Failed to start User Login Management.
Nov 2 13:22:59 host systemd[1]: systemd-logind.service: Scheduled restart job, restart counter is at 2.
Nov 2 13:22:59 host systemd[1]: Stopped User Login Management.
Nov 2 13:22:59 host systemd[1]: Starting Load Kernel Module drm...
Nov 2 13:22:59 host systemd[1]: [email protected]: Deactivated successfully.
Nov 2 13:22:59 host systemd[1]: Finished Load Kernel Module drm.
Nov 2 13:22:59 host systemd[1]: Starting User Login Management...
Nov 2 13:22:59 host systemd[1]: Started D-Bus System Message Bus.
Nov 2 13:22:59 host dbus-broker-launch[3185]: ERROR listener_dispatch @ ../src/bus/listener.c +42: Bad file descriptor
Nov 2 13:22:59 host dbus-broker-launch[3185]: dispatch_context_dispatch @ ../src/util/dispatch.c +344
Nov 2 13:22:59 host dbus-broker-launch[3185]: broker_run @ ../src/broker/broker.c +225
Nov 2 13:22:59 host dbus-broker-launch[3185]: run @ ../src/broker/main.c +261
Nov 2 13:22:59 host dbus-broker-launch[3185]: main @ ../src/broker/main.c +295
Nov 2 13:22:59 host journal[3163]: Ready
Nov 2 13:22:59 host dbus-broker-launch[3163]: ERROR launcher_run @ ../src/launch/launcher.c +1445: Return code 1
Nov 2 13:22:59 host dbus-broker-launch[3163]: run @ ../src/launch/main.c +152
Nov 2 13:22:59 host dbus-broker[3185]: Dispatched 1 messages @ 2(±0)μs / message.
Nov 2 13:22:59 host systemd[1]: upower.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 2 13:22:59 host systemd[1]: rtkit-daemon.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 2 13:22:59 host systemd[1]: tuned.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 2 13:22:59 host systemd[1]: polkit.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 2 13:22:59 host systemd[1]: systemd-logind.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 2 13:22:59 host systemd[1]: NetworkManager.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 2 13:22:59 host dbus-broker-launch[3163]: Caught SIGCHLD of broker.
此外,似乎在启动时首次激活 NetworkManager 时会发生错误:
[root@host system-connections]# systemd-analyze
Bootup is not yet finished (org.freedesktop.systemd1.Manager.FinishTimestampMonotonic=0).
Please try again later.
Hint: Use 'systemctl list-jobs' to see active jobs
systemctl list-jobs 显示以下内容:
[root@host system-connections]# systemctl list-jobs
JOB UNIT TYPE STATE
144 multi-user.target start waiting
254 cloud-init.target start waiting
18323 NetworkManager.service start running
289 systemd-update-utmp-runlevel.service start waiting
18413 systemd-logind.service start running
我尝试禁用 IPv6,重新安装 dbus 和 NetworkManager,dnf 更新和升级,但似乎没有任何作用,并尝试在谷歌上搜索这个问题,但似乎没有人遇到同样的问题。
希望有人能帮助我。我会非常高兴。