-
Notifications
You must be signed in to change notification settings - Fork 129
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
Strange error on first vagrant up [Mac OS 10.8/10.9] #28
Comments
I tried using vagrant-hostsupdater for the first time today, while trying out kalastack. I ran into the same error mentioned above the first time I ran In searching out a fix, I also found someone else mentioning the same error with the varying-vagrant-vagrants. It seems the issue may be specific to the very first time you use vagrant-hostsupdater. |
I also saw this error the first time I ran |
Same for me - arrived at this issue when searching for the error message above. |
Still no ideas for a fix? Is this plugin still being maintained? |
Same problem here - seems to happen the first time you |
As @wheelsandcogs has observed, this does seem to be reproducible by creating a vagrantfile that has the box_url as some locally downloaded box and the box name to be something different each run. Interestingly it seems fixed in Vagrant 1.5.0 so this might be an issue in Vagrant itself (which is something I've suspected). |
got the same issue on 1.4.3 - vagrant-hostsupdater (0.0.11) on Mac
Works the second time (and asked for the sudo password to edit the /etc/hosts file) |
@opepin |
I am not seeing this issue occurring. Is there a simpler Vagrantfile to use to replicate? Does it only happen on new boxes? |
@cgsmith you can try this one: https://gist.github.com/ryanpcmcquen/e2f1e9424671c2bbd251 I haven't tried any of these projects in over a year, so the issue may have been fixed by something else at this point. |
And yes it only happens on new boxes, as @wheelsandcogs said. |
Ditto getting the same error here. Fresh install, just install vagrant 1.7.4 from https://www.vagrantup.com/downloads.html and ran
|
I'll try and find what is going on - I am seeing the issue as well. |
@dtbaker can you verify that this fixes the issue? You can install this bugfix plugin by downloading, unzipping, and typing |
I think the issue was caused by the box not being fully loaded in Vagrant. Perhaps not all the variables were set? Vagrant SetHostname should be the proper hook for |
Just had this same issue. 1.0.1 you linked fixed it. |
Thank you @cgsmith, it worked for me as well! |
thanks @cgsmith, that solved it. |
I too can confirm @cgsmith's fix worked for me. Thanks! |
Fixing the cat from running on the keyboard
Fixed in 1.0.1 |
@ar000n the issue has been fixed since November 2015, why are you commenting on it? |
Because it still happens in 1.1.1.
|
This issue is still happening for me, and the link above is broken. It's happening because I'm using the alias array feature. I remember a while ago this feature (listed in the Readme) did not work, and still does not work today. |
I had similar issue with vagrant |
I have the same problem here with |
Just updated to 2.2.14, and I also have this error even after updating plugins. Downgrading to 2.2.13 and the error is gone. The following error is from running vagrant up (on a new box not made yet) (However I am on windows 10)
|
@corbinjurgens can you try to uninstall the plugin and then install it again? |
I am having this seem issue with 2.2.14 on windows. uninstalling the plugin and reinstalling did not resolve the issue |
@cgsmith reinstalling vagrant-hostsupdater solved the problem in my Ubuntu Linux. In my case, I was facing the problem with those versions: Started to work with: |
Just got the same error. Bringing machine 'vgpm' up with 'virtualbox' provider... |
@skalinkin This issue was raised to address. #190 If you want to help test if the gem works before releasing it you can do so here: https://github.com/agiledivider/vagrant-hostsupdater/releases/tag/1.2.1-beta |
Will do,
there are a couple more issues.
1. Windows hosts file format does not support commas. So plugin shouldn't
do 1.2.3.4 alias1, alias2, alias3 it should do
1.2.3.4 alias1
1.2.3.4 alias2
1.2.3.4 alias3
for windows.
it is not confirmed but on vagrant destroy, the plugin leaves extra
newline. So after 10 rebuilds I have 10 empty lines before vagrant section.
thanks.
…On Thu, Dec 3, 2020 at 9:36 AM Chris Smith ***@***.***> wrote:
@skalinkin <https://github.com/skalinkin> This issue was raised to
address. #190
<#190>
If you want to help test if the gem works before releasing it you can do
so here:
https://github.com/agiledivider/vagrant-hostsupdater/releases/tag/1.2.1-beta
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVK6HWQT2Z653UV2N2Y7G3SS6O7HANCNFSM4AJP4WQQ>
.
|
Wow, this bug won't die. |
Issue.
Multiple Checks for enty.
usign 1.2.1 BETA
<https://github.com/agiledivider/vagrant-hostsupdater/releases/tag/1.2.1-beta>
VAGRANT FILE
# -*- mode: ruby -*-
# vi: set ft=ruby :
GROUP_NAME = "/VGPM"
IMAGE_NAME = "geerlingguy/centos8"
Vagrant.configure("2") do |config|
config.vagrant.plugins = "vagrant-hostsupdater"
config.vm.box = IMAGE_NAME
config.vm.network "private_network", ip: "192.168.99.25"
config.vm.synced_folder "../", "/home/vagrant", type: "rsync",
rsync__exclude: ".git/"
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--groups", GROUP_NAME]
end
config.vm.define "vgpm" do |vgpm|
vgpm.vm.hostname = "vgpm.local"
config.hostsupdater.aliases = ["axs.local, keycloak"]
vgpm.vm.provision :shell, path: "provision.sh"
vgpm.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 4096]
v.customize ["modifyvm", :id, "--name", "vgpm"]
end
end
end
LOG
Bringing machine 'vgpm' up with 'virtualbox' provider...
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] Writing the following entries to
(C:/WINDOWS/system32/drivers/etc/hosts)
==> vgpm: [vagrant-hostsupdater] 192.168.99.25 axs.local, keycloak #
VAGRANT: d41d8cd98f00b204e9800998ecf8427e (vgpm) /
==> vgpm: [vagrant-hostsupdater] Update Works
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] Writing the following entries to
(C:/WINDOWS/system32/drivers/etc/hosts)
==> vgpm: [vagrant-hostsupdater] 192.168.99.25 axs.local, keycloak #
VAGRANT: d41d8cd98f00b204e9800998ecf8427e (vgpm) /
==> vgpm: [vagrant-hostsupdater] Update Works
==> vgpm: Importing base box 'geerlingguy/centos8'...
==> vgpm: Matching MAC address for NAT networking...
==> vgpm: Checking if box 'geerlingguy/centos8' version '1.0.7' is up to
date...
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] Writing the following entries to
(C:/WINDOWS/system32/drivers/etc/hosts)
==> vgpm: [vagrant-hostsupdater] 192.168.99.25 axs.local, keycloak #
VAGRANT: e822a021a1afdc6c8dde3295110a3a6e (vgpm) /
9a45e779-4469-4348-9602-8273472cfd7f
==> vgpm: [vagrant-hostsupdater] Update Works
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] Writing the following entries to
(C:/WINDOWS/system32/drivers/etc/hosts)
==> vgpm: [vagrant-hostsupdater] 192.168.99.25 axs.local, keycloak #
VAGRANT: e822a021a1afdc6c8dde3295110a3a6e (vgpm) /
9a45e779-4469-4348-9602-8273472cfd7f
==> vgpm: [vagrant-hostsupdater] Update Works
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] Writing the following entries to
(C:/WINDOWS/system32/drivers/etc/hosts)
==> vgpm: [vagrant-hostsupdater] 192.168.99.25 axs.local, keycloak #
VAGRANT: e822a021a1afdc6c8dde3295110a3a6e (vgpm) /
9a45e779-4469-4348-9602-8273472cfd7f
==> vgpm: [vagrant-hostsupdater] Update Works
==> vgpm: Setting the name of the VM: vagrant_vgpm_1607013571429_69746
==> vgpm: Clearing any previously set network interfaces...
==> vgpm: Preparing network interfaces based on configuration...
vgpm: Adapter 1: nat
vgpm: Adapter 2: hostonly
==> vgpm: Forwarding ports...
vgpm: 22 (guest) => 2222 (host) (adapter 1)
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] Writing the following entries to
(C:/WINDOWS/system32/drivers/etc/hosts)
==> vgpm: [vagrant-hostsupdater] 192.168.99.25 axs.local, keycloak #
VAGRANT: e822a021a1afdc6c8dde3295110a3a6e (vgpm) /
9a45e779-4469-4348-9602-8273472cfd7f
==> vgpm: [vagrant-hostsupdater] Update Works
==> vgpm: Running 'pre-boot' VM customizations...
==> vgpm: Booting VM...
==> vgpm: Waiting for machine to boot. This may take a few minutes...
vgpm: SSH address: 127.0.0.1:2222
vgpm: SSH username: vagrant
vgpm: SSH auth method: private key
vgpm:
vgpm: Vagrant insecure key detected. Vagrant will automatically replace
vgpm: this with a newly generated keypair for better security.
vgpm:
vgpm: Inserting generated public key within guest...
vgpm: Removing insecure key from the guest if it's present...
vgpm: Key inserted! Disconnecting and reconnecting using new SSH key...
==> vgpm: Machine booted and ready!
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] Writing the following entries to
(C:/WINDOWS/system32/drivers/etc/hosts)
==> vgpm: [vagrant-hostsupdater] 192.168.99.25 axs.local, keycloak #
VAGRANT: e822a021a1afdc6c8dde3295110a3a6e (vgpm) /
9a45e779-4469-4348-9602-8273472cfd7f
==> vgpm: [vagrant-hostsupdater] Update Works
==> vgpm: Checking for guest additions in VM...
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] Writing the following entries to
(C:/WINDOWS/system32/drivers/etc/hosts)
==> vgpm: [vagrant-hostsupdater] 192.168.99.25 axs.local, keycloak #
VAGRANT: e822a021a1afdc6c8dde3295110a3a6e (vgpm) /
9a45e779-4469-4348-9602-8273472cfd7f
==> vgpm: [vagrant-hostsupdater] Update Works
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] Writing the following entries to
(C:/WINDOWS/system32/drivers/etc/hosts)
==> vgpm: [vagrant-hostsupdater] 192.168.99.25 axs.local, keycloak #
VAGRANT: e822a021a1afdc6c8dde3295110a3a6e (vgpm) /
9a45e779-4469-4348-9602-8273472cfd7f
==> vgpm: [vagrant-hostsupdater] Update Works
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: Setting hostname...
==> vgpm: Configuring and enabling network interfaces...
==> vgpm: Rsyncing folder: /cygdrive/c/Work/GIT/axs-vgpm/ => /home/vagrant
==> vgpm: - Exclude: [".vagrant/", ".git/"]
==> vgpm: Mounting shared folders...
vgpm: /vagrant => C:/Work/GIT/axs-vgpm/vagrant
==> vgpm: Running provisioner: shell...
vgpm: Running:
C:/Users/SKALIN~1/AppData/Local/Temp/vagrant-shell20201203-22712-1seb40o.sh
....
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
==> vgpm: [vagrant-hostsupdater] Checking for host entries
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25 vgpm.local
==> vgpm: [vagrant-hostsupdater] found entry for: 192.168.99.25
axs.local, keycloak
…On Thu, Dec 3, 2020 at 11:32 AM Ryan McQuen ***@***.***> wrote:
Wow, this bug won't die.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVK6HQFYBI5FQKVCZMNT7LSS64QBANCNFSM4AJP4WQQ>
.
|
@skalinkin that issue is known about. The other issues please create a new bug so we aren't resurrecting this one. |
I have received the same error on 2 separate machines (Macbook Pro @ 10.8 /iMac @ 10.9):
This is my Vagrantfile:
https://raw.github.com/milojennings/zippy/0.1/Vagrantfile
Everything works perfectly on the second vagrant up.
The text was updated successfully, but these errors were encountered: