NFS problem on macOS Sonoma

Hi there,

I’m bumping into this issue with a fresh Trellis clone on a M1/2/3 MacBook running macOS Sonoma 14.4* when running trellis up:

==> default: Installing NFS client...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
Could not kickstart service "": 1: Operation not permitted
/bin/launchctl exited with status 1
==> default: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o vers=3 /

Stdout from the command:

Stderr from the command:

mount.nfs: an incorrect mount option was specified

By the looks of things, I’m not alone:

Is there nothing we can do then wait for a fix? I don’t quit understand where/when to run this command: sudo nfsd update like suggested here and how that’s is suppose to fix it, when the playbook stops running?

Any suggestions are welcome!

I was also having the same issue. I actually just managed to solve it by running the sudo nfsd update command in the same directory where I had run the vagrant up / trellis up command, directly after the command exited with the error. Not sure what the command really does TBH and whether it’s the definitive solution to this issue though.


Ah check, just tried that. I presume you have to run trellis up again after that?

Because the initial provisioning of my vagrant box exits with an error and therefore the nfsd mounts are not recognized and the second time provisioning it fails at the composer task:

TASK [wordpress-install : Install Dependencies with Composer] ******************
failed: [default] ( => {"ansible_loop_var": "item", "changed": false, "item": {"key": "", "value": {"admin_email": "", "admin_user": "example", "cache": {"enabled": false}, "cron_interval": "*/1", "env": {"db_name": "example_development", "db_prefix": "wp_", "db_user": "example", "log_channel": "stack"}, "local_path": "../site", "multisite": {"enabled": false}, "site_hosts": [{"canonical": "example.test", "redirects": ["www.example.test"]}], "ssl": {"enabled": true, "provider": "self-signed"}, "xmlrpc": {"enabled": false}}}, "msg": "Composer could not find a composer.json file in /srv/www/ To initialize a project, please create a composer.json file. See", "stdout": "Composer could not find a composer.json file in /srv/www/\nTo initialize a project, please create a composer.json file. See\n", "stdout_lines": ["Composer could not find a composer.json file in /srv/www/", "To initialize a project, please create a composer.json file. See"]}

When I ssh into the box, the srv/www/ folder doesn’t have any composer files, only the web folder?

Thanks – this fixed it for me as well.

1 Like

Nevermind… 20mins later when reprovisioning its not working (even after subsequently running it) Hmm… it’s odd. I had no issues initially with my first environment. It’s only since creating a second Vagrant box now and deploying another environment.

I’ve got the feeling it only happens with new projects that are not added yet in the /etc/exports file.
Then the first time running trellis up will fail while mounting the nfs volumes.
When I run sudo nfsd update, shutdown the box and run trellis up again, that error seems to be gone.
After that, you need to finish provisioning the box with trellis provision development.
It shouldn’t affect deploying remote servers though I think?


I believe you’re correct about the remote deployments. I wasn’t seeing any issues yet. I’m going to try this order of operations to get my new environment going.

Confirmed – working now after this sequence.

1 Like

I’m having this issue but can’t fix it by running sudo nfsd update. Does anyone has any idea why? I already tried running it in different moments, but couldn’t make it work.

My project is not new (it has 2 years), and I am using vagrant 2.4.1 on macOS Sonoma 14.4.1.


in your vagrant.default.yml change:

vagrant_mount_type: 'nfs'


vagrant_mount_type: 'parallels'