Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synced_folder gives Text file busy error #2282

Closed
MarvinT opened this issue Sep 26, 2013 · 4 comments
Closed

synced_folder gives Text file busy error #2282

MarvinT opened this issue Sep 26, 2013 · 4 comments

Comments

@MarvinT
Copy link

MarvinT commented Sep 26, 2013

using the code

import tempfile

p = '/home/vagrant'

t = tempfile.TemporaryFile(dir=p)
t.write('1')
t.close()

when /home/vagrant is a synced _folder gives the error

OSError: [Errno 26] Text file busy: '/home/vagrant/tmpRvC0sG'

but not when p is a non synced_folder

@silentvick
Copy link

I have the same problem.

My configuration:

  • VirtualBox 4.2.18
  • Vagrant 1.3.3
  • Windows 7 x64 (Host)
  • Ubuntu 12.04LTS (Guest)
  • synced '/var/www' folder

I'm trying to create a site with LocomotiveCMS. But I get this error:

Error compiling CSS asset

Errno::ETXTBSY: Text file busy - (/var/www/mysite/.sass-cache/e16ce9ba5c7435e82511b101355b9be5e284f769/application.css.scssc20130929-25993-1jygw2w, ./.sass-cache/e16ce9ba5c7435e82511b101355b9be5e284f769/application.css.scssc)   
(in /var/www/mysite/public/stylesheets/application.css.scss)

/var/www/mysite/vendor/bundle/ruby/1.9.1/gems/sass-3.2.11/lib/sass/util.rb:885:in `rename\'

@mitchellh
Copy link
Contributor

Shared folders are missing some critical features that make some low level things lke renames and linking work properly. This usually happens when the host is Windows because Windows is very aggressive about file usage.

What this basically means is that that file handle is being held by some process on the Windows host.

This isn't a Vagrant issue because Vagrant can't do much about it. VirtualBox MIGHT be able to but I'm not sure, but that is closer to the issue source anyways.

@factormystic
Copy link

Future googlers: it's probably something with the sass gem post 3.2.10 https://github.com/nex3/sass (via Rails app on percise32 vagrant box - assets get “text file busy” error (Errno::ETXTBSY))

@Gisleburt
Copy link

factormystic is correct, downgrading to 3.2.9 fixes this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants