Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Vagrant on Linux failing to load due to permission error with the minon file? #238

Closed
larsbergstrom opened this issue Mar 8, 2016 · 4 comments

Comments

@larsbergstrom
Copy link
Contributor

@aneeshusa Do you have any idea why this might be failing when I attempt to vagrant up a new machine and how to fix it?

Copying salt minion config to /etc/salt
Failed to upload a file to the guest VM via SCP due to a permissions
error. This is normally because the SSH user doesn't have permission
to write to the destination location. Alternately, the user running
Vagrant on the host machine may not have permission to read the file.

Source: /home/larsberg/saltfs/.travis/minion
Dest: /etc/salt/minion
[larsberg@thor saltfs]$ 
@larsbergstrom
Copy link
Contributor Author

Aha! Looks like this is a problem with newer Vagrants:
hashicorp/vagrant#5973

@larsbergstrom
Copy link
Contributor Author

s/newer/older. Ubuntu installs 1.7.4 Vagrant, but #180 moved us to 1.8.0. So this is user error on my part!

@aneeshusa
Copy link
Contributor

Thanks for updating the wiki, I totally meant to add that after the PR landed but forgot! This bug was definitely a thorn in the side for a while.

@larsbergstrom
Copy link
Contributor Author

No problem! It was actually somewhat fortunate, as I wasn't in a huge rush today and it forced me to learn a lot about how Vagrant works :-)

aneeshusa added a commit to aneeshusa/servo-saltfs that referenced this issue Mar 8, 2016
Use the Vagrant.require_version helper documented here:
https://www.vagrantup.com/docs/vagrantfile/vagrant_version.html

Eliminates issues like servo#238.
bors-servo pushed a commit that referenced this issue Mar 24, 2016
…bergstrom

Ensure Vagrant version is at least 1.8.0

Use the Vagrant.require_version helper documented here:
https://www.vagrantup.com/docs/vagrantfile/vagrant_version.html

Eliminates issues like #238.

Heads up: I didn't test this with a Vagrant older than 1.8.0, so I have no idea if this actually works.
@larsbergstrom can you test this if possible since you ran into this?
I want to make sure this is actually a useful change.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/240)
<!-- Reviewable:end -->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants