Debian Systemd는 어떤 서비스도 시작하지 않습니다.

Debian Systemd는 어떤 서비스도 시작하지 않습니다.

방법과 이유는 모르겠지만 내 데비안 시스템이 모든 서비스, 특히 sshd 서비스 시작을 중단했기 때문에 내 컴퓨터에 액세스할 수 없습니다. 디스플레이가 없는 헤드리스 기계여서 연결할 수 없습니다.

Puppy를 사용하여 USB에서 부팅하고 데비안 파티션을 chroot할 때 Journalclt를 사용하여 로그를 읽을 수 있기 때문에 systemd가 작동하고 있다는 것을 알고 있습니다. 모든 것이 잘 작동하는 것 같지만 시스템이 감시 이벤트를 수신하면서 갑자기 멈춥니다.무기한.

출력의 꼬리를 붙여넣습니다.

[...]
mar 06 19:36:26 DEBIAN-LXDE systemd[1]: [email protected]: Child 560 belongs to [email protected]
mar 06 19:36:26 DEBIAN-LXDE systemd[1]: [email protected]: Main process exited, code=exited, status=0/SUCCESS
mar 06 19:36:26 DEBIAN-LXDE systemd[1]: [email protected]: Failed to destroy cgroup /system.slice/[email protected], ignoring: Device or resource busy
mar 06 19:36:26 DEBIAN-LXDE systemd[1]: [email protected]: Changed running -> exited
mar 06 19:36:32 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:36:44 DEBIAN-LXDE ntpdate[729]: step time server 158.227.98.15 offset 9.571738 sec
mar 06 19:36:44 DEBIAN-LXDE systemd[1]: Time has been changed
mar 06 19:36:44 DEBIAN-LXDE systemd[1]: Set up TFD_TIMER_CANCEL_ON_SET timerfd.
mar 06 19:36:44 DEBIAN-LXDE systemd[1]: Received SIGCHLD from PID 722 (ntpdate).
mar 06 19:36:44 DEBIAN-LXDE systemd[1]: Child 722 (ntpdate) died (code=exited, status=0/SUCCESS)
mar 06 19:36:44 DEBIAN-LXDE systemd[1]: [email protected]: Child 722 belongs to [email protected]
mar 06 19:36:44 DEBIAN-LXDE systemd[1]: [email protected]: cgroup is empty
mar 06 19:36:44 DEBIAN-LXDE systemd[1]: systemd-journald.service: Received EPOLLHUP on stored fd 19 (stored), closing.
mar 06 19:36:44 DEBIAN-LXDE systemd[1]: Got cgroup empty notification for: /system.slice/[email protected]
mar 06 19:36:44 DEBIAN-LXDE systemd[1]: [email protected]: cgroup is empty
mar 06 19:37:02 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:37:22 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:37:42 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:38:02 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:38:02 DEBIAN-LXDE systemd[1]: systemd-journald.service: Got notification message from PID 237 (WATCHDOG=1)
mar 06 19:38:22 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:38:42 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:39:02 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:39:22 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:39:42 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:39:42 DEBIAN-LXDE systemd[1]: systemd-journald.service: Got notification message from PID 237 (WATCHDOG=1)
mar 06 19:40:02 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:40:22 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:40:42 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:41:02 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:41:02 DEBIAN-LXDE systemd[1]: systemd-journald.service: Got notification message from PID 237 (WATCHDOG=1)
mar 06 19:41:22 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:41:42 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:42:02 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:42:22 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
mar 06 19:42:42 DEBIAN-LXDE systemd[1]: systemd-udevd.service: Got notification message from PID 293 (WATCHDOG=1)
[...]

그럼에도 불구하고 /var/log/의 로그는 며칠 전에 작성되었습니다. 일부 USB 드라이브가 연결되어 있기 때문에 문제가 발생할 수 있다고 생각했지만 모든 USB 드라이브를 분리해 보았지만 결과는 동일했습니다. 나는 온라인에서 많은 것을 읽었지만 비슷한 것을 찾을 수 없었습니다. 특정 서비스만 보장됩니다.

수표 서비스를 다음과 같이 작성해 보았습니다.

[Unit]
Description=Avisa cuando se arranca el sistema
Requires=network.target
After=network.target

[Service]
Type=simple
RemainAfterExit=no
ExecStart=/usr/bin/mail -s "AVISOOOO" [email protected]

[Install]
WantedBy=default.target

그러나 이메일은 전송되지 않았습니다.

문제를 어떻게 알 수 있나요?

업데이트: 마침내 모든 USB 장치에 대한 시스템 플러그인을 다시 활성화하는 데 성공했습니다. 그럽 재설치, 기본 파티션 확인 등 여러 가지를 시도했기 때문이라고 생각합니다. 시간을 내어 도와주신 모든 분들께 감사드립니다. 감사해요.

답변1

내 데비안 시스템이 서비스 시작을 중지합니다.

가지다아니요제공된 로그는 이것이 사실임을 나타냅니다.

시스템이 갑자기 감시 이벤트를 무기한 수신하는 상태가 됩니다.

이러한 이벤트는 정상적인 알림으로, 중단된 것이 아니라 시스템에 문제가 있음을 나타냅니다.아니요갇힌. 이는 시스템의 한 부분이 시스템의 다른 부분에 20초마다 정체되지 않았음을 알리는 상황입니다.

문제를 어떻게 알 수 있나요?

정확한 진단을 받아보세요.

SSH 서비스에 문제가 있는 경우 로그를 확인하세요.SSH 서비스. 서비스 시작 실패 로그가 없는 경우 시스템이 서비스를 시작하지 않는다고 성급하게 결론을 내리지 마십시오. 실제로 로그인할 수 없는 이유를 확인하지 않고 systemd에 문제가 있다고 성급하게 결론을 내리지 마십시오. 시간 초과, 연결 거부 및 인증 거부는 모두 매우 다른 근본 원인을 가질 수 있으며, 그 중 일부는 컴퓨터에 전혀 영향을 미치지 않을 수도 있습니다.

모든 단계를 기록하면서 체계적이고 체계적으로 수행하십시오.

이메일이 전송되지 않았습니다.

하나의 문제를 두 가지 문제로 확대했습니다. 이제 메일 시스템 오류의 원인을 확인하는 추가 작업이 있습니다.그 다음에다른 구성 요소가 어떻게 실패했는지 확인합니다. 이것은 최선의 접근 방식이 아닙니다. 로그는 당신의 친구입니다.

답변2

마침내 모든 USB 장치를 연결한 상태에서 시스템을 다시 부팅할 수 있었습니다. 그럽 재설치, 기본 파티션 확인 등 여러 가지를 시도했기 때문이라고 생각합니다. 시간을 내어 도와주신 모든 분들께 감사드립니다. 감사해요.

관련 정보