-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Vagrant creating duplicate entries in /etc/exports #11418
Comments
Hey there @brianV - Do you get duplicate entries if you remove all third party plugins and just run a simple Vagrantfile like this inside a different folder? Or if you try with a different box like Vagrant.configure(2) do |config|
config.vm.define "test" do |box|
box.vm.box = "palantir/drupalbox"
box.vm.box_version = ">= 1.2.0, < 2.0"
box.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
box.vm.synced_folder ".", "/var/www/test-folder", :nfs => true
end
end |
Thanks. I get the same issue with the
Here's a gist with the debug log using the |
@brianV Hey, thanks for checking with that. Can you confirm that nfs-server is running on your host prior to running Vagrant up too? And either way, perhaps try reloading the NFS service and try Vagrant again? 🙏 |
@briancain So, I want to take back my previous comment, because I hadn't removed an earlier the original entries from In #4666, it seems to be tied to having the same folder synced into two places, but that specific issue was supposedly fixed in Sept. 2017. |
@brianV Yes...that behavior should be fixed. Is that what you are seeing now? I thought the original report was for a single Vagrantfile. |
@briancain My report is for a single Vagrant file - it appears that the mechanism is different from #4666, but the end result is the same: Duplicate lined in /etc/exports. I was able to re-add to the test case Vagrantfile until I triggered the duplicate /etc/exports entries:
The last change was to add the However, by the same token, the duplicate lines aren't causing the NFS failure in this use case. In fact, the original Vagrantfile and project where this was happening are no longer triggering any NFS issues like they were the other day. At this point, my specific project is back operational, despite creating duplicate |
Hey there! Sorry that I did not get back to you sooner. I still am unable to reproduce this issue with a handful of boxes. I'm going to go ahead and close this issue for now. However if you're still experiencing this issue with the latest version of Vagrant, please feel free to open a new issue and reference this one! Thanks. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant is creating duplicate entries in
/etc/exports
when I try to bring up a project on my localhost.As a result,
vagrant up
errors out with:I've tried removing one of the
/etc/exports
entries, then performingvagrant up --provision
, however, the NFS mounts aren't present on the resulting box.I've also tried doing a
vagrant halt
, removing one up the entries, then avagrant up
, but in this scenario, Vagrant recreates the duplicate entries, after which presents the above error when it attempts to create the NFS mounts again.Vagrant version
2.2.6
Host operating system
Linux Mint 19.1
Guest operating system
Ubuntu 16.04
https://app.vagrantup.com/palantir/boxes/drupalbox/versions/1.4.0
Vagrantfile
Debug output
https://gist.github.com/brianV/983ec5198cb0d3e3033417561f032184
Expected behavior
Environment should come up.
Steps to reproduce
Unfortunately, not able to give reproduction steps without access to a codebase.
References
The text was updated successfully, but these errors were encountered: