Linux가 시작 시 멈춤: 시작 작업이 실행 중입니다.

Linux가 시작 시 멈춤: 시작 작업이 실행 중입니다.

재부팅 후 시작 시 멈추는 NixOS 서버가 있습니다. 다음 메시지가 표시됩니다.A start job is running for Waiting for NixOps keys (1d 3h / no limit)

시스템이 기다리고 있는 작업은 systemd 서비스입니다. 제가 조사한 결과 이 ​​문제가 발생하면 일반적으로 시간 초과가 발생하고 잠시 후에 시스템이 부팅된다는 사실을 발견했습니다. 그런데 제 경우에는 하루 넘게 멈췄습니다. 이 상태를 우회하는 방법에 대한 아이디어가 있습니까?

답변1

NixOps 매뉴얼에 따르면...

배포.키의 키는 /run/ 아래의 임시 파일 시스템에 저장되며 재부팅 후에도 유지되지 않습니다... 모든 nixops 명령은 적절한 경우 암시적으로 키를 업로드하므로 수동 키 전송이 필요하지 않은 경우에만 업로드됩니다. 유인 재시작 후에만.

nixops send-keys명령을 시도해 보세요 .

nixops send-keys [ --include machine-name... ] [ --exclude machine-name... ]
Description

This command uploads the keys described in deployment.keys to remote machines in the /run/keys/ directory.

Keys are not persisted across reboots by default. If a machine reboot is triggered from outside nixops, it will need nixops send-keys to repopulate its keys.

Note that nixops deploy does an implicit send-keys where appropriate, so manually sending keys is only necessary after unattended reboots.
Options

--include machine-name...

    Only operate on the machines explicitly mentioned here, excluding other machines.
--exclude machine-name...

    Only operate on the machines that are not mentioned here.

바라보다https://nixos.org/nixops/manual/#idm140737318306400

관련 정보