Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No prompt is given to sudo, vagrant up fails. #270

Open
stephenreay opened this issue Dec 11, 2018 · 1 comment
Open

No prompt is given to sudo, vagrant up fails. #270

stephenreay opened this issue Dec 11, 2018 · 1 comment

Comments

@stephenreay
Copy link
Contributor

When attempting to vagrant up (on a machine that has been vagrant destroy'd, and worked fine previously) I now get an error when vagrant-hostmanager tries to update the hosts file on the host machine:

/opt/vagrant/embedded/lib/ruby/2.4.0/fileutils.rb:1289:in `initialize': Permission denied @ rb_sysopen - /etc/hosts (Errno::EACCES)
	from /opt/vagrant/embedded/lib/ruby/2.4.0/fileutils.rb:1289:in `open'
	from /opt/vagrant/embedded/lib/ruby/2.4.0/fileutils.rb:1289:in `copy_file'
	from /opt/vagrant/embedded/lib/ruby/2.4.0/fileutils.rb:430:in `copy_file'
	from /opt/vagrant/embedded/lib/ruby/2.4.0/fileutils.rb:357:in `block in cp'
	from /opt/vagrant/embedded/lib/ruby/2.4.0/fileutils.rb:1461:in `block in fu_each_src_dest'
	from /opt/vagrant/embedded/lib/ruby/2.4.0/fileutils.rb:1477:in `fu_each_src_dest0'
	from /opt/vagrant/embedded/lib/ruby/2.4.0/fileutils.rb:1459:in `fu_each_src_dest'
	from /opt/vagrant/embedded/lib/ruby/2.4.0/fileutils.rb:356:in `cp'
	....
@seth-reeser
Copy link
Member

Hello @stephenreay, try running vagrant global-status --prune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants