Skip to content

Instantly share code, notes, and snippets.

@ikennaokpala
Last active February 9, 2026 17:20
Show Gist options
  • Select an option

  • Save ikennaokpala/79f033880ecd38272a411350c6d573c0 to your computer and use it in GitHub Desktop.

Select an option

Save ikennaokpala/79f033880ecd38272a411350c6d573c0 to your computer and use it in GitHub Desktop.
Vagrant error :NFS is reporting that your exports file is invalid

Vagrant error :NFS is reporting that your exports file is invalid

==> default: Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":

exports:2: path contains non-directory or non-existent components: /Users/<username>/path/to/vagrant
exports:2: no usable directories in export entry
exports:2: using fallback (marked offline): /
exports:5: path contains non-directory or non-existent components: /Users/<username>/path/to/vagrant
exports:5: no usable directories in export entry
exports:5: using fallback (marked offline): /

This means that you may already have old vagrant path definitions in your /etc/exports file.

Try opening up /etc/exports file to identify old or unwanted vagrant paths and removing them if necessary

On opening /etc/exports file each set begins with # VAGRANT-BEGIN: and ends with # VAGRANT-END:. Make sure to delete these and any other lines between VAGRANT-BEGIN: and VAGRANT-END:

or maybe

sudo rm /etc/exports
sudo touch /etc/exports

vagrant halt
vagrant up
@THRY

THRY commented Aug 6, 2018

Copy link
Copy Markdown

Thanks!

@sebarickert

Copy link
Copy Markdown

🔥 👍

@ribeirovictor

Copy link
Copy Markdown

Thank you, it helped!

@davStar

davStar commented Jun 30, 2019

Copy link
Copy Markdown

Thanks!

@dazhaoniel

Copy link
Copy Markdown

🔥 Thanks!

@davStar

davStar commented Jul 26, 2019 via email

Copy link
Copy Markdown

@krishaamer

Copy link
Copy Markdown

Thank you!

@MaTToX3

MaTToX3 commented Oct 10, 2019

Copy link
Copy Markdown

Thanks!

@paoga87

paoga87 commented Oct 21, 2019

Copy link
Copy Markdown

I'm getting exports errors as well:

NFS is reporting that your exports file is invalid

exports:3: exported dir/fs mismatch: /Users /System/Volumes/Data

However, when I try to edit the /etc/exports file, there is nothing in there with VAGRANT-BEGIN or VAGRANT-END.

Any ideas what I should do?

@leorenis

Copy link
Copy Markdown

Thank you!
it helped me!

@korpekalyani

Copy link
Copy Markdown

Facing same issue as @paoga87.
@paoga87, did you upgrade to Catalina recently?

@paoga87

paoga87 commented Oct 22, 2019

Copy link
Copy Markdown

Facing same issue as @paoga87.
@paoga87, did you upgrade to Catalina recently?

I did, @korpekalyani and this may very well have to do with it.

@angelods

Copy link
Copy Markdown

Thank you!

ghost commented Nov 1, 2019

Copy link
Copy Markdown

Very helpful! Thank you!

@RodideBoer

Copy link
Copy Markdown

Thanks. Works for me.

@shradhabanerjee

Copy link
Copy Markdown

Thanks, worked for me 👍

@rombla

rombla commented Mar 30, 2020

Copy link
Copy Markdown

Thanks, worked for me as well !

ghost commented Apr 7, 2020

Copy link
Copy Markdown

Very helpful! Thank you!

@chateaux

chateaux commented Jul 4, 2020

Copy link
Copy Markdown

Super!

ghost commented Mar 15, 2021

Copy link
Copy Markdown

Thank you for this!

@sanjeev-io

Copy link
Copy Markdown

Superb and thank you.

@bradsi

bradsi commented Jan 5, 2022

Copy link
Copy Markdown

Thanks!

@dominikfiala

Copy link
Copy Markdown

saved me plenty of time today, thank you sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment