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
Weird problem on a Vagrant VM with NFS shared folders #3706
Comments
I remember there being problems with NFS and zsh. See #2217. I couldn't figure out why or how to follow up on that, so you might get better answers in the official mailing list. Let's make sure it's a zsh issue and not an oh-my-zsh one first, though:
Let me know what you find. |
Ok, thanks. So, with the default .zshrc, no problem.
|
Well, this stops at the To check this, could you: If it really is the It would be nice if OMZ could add a timeout to its |
I'd say you're assessment of the issue is correct exactly right. I got confused by the last If you've noticed, the prompt stuff runs a check to see if it needs to check the status: |
I wasn't aware of that |
@apjanke : @mcornella |
In that case, sounds like it's just I think this is different from the #2217 case that @mcornella, because you'll get this slowdown even when your NFS server is up; you're probably getting some or all of the slowdown from lots of NFS requests that are succeeding but have latency, not a single one that's hung b/c the server is down. Are you cool with closing this out? I don't think this is caused by anything specific to OMZ aside from that it calls If you want to tackle the git + filesharing issue directly there's a couple things you could try. You could use a traffic analyzer like Wireshark to look at the NFS activity and make sure nothing perverse is going on. (Though I'd bet there isn't. Only times I've seen serious shared FS + SCM breakage is when antivirus or security software was involved with a Windows client.) Or instead of doing VM or NFS shared folders directly, you could clone your git repos from the shared Or just stick with a git-less theme or the |
Yep, it's ok to close this issue, it doesn't seem to be OMZ related after all. |
Okay, thanks. You're the one who has permission to close it. :) Only the initial reporter and repo maintainers (only robbyrussell for OMZ) have rights to close issues and PRs. |
FYI, there's an open issue for general |
Here's my setup:
My host OS is Windows 8.1, and my guest VM is Vagrant Homestead (Ubuntu 14.04).
I'm using oh-my-zsh in my VM.
Since it was terribly slow with VirtualBox shared folders, I installed vagrant winnfsd.
Then I edited my Homestead.yaml, and added
type: nfs
after my folder map:If I do a
vagrant up
, everything is working just fine: the folder is mounted, and I can see my projet from my host machine.The only problem is, when I
vagrant ssh
, if I want to go to my project folder (cd ~/Code/laravel
), my shell just hang and I can't do anything more.I can
ls ~/Code/laravel
, but if I try tocd ~/Code/laravel
, it's stuck.I've tried to remove oh-my-zsh, and I can browse the folders with bash or zsh. The problem seem to be related to oh-my-zsh (with a clean install of oh-my-zsh), but I don't understand why:
It only happens if the folder is mounted with NFS. If I use VirtualBox shared folders, I can browse whatever I want (but laravel is painfully slow).
Does anyone know how to fix this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: