{"record":{"id":"0522a3c8189d6f25","repo":"hashicorp/vagrant","slug":"vagrant-can-t-use-the-requested-machine-because-it","errorCode":null,"errorMessage":"Vagrant can't use the requested machine because it is locked! This\nmeans that another Vagrant process is currently reading or modifying\nthe machine. Please wait for that Vagrant process to end and try\nagain. Details about the machine are shown below:\n\nName: %{name}\nProvider: %{provider}","messagePattern":"Vagrant can't use the requested machine because it is locked! This\nmeans that another Vagrant process is currently reading or modifying\nthe machine\\. Please wait for that Vagrant process to end and try\nagain\\. Details about the machine are shown below:\n\nName: %(.+?)\nProvider: %(.+?)","errorType":"exception","errorClass":"Vagrant::Errors::MachineLocked","httpStatus":null,"severity":"error","filePath":"lib/vagrant/machine_index.rb","lineNumber":138,"sourceCode":"    # @return [MachineIndex::Entry]\n    def get(uuid)\n      entry = nil\n\n      @lock.synchronize do\n        with_index_lock do\n          # Reload the data\n          unlocked_reload\n\n          data = find_by_prefix(uuid)\n          return nil if !data\n          uuid = data[\"id\"]\n\n          entry = Entry.new(uuid, data)\n\n          # Lock this machine\n          lock_file = lock_machine(uuid)\n          if !lock_file\n            raise Errors::MachineLocked,\n              name: entry.name,\n              provider: entry.provider\n          end\n\n          @machine_locks[uuid] = lock_file\n        end\n      end\n\n      entry\n    end\n\n    # Tests if the index has the given UUID.\n    #\n    # @param [String] uuid\n    # @return [Boolean]\n    def include?(uuid)\n      @lock.synchronize do\n        with_index_lock do","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/lib/vagrant/machine_index.rb#L120-L156","documentation":"Error \"Vagrant can't use the requested machine because it is locked! This\nmeans that another Vagrant process is currently reading or modifying\nthe machine. Please wait for that Vagrant process to end and try\nagain. Details about the machine are shown below:\n\nName: %{name}\nProvider: %{provider}\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at lib/vagrant/machine_index.rb:138 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}