{"issue":{"created_at":"2011-10-19T12:50:29Z","state":"open","updated_at":"2011-11-26T17:55:55Z","comments":4,"user":{"gravatar_id":"913da4013e5a3a08657b3ff0f673a427","id":280532,"url":"https://api.github.com/users/michaelcontento","login":"michaelcontento","avatar_url":"https://secure.gravatar.com/avatar/913da4013e5a3a08657b3ff0f673a427?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hiho,                                                                      \r\n                                                                           \r\nit seems that Vagrant does not update the export path for NFS in `/etc/exports` on every `vagrant up`. So if you move the project directory around the export points to an old/invalid location.         \r\n                                                                           \r\n    $ cd /project/old                                                      \r\n    $ vagrant up                                                           \r\n    $ echo \"Everything is fine ...\"                                        \r\n                                                                           \r\n    $ exit                                                                 \r\n    $ vargant halt                                                         \r\n    $ cd /                                                                 \r\n    $ mv /project/old /project/new                                         \r\n                                                                           \r\n    $ cd /prject/new                                                       \r\n    $ vagrant up                                                           \r\n    $ echo \"NFS errors // Vagrant hint: 'is NFS installed in the basebox?'\"\r\n                                                                           \r\nThanks!                                                                    ","assignee":null,"number":529,"id":1993474,"labels":[{"color":"f5a1a1","name":"bug","url":"https://api.github.com/repos/mitchellh/vagrant/labels/bug"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"/etc/exports not updated on every vagrant up","closed_at":null,"html_url":"https://github.com/mitchellh/vagrant/issues/529","milestone":null,"url":"https://api.github.com/repos/mitchellh/vagrant/issues/529"},"action":"created","comment":{"created_at":"2011-11-26T17:55:55Z","updated_at":"2011-11-26T17:55:55Z","user":{"gravatar_id":"2828f28fb012308a7786eee83b8293c5","id":1299,"url":"https://api.github.com/users/mitchellh","login":"mitchellh","avatar_url":"https://secure.gravatar.com/avatar/2828f28fb012308a7786eee83b8293c5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"So I looked into the code for NFS sharing and I can see how this is happening. @smerrill I haven't looked closely at your pull yet to see if it fixes this indirectly. The issue is that the `nfs_export` method doesn't clear out dead/old NFS exports from Vagrant. Because of this, it'll end up just attaching the new folder at the end. I'm not sure what the behavior of NFS is with multiple matching exports but I have a feeling this is causing problems.\r\n\r\nEven if it isn't, cleaning up this code will make bugs clearer to find.","id":2882875,"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/2882875"}}