Linuxが起動中に停止する:起動タスクが実行中です。

Linuxが起動中に停止する:起動タスクが実行中です。

再起動後に起動時にハングするNixOSサーバーがあります。次のメッセージが表示されます。A start job is running for Waiting for NixOps keys (1d 3h / no limit)

システムが待っているタスクはsystemdサービスです。私が調査した結果、この問題が発生すると、通常はタイムアウトが発生し、しばらくしてシステムが起動することがわかりました。ところで、私の場合は一日以上停止しました。この状態を迂回する方法についてのアイデアはありますか?

ベストアンサー1

NixOpsマニュアルによると...

デプロイキーのキーは/run/の下の一時ファイルシステムに保存され、再起動後も保持されません。誘引再起動後にのみ。

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

おすすめ記事