Finally, I was able to solve this problem using this approach proposed in one of the GitHub tickets.
This mainly refers to pointing Rails and Carrierwave to a directory outside the / vagrant folder to dump tmp files in order to avoid locking / resolution problems:
# config/initializers/01_patch_tmpdir.rb class Dir def self.tmpdir '/home/vagrant/rails_tmp/' end end CarrierWave.configure do |config| config.cache_dir = '/home/vagrant/uploads_tmp/tmp/uploads' config.root = '/home/vagrant/uploads_tmp/tmp' end ENV['TMPDIR'] = Dir.tmpdir
Now you can add this file to your .gitignore so that it does not interfere with other people working on your project.
jesal source share