diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 571ae75ab..455921485 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -484,7 +484,11 @@ module Vagrant if name != "dotlock" lock("dotlock", retry: true) do f.close - File.delete(lock_path) + begin + File.delete(lock_path) + rescue + @logger.debug("Failed to delete lock file #{lock_path} - some other thread might be trying to acquire it -> ignoring this error") + end end end