経緯
vagrant halt を行った際に以下のエラーが発生したため、その対処方法を備忘録として残しておく
手順
-
vagrant halt を行う
以下のエラーが発生
An action 'halt' was attempted on the machine 'default', but another process is already executing an action on the machine. ess at a time. Please wait until the other Vagrant process finishes modifying this machine, then try again. If you believe this message is in error, please check the process listing for any "ruby" or "vagrant" processes and kill them. Then try again. -
以下のコマンドを実行して
ruby.exeの pid を探すtasklist /fi "Imagename eq ruby.exe" -
以下のコマンドを実行して
ruby.exeを終了させる例 ruby.exe の pid が 7972 の場合
taskkill /F /pid 7972 -
再度 vagrant halt を実行する