Can only run as root. Why?

15 views
Skip to first unread message

Lasse Karagiannis

unread,
Dec 28, 2019, 6:35:29 AM12/28/19
to Vagrant
Hi, I can only run "vagrant up" as root. I am on Ubuntu 18.04 and the vagrant box is "ubuntu/trusty64" System responds:
Bringing machine 'default' up with 'virtualbox' provider...
/opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:589:in `initialize': Permission denied @ rb_sysopen - /home/lasse/.vagrant.d/data/lock.machine-action-8a592346e6d5c0439a627eece398466c.lock (Errno::EACCES)
	from /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:589:in `open'
	from /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:589:in `block in lock'
	from /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:613:in `lock'
	from /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:588:in `lock'
	from /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/machine.rb:195:in `call'
	from /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/machine.rb:195:in `action'
	from /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run'

Alvaro Miranda Aguilera

unread,
Dec 30, 2019, 3:01:55 AM12/30/19
to vagra...@googlegroups.com
Hello

if at some point you run vagrant with sudo, may explain this.

You can try to set all the files to be owned by your users at the project directory (where you have the Vagrantfile) and the global vagrant firectory /home/lasse/.vagrant.d

Thanks
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/b9fa180d-20d2-4d5f-baf1-d6c7bc609bfc%40googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages