Exclusive locks not supported error, when using FreeBSD in Vagrant.

This error drove me crazy for the longest time. I was using Vagrant, FreeBSD and Laravel for a project and laravel would not run because of where it stores the cache. It took awhile for me to find a good fix but it is fairly easy.

In your  /etc/rc.conf file add two lines:

  • rpc_lockd_enable=”YES”
  • rpc_statd_enable=”YES”

Restart your vagrant instance and it’s all working now.

You can also update your vagrant file to put those values in when it’s created. Below is my Vagrantfile for new projects:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s