-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
OSError: [Errno 30] Read-only file system #209
Comments
I'm afraid there's not much I can do here, as I'm not able to reproduce the failure. I don't know why you'd get a read-only filesystem error unless the filesystem you're trying to create the virtualenv on is in fact read-only. This code has changed in the development version of virtualenv, so you could try with virtualenv==dev and see if that helps. |
I'm also having this problem on Ubuntu 11.04 on Virtualbox. @rlayte if you figured out how to solve this, I'd love to know how. |
I'm pretty sure this is a virtualbox issue now so should probably be raised with them if you want a real solution to it. I 'solved' it by moving the .virtualenvs directory into a non-shared folder as the problem only exists on folders shared with os x. I ultimately decided to move away from virtualbox due to this kind of instability. |
I ended up giving the shared folder group write permissions in OSX, then remounted it in Ubuntu, and it seemed to solve the problem. |
Yikes, ran into this issue just now, but I think it's a VirtualBox bug: https://www.virtualbox.org/ticket/10085#comment:12 Basically symlinks don't work in shared folders anymore for security reasons. |
This can be solved on virtualbox when the issues are created by shared folders by running:
This won't store your environment in your folder, but best practice is to use requirements.txt and tell your VCS to ignore your environment tree |
Update: Of course, a good night's sleep makes everything clearer. Installing python-dev as sudo changed permissions in some Python files that caused the virtualenv command to fail, but I can just run that as sudo and it works. I'm seeing this same error. If I create a fresh VM from the base lucid32 box and then execute the following commands:
Then the first virtualenv will be created successfully, but the second will fail with the above Does anyone know how I might fix/work around this? I'd strongly prefer to keep using shared folders, and this seems different than the issue with VirtualBox. Thanks, and let me know if I can provide any more information! |
|
I noticed this again when I tried to set up a fresh VM, and it seems that a change between virtualenv 1.8.2 and 1.8.3 caused that error to come back:
I can use 1.8.2 for now, but thought I'd mention here. Thanks! |
@lehrblogger Could you run |
@brentsmyth The relevant bit isn't there. Use a pastebin or a gist. |
much better idea... |
The problem lies in virtualbox though. You can find some work around options in these links... hashicorp/vagrant#713 |
@g2p !! Sorry it took me so long to get to this, I was travelling and must have missed the email. https://gist.github.com/4211296 I'm running Mac OS X 10.8.2 and just upgraded to the latest versions of VirtualBox (4.2.4) and Vagrant (1.0.5). I'm happy to provide more info if it'd be helpful, and I promise I'll respond more quickly :) |
(It's fine if I have to use one of the VirtualBox workarounds, but the weird thing is that it works with virtualenv 1.8.2 and not 1.8.4 – see the end of my gist.) |
I ran into the same issue. Using VBoxManage setextradata as proposed in https://www.virtualbox.org/ticket/10085 worked for me. But this is another little thing that makes the process of running a virtual local dev server unnecessary cumbersome :) |
I've been able to get VBoxManage setextradata to work for me too (with virtualenv 1.8.4) by using "v-root" as my "SHARE_NAME" in my Vagranfile, as suggested in this comment. Thanks everyone for the info/suggestions! |
My steps to fix it:
, where CENTOS - Virtualbox OS name, /home/oe - name of mounted folder
, where uid=1000 - uid of current user in guest OS (see /etc/passwd). |
upgrade virtualenv to the latest version(1.11.6), and use it as
the options will not use hard link but copy the files |
Here are some useful information. I fixed this issue: The solution link is: http://www.ahtik.com/blog/fixing-your-virtualbox-shared-folder-symlink-error/#comment-1388791879 |
I got this error on a shared directory from the vm host. When I switched to a directory that isn't shared, it was fine. |
@socrateslee Thanks mate. You saved me a lot of hassle! |
the reason is you tried to start the virtualenv in a shared folder |
OSError: [Errno 30] Read-only file system |
Tox now has a way to set not using symlinks in the virtualenv. `[testenv] alwayscopy = True` |
I'm not using Virtual Box and I'm facing this issue. I don't know why in a specific folder it doesn't work. I did chmod and chown but It just don't work.
|
In my case it was |
I've started getting a strange error when trying to create new environments:
I don't seem to have trouble creating symlinks under any other circumstances.
I'm running Ubuntu 11.04 through Virtualbox - I've tried destroying and rebuilding the box from scratch (using an unchanged puppet manifest), but the same error persists.
The text was updated successfully, but these errors were encountered: