Tuesday, 1 October 2013

Rails app on percise32 vagrant box - assets get "text file busy" error (Errno::ETXTBSY)

Rails app on percise32 vagrant box - assets get "text file busy" error
(Errno::ETXTBSY)

Trying to boot up a Rails app inside a Vagrant box (percise32) host
machine is Windows 7. This is my Vagrantfile
Vagrant.configure('2') do |config|
config.vm.box = 'precise32'
config.vm.box_url = 'http://files.vagrantup.com/precise32.box'
config.vm.hostname = 'rails-dev-box'
config.vm.synched_folder "c:\rails_text", "/home/code"
config.vm.network :forwarded_port, guest: 3000, host: 3003
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.module_path = 'puppet/modules'
end
end
When i try to run the app (code is syncing correctly) i am getting the
following error on the Rails server output:
Errno::ETXTBSY in Welcome#index
Showing /home/code/app/views/layouts/application.html.erb where line #4
raised:
Text file busy -
(/home/code/tmp/cache/sass/a0a09a036cf07b1cae262d60fa989a8e24765858/welcome.css.scssc20131001-1595-f6clpt,
/home/code/cache/sass/a0a09a036cf07b1cae262d60fa989a8e24765858/welcome.css.scssc)
(in /home/code/app/assets/stylesheets/welcome.css.scss)
Some articles suggested that moving my synced folder outside of the
/vagrant root is the cure, but it seems that it is not the issue in my
case since i am using /home/code
ideas welcome.

No comments:

Post a Comment