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

SocketError: Failed to open TCP connection to rubygems.org:443 During plugin instillation #9516

Closed
MaxMage opened this issue Feb 27, 2018 · 10 comments

Comments

@MaxMage
Copy link

MaxMage commented Feb 27, 2018

Im trying to run the command like

vagrant plugin install vagrant-hostmanager

and got an error message

vagrant plugin install vagrant-hostmanager
Installing the 'vagrant-hostmanager' plugin. This can take a few minutes...
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

SocketError: Failed to open TCP connection to rubygems.org:443 (Hostname not known: rubygems.org) (https://rubygems.org/specs.4.8.gz)

Source: https://rubygems.org/

Vagrant version

vagrant -v
Vagrant 2.0.2

Host operating system

Windows 10

Guest operating system

This is the operating system you run in the virtual machine.

Vagrantfile


Debug output

https://gist.github.com/MaxMage/147a5e784162cbfe7bf851d5bbc40b4e

Expected behavior

Successful installation

Actual behavior

get the error message

Steps to reproduce

  1. Install Vagrant 2.0.2 on Windows 10
  2. run plugin installation command

Notice

if set the HTTP, the issue still exists

vagrant plugin install vagrant-vbguest --plugin-source http://rubygems.org

Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

SocketError: Failed to open TCP connection to rubygems.org:80 (Hostname not known: rubygems.org) (http://rubygems.org/specs.4.8.gz)

Source: http://rubygems.org/

@briancain
Copy link
Member

Are you able to ping and curl the website ok?

ping rubygems.org
curl https://rubygems.org

@MaxMage
Copy link
Author

MaxMage commented Feb 28, 2018

hi @briancain, yes the commands works well.

@haimgel
Copy link

haimgel commented Feb 28, 2018

I'm seeing the same issue on OSX, and the ping/curl to website works ok.

@aayoubi
Copy link

aayoubi commented Mar 10, 2018

Anyone managed to find a workaround?

Here's the output with --debug (in case it helps):

 INFO global: Vagrant version: 2.0.2
 INFO global: Ruby version: 2.4.3
 INFO global: RubyGems version: 2.6.14
 INFO global: VAGRANT_DISABLE_PLUGIN_INIT="1"
 INFO global: VAGRANT_EXECUTABLE="E:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-2.0.2\\bin\\vagrant"
 INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="E:\\HashiCorp\\Vagrant\\embedded"
 INFO global: VAGRANT_INSTALLER_ENV="1"
 INFO global: VAGRANT_INSTALLER_VERSION="2"
 INFO global: VAGRANT_LOG="debug"
 INFO global: VAGRANT_NO_PLUGINS="1"
 INFO global: resolv replacement has been enabled!
 INFO global: Plugins:
 INFO global:   - vagrant-vbguest = [installed: 0.13.0 constraint: > 0]
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/box/plugin.rb
 INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/cap/plugin.rb
 INFO manager: Registered plugin: cap command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/destroy/plugin.rb
 INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/global-status/plugin.rb
 INFO manager: Registered plugin: global-status command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/halt/plugin.rb
 INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/help/plugin.rb
 INFO manager: Registered plugin: help command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/init/plugin.rb
 INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/list-commands/plugin.rb
 INFO manager: Registered plugin: list-commands command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/login/plugin.rb
 INFO manager: Registered plugin: vagrant-login
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/package/plugin.rb
 INFO manager: Registered plugin: package command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/plugin/plugin.rb
 INFO manager: Registered plugin: plugin command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/port/plugin.rb
 INFO manager: Registered plugin: port command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/powershell/plugin.rb
 INFO manager: Registered plugin: powershell command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/provider/plugin.rb
 INFO manager: Registered plugin: provider command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/provision/plugin.rb
 INFO manager: Registered plugin: provision command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/push/plugin.rb
 INFO manager: Registered plugin: push command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/rdp/plugin.rb
 INFO manager: Registered plugin: rdp command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/reload/plugin.rb
 INFO manager: Registered plugin: reload command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/resume/plugin.rb
 INFO manager: Registered plugin: resume command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/snapshot/plugin.rb
 INFO manager: Registered plugin: snapshot command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/ssh/plugin.rb
 INFO manager: Registered plugin: ssh command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/ssh_config/plugin.rb
 INFO manager: Registered plugin: ssh-config command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/status/plugin.rb
 INFO manager: Registered plugin: status command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/suspend/plugin.rb
 INFO manager: Registered plugin: suspend command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/up/plugin.rb
 INFO manager: Registered plugin: up command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/validate/plugin.rb
 INFO manager: Registered plugin: validate command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/version/plugin.rb
 INFO manager: Registered plugin: version command
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/communicators/ssh/plugin.rb
 INFO manager: Registered plugin: ssh communicator
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/communicators/winrm/plugin.rb
 INFO manager: Registered plugin: winrm communicator
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/communicators/winssh/plugin.rb
 INFO manager: Registered plugin: windows ssh communicator
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/alt/plugin.rb
 INFO manager: Registered plugin: ALT Platform guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/amazon/plugin.rb
 INFO manager: Registered plugin: Amazon Linux guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/arch/plugin.rb
 INFO manager: Registered plugin: Arch guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/atomic/plugin.rb
 INFO manager: Registered plugin: Atomic Host guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/bsd/plugin.rb
 INFO manager: Registered plugin: BSD-based guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/coreos/plugin.rb
 INFO manager: Registered plugin: CoreOS guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/darwin/plugin.rb
 INFO manager: Registered plugin: Darwin guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/debian/plugin.rb
 INFO manager: Registered plugin: Debian guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/dragonflybsd/plugin.rb
 INFO manager: Registered plugin: DragonFly BSD guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/elementary/plugin.rb
 INFO manager: Registered plugin: Elementary guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/esxi/plugin.rb
 INFO manager: Registered plugin: ESXi guest.
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/fedora/plugin.rb
 INFO manager: Registered plugin: Fedora guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/funtoo/plugin.rb
 INFO manager: Registered plugin: Funtoo guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/haiku/plugin.rb
 INFO manager: Registered plugin: Haiku guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/kali/plugin.rb
 INFO manager: Registered plugin: Kali guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/linux/plugin.rb
 INFO manager: Registered plugin: Linux guest.
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/mint/plugin.rb
 INFO manager: Registered plugin: Mint guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/netbsd/plugin.rb
 INFO manager: Registered plugin: NetBSD guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/nixos/plugin.rb
 INFO manager: Registered plugin: NixOS guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/omnios/plugin.rb
 INFO manager: Registered plugin: OmniOS guest.
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/openbsd/plugin.rb
 INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/photon/plugin.rb
 INFO manager: Registered plugin: VMware Photon guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/pld/plugin.rb
 INFO manager: Registered plugin: PLD Linux guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/redhat/plugin.rb
 INFO manager: Registered plugin: Red Hat Enterprise Linux guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/slackware/plugin.rb
 INFO manager: Registered plugin: Slackware guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/smartos/plugin.rb
 INFO manager: Registered plugin: SmartOS guest.
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/solaris/plugin.rb
 INFO manager: Registered plugin: Solaris guest.
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/solaris11/plugin.rb
 INFO manager: Registered plugin: Solaris 11 guest.
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/suse/plugin.rb
 INFO manager: Registered plugin: SUSE guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/tinycore/plugin.rb
 INFO manager: Registered plugin: TinyCore Linux guest.
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/trisquel/plugin.rb
 INFO manager: Registered plugin: Trisquel guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/ubuntu/plugin.rb
 INFO manager: Registered plugin: Ubuntu guest
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/guests/windows/plugin.rb
 INFO manager: Registered plugin: Windows guest.
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/alt/plugin.rb
 INFO manager: Registered plugin: ALT Platform host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/arch/plugin.rb
 INFO manager: Registered plugin: Arch host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/bsd/plugin.rb
 INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/darwin/plugin.rb
 INFO manager: Registered plugin: Mac OS X host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/null/plugin.rb
 INFO manager: Registered plugin: null host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/redhat/plugin.rb
 INFO manager: Registered plugin: Red Hat Enterprise Linux host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/slackware/plugin.rb
 INFO manager: Registered plugin: Slackware host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/suse/plugin.rb
 INFO manager: Registered plugin: SUSE host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/providers/docker/plugin.rb
 INFO manager: Registered plugin: docker-provider
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/providers/hyperv/plugin.rb
 INFO manager: Registered plugin: Hyper-V provider
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/provisioners/ansible/plugin.rb
 INFO manager: Registered plugin: ansible
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/provisioners/cfengine/plugin.rb
 INFO manager: Registered plugin: CFEngine Provisioner
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/provisioners/chef/plugin.rb
 INFO manager: Registered plugin: chef
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/provisioners/docker/plugin.rb
 INFO manager: Registered plugin: docker
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/provisioners/file/plugin.rb
 INFO manager: Registered plugin: file
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/provisioners/puppet/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/provisioners/salt/plugin.rb
 INFO manager: Registered plugin: salt
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/pushes/atlas/plugin.rb
 INFO manager: Registered plugin: atlas
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/pushes/ftp/plugin.rb
 INFO manager: Registered plugin: ftp
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/pushes/heroku/plugin.rb
 INFO manager: Registered plugin: heroku
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/pushes/local-exec/plugin.rb
 INFO manager: Registered plugin: local-exec
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/pushes/noop/plugin.rb
 INFO manager: Registered plugin: noop
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/synced_folders/nfs/plugin.rb
 INFO manager: Registered plugin: NFS synced folders
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/synced_folders/rsync/plugin.rb
 INFO manager: Registered plugin: RSync synced folders
DEBUG global: Loading core plugin: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/synced_folders/smb/plugin.rb
 INFO manager: Registered plugin: SMB synced folders
DEBUG global: Plugin loading is currently disabled.
 INFO vagrant: `vagrant` invoked: ["--debug", "plugin", "update"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x0000000005d5b7b8>)
 INFO environment:   - cwd: E:/projects/vagrant/vm-1
 INFO environment: Home path: C:/Users/ALI/.vagrant.d
DEBUG environment: Effective local data path: 
 WARN environment: No local data path is set. Local data cannot be stored.
 INFO environment: Running hook: environment_plugins_loaded
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_plugins_loaded #<Vagrant::Action::Builder:0x0000000005f74a40>
 INFO environment: Running hook: environment_load
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_load #<Vagrant::Action::Builder:0x0000000005be85c0>
DEBUG checkpoint_client: starting plugin check
 INFO cli: CLI: [] "plugin" ["update"]
DEBUG cli: Invoking command class: VagrantPlugins::CommandPlugin::Command::Root ["update"]
DEBUG checkpoint_client: waiting for checkpoint to complete...
DEBUG checkpoint_client: plugin check complete
DEBUG checkpoint_client: no information received from checkpoint
DEBUG root: Invoking command class: VagrantPlugins::CommandPlugin::Command::Update []
 INFO loader: Loading configuration in order: [:home, :root]
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO host: Autodetecting host type for [#<Vagrant::Environment: E:/projects/vagrant/vm-1>]
DEBUG host: Trying: alt
DEBUG host: Trying: arch
DEBUG host: Trying: darwin
DEBUG host: Trying: freebsd
DEBUG host: Trying: gentoo
DEBUG host: Trying: redhat
DEBUG host: Trying: slackware
DEBUG host: Trying: suse
DEBUG host: Trying: bsd
DEBUG host: Trying: linux
DEBUG host: Trying: null
DEBUG host: Trying: windows
 INFO host: Detected: windows!
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action:  #<Vagrant::Action::Builder:0x000000000679f940>
 INFO warden: Calling IN action: #<VagrantPlugins::CommandPlugin::Action::UpdateGems:0x000000000675dc48>
 INFO interface: info: Updating installed plugins...
Updating installed plugins...
DEBUG bundler: Enabling strict dependency enforcement
DEBUG bundler: Dependency list for installation:
 - vagrant-vbguest > 0
 - bigdecimal = 1.3.0
 - builder = 3.2.3
 - childprocess = 0.6.3
 - domain_name = 0.5.20170404
 - erubis = 2.7.0
 - ffi = 1.9.18
 - gssapi = 1.2.0
 - gyoku = 1.3.1
 - hashicorp-checkpoint = 0.1.5
 - http-cookie = 1.0.3
 - httpclient = 2.8.3
 - i18n = 0.8.0
 - io-console = 0.4.6
 - json = 2.0.4
 - listen = 3.1.5
 - little-plugger = 1.1.4
 - log4r = 1.1.10
 - logging = 2.2.2
 - mime-types = 3.1
 - mime-types-data = 3.2016.0521
 - multi_json = 1.13.1
 - net-scp = 1.2.1
 - net-sftp = 2.1.2
 - net-ssh = 4.2.0
 - netrc = 0.11.0
 - nori = 2.6.0
 - openssl = 2.0.5
 - psych = 2.2.2
 - rb-fsevent = 0.10.2
 - rb-inotify = 0.9.10
 - rb-kqueue = 0.2.5
 - rdoc = 5.0.0
 - rest-client = 2.0.2
 - ruby_dep = 1.3.1
 - rubyntlm = 0.6.2
 - rubyzip = 1.2.1
 - unf = 0.1.4
 - unf_ext = 0.0.7.4
 - vagrant = 2.0.2
 - wdm = 0.1.1
 - winrm = 2.2.3
 - winrm-elevated = 1.1.0
 - winrm-fs = 1.2.0
DEBUG bundler: Enabling user defined remote RubyGems sources
DEBUG bundler: Enabling default remote RubyGems sources
DEBUG bundler: Adding source - https://rubygems.org/
DEBUG bundler: Adding source - https://gems.hashicorp.com/
ERROR bundler: Failed to load configured plugin source `#<Gem::Source:0x0000000005d31c10>`: SocketError: Failed to open TCP connection to rubygems.org:443 (Hostname not known: rubygems.org) (https://rubygems.org/specs.4.8.gz)
ERROR warden: Error occurred: Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  SocketError: Failed to open TCP connection to rubygems.org:443 (Hostname not known: rubygems.org) (https://rubygems.org/specs.4.8.gz)

Source: https://rubygems.org/
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Running hook: environment_unload
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x0000000006938518>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::Errors::PluginSourceError: Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  SocketError: Failed to open TCP connection to rubygems.org:443 (Hostname not known: rubygems.org) (https://rubygems.org/specs.4.8.gz)

Source: https://rubygems.org/>
ERROR vagrant: Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  SocketError: Failed to open TCP connection to rubygems.org:443 (Hostname not known: rubygems.org) (https://rubygems.org/specs.4.8.gz)

Source: https://rubygems.org/
ERROR vagrant: E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/bundler.rb:359:in `rescue in block in validate_configured_sources!'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/bundler.rb:350:in `block in validate_configured_sources!'
E:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.4.0/rubygems/source_list.rb:98:in `each'
E:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.4.0/rubygems/source_list.rb:98:in `each_source'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/bundler.rb:349:in `validate_configured_sources!'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/bundler.rb:285:in `internal_install'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/bundler.rb:135:in `update'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/plugin/manager.rb:118:in `update_plugins'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/plugin/action/update_gems.rb:23:in `call'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builder.rb:116:in `call'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `block in run'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/util/busy.rb:19:in `busy'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `run'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/plugin/command/base.rb:14:in `action'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/plugin/command/update.rb:23:in `execute'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/commands/plugin/command/root.rb:66:in `execute'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/cli.rb:46:in `execute'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/environment.rb:269:in `cli'
E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/bin/vagrant:151:in `<main>'
 INFO interface: error: Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  SocketError: Failed to open TCP connection to rubygems.org:443 (Hostname not known: rubygems.org) (https://rubygems.org/specs.4.8.gz)

Source: https://rubygems.org/
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  SocketError: Failed to open TCP connection to rubygems.org:443 (Hostname not known: rubygems.org) (https://rubygems.org/specs.4.8.gz)

Source: https://rubygems.org/
 INFO interface: Machine: error-exit ["Vagrant::Errors::PluginSourceError", "Vagrant failed to load a configured plugin source. This can be caused\nby a variety of issues including: transient connectivity issues, proxy\nfiltering rejecting access to a configured plugin source, or a configured\nplugin source not responding correctly. Please review the error message\nbelow to help resolve the issue:\n\n  SocketError: Failed to open TCP connection to rubygems.org:443 (Hostname not known: rubygems.org) (https://rubygems.org/specs.4.8.gz)\n\nSource: https://rubygems.org/"]

@giorgio-p
Copy link

I have the same issue. I tried it on MacOS Sierra (10.12) and MacOS High Sierra (10.13). To fix it, you have to downgrade to Vagrant 2.0.0.

@chrisroberts
Copy link
Member

The error is the result of a failed DNS lookup. Can you try setting this environment variable:

VAGRANT_DISABLE_RESOLV_REPLACE=1

and see if that makes a difference. Thanks!

@prdx
Copy link

prdx commented Mar 19, 2018

@chrisroberts I have a same problem here, I setup the environment variable but it does not work. My bad, exporting the environment variable solves the network issue. Although another error shows up

Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

conflicting dependencies nokogiri (~> 1.4.3) and nokogiri (= 1.8.2)
  Activated nokogiri-1.8.2
  which does not match conflicting dependency (~> 1.4.3)

  Conflicting dependency chains:
    nokogiri (= 1.8.2), 1.8.2 activated

  versus:
    libvirt (> 0), 0.1.0 activated, depends on
    nokogiri (~> 1.4.3)

I am looking into it.

My OS is Fedora 27

@stephenreay
Copy link

I'm seeing the same issue, and VAGRANT_DISABLE_RESOLV_REPLACE=1 does indeed 'resolve' it. Without that env var, I get a permissions error, it seems ruby is trying to read /etc/hosts (which for some reason currently has permissions of 0600)

@chrisroberts
Copy link
Member

@prdx A bit late but if you are still having problems with the dependency resolution, it's because you are installing libvirt but what you want to install is the vagrant-libvirt plugin.

Overall this issue should be resolved in the next release by #9644 so I am going to close this up. Cheers!

@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants