-
-
Notifications
You must be signed in to change notification settings - Fork 645
vagrant up
fails when using centos7 due to inability to resolve repository host
#1495
Comments
It might be worth noting that I can access the address (http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock) just fine locally, it is the the vagrant box that for some reason cannot access it. |
Running I assume it's likely that the box is unable to connect to the internet, which is a bit strange to me, as none of the normal drupal-vm boxes has that issue (but they are all geerlingguy/ubuntu1604). |
@Graloth - it looks like you might be using a fairly old From the error:
I just updated the box last night :) |
Also, the other error:
...seems to indicate that maybe you entered the wrong administrative password when prompted by the hostsupdater plugin? |
@geerlingguy I updated it after re-reading my past post, that had no effect on the error. The hostupdater plugin never prompted me for a password, it just asked if I wanted to allow it to make administrative changes, which I allow it to do the first time, and the second time it didn't ask me anything (which then explains the error you mentioned). I will give it another try on a clean drupal-vm clone on my home computer later today, and see what happens. |
Sounds good! Let me know what happens then. |
My home computer had neither vagrant or virtualbox, so this is as clean of a test as I could do short of a fresh windows install :) Here is more information, including another gist. Environment
OS
Full Console Outputhttps://gist.github.com/Graloth/c6645b3c66b4ede6c9671866a509fd6b SummaryRan |
Running the entire Git Bash as adminitrator resolves the problem, so it is because the hostupdater doesn't have permission to do it's thing (even though I checked and it did update the hostfile just fine before the error) I have also tested it with windows command prompt (cmd) as well as PowerShell, both required me to run them as administrator for the error to be avoided. I don't consider this very safe, or practical. What makes it even more confusing is that the error only happens when using centos7, have tried with ubuntu1604 and it runs without issue. |
Found a solution! We want the current user, the one that is trying to run
Related issue already exists on the vagrant repo: agiledivider/vagrant-hostsupdater#89 and agiledivider/vagrant-hostsupdater#40 |
@Graloth - wow, yes, that would be good to add. So is the box able to connect now, even when not run as administrator? Or does the build still fail at some point? |
It runs smoothly, until it hits the I have tested using the If you want to add more details to the docs about this (you do mention it), I can provide screenshots of the relevant windows on windows 10. |
I'm working on the composer install issue now, hopefully will have that tagged soon, and then get the updated version into Drupal VM's |
@Graloth - if you get a chance, can you try with the master branch, and set the variable:
...and make sure that works like you'd want it to work? |
@geerlingguy It does indeed work as I expect it to, thanks for the help :D |
… skipped on deploy.
Issue Type
Your Environment
Your OS
Full console output
https://gist.github.com/Graloth/9c6cd0f83adcdf2ae15d5ee228c2c492
Summary
After I cloned the drupal-vm repo into a new folder, I changed the following in the
config.yml
:vagrant_box: geerlingguy/centos7
(Our production servers run Centos7, so we want our local development environment to match that as closely as possible)vagrant_hostname: centosvm.dev
vagrant_machine_name: centosvm
vagrant_ip: 192.168.89.89
(Changed since *.88.88 is already in use by a default drupalvm box)Saved all config changed to
local.config.yml
and ranvagrant up
, which produces the above linked output.The text was updated successfully, but these errors were encountered: