トラブルシューティング > トラブルシューティング > Microsoft Azure上の詳細クラスタのトラブルシューティング
  

Microsoft Azure上の詳細クラスタのトラブルシューティング

Secure Agentマシンを再起動したら、詳細クラスタのステータスがエラーになりました。
Secure AgentマシンおよびSecure Agentが稼働していることを確認します。次に、Monitorで詳細クラスタを停止します。Azure環境では、クラスタの停止に10分かかる場合があります。クラスタが停止したら、ジョブを実行してクラスタを再起動できます。
詳細クラスタの一部のノードで、次の標準エラーが発生してinitスクリプトが失敗しました。
Created symlink from /etc/systemd/system/apt-daily.service to /dev/null.
Created symlink from /etc/systemd/system/apt-daily-upgrade.service to /dev/null.
Removed symlink /etc/systemd/system/timers.target.wants/apt-daily.timer.
Removed symlink /etc/systemd/system/timers.target.wants/apt-daily-upgrade.timer.
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
ノードがinitスクリプトと同時に内部プロセスを実行していたため、initスクリプトが失敗しました。エラーが引き続き表示される場合は、initスクリプトに必要な期間だけスリープコマンドを配置して、内部プロセスが完了するまで待ちます。
例えば、次のようにスリープコマンドを使用できます。
#!/bin/sh

while(sudo lsof /var/lib/dpkg/lock-frontend)
do
echo "Sleeping 10s"
sleep 10
done


sudo apt-get -y update
sudo apt-get install -y expect