d...">

Resolved Error for Vagrant

I made a mistake when I ran "sudo vagrant up", and now whenever I run a "tramp" it gives me the following error.

==> default: Running cleanup tasks for 'chef_solo' provisioner... /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/environment.rb:492:in `initialize': P Permission denied - /Users/mkv/.vagrant.d/data/lock.fpcollision.lock (Errno::EACCES) 

I tried to delete the .vagrant folder as well as the Cheffile, but always get the same error.

What can I do to sort this?

+6
source share
2 answers

The problem is related to the resolution that you accidentally launch the application using root.

Follow these steps:

  • Remove /Users/mkv/.vagrant.d/data/lock.fpcollision.lock and run vagrant up again.

  • Find files belonging to root in the / Users / mkv section, include hidden files. if it is found, change it back to your user account. You can run the command below to find files owned by root

    find / Users / mkv -type f -user root -print

+15
source

For those who are wondering how to change the user to the current one using the find command:

 sudo find ~/.vagrant.d/data/lock.fpcollision.lock -type f -user root -exec chown $USER {} \; 
+2
source

Source: https://habr.com/ru/post/980209/


All Articles