Skip to content

Instantly share code, notes, and snippets.

@amfarrell
Last active November 29, 2015 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amfarrell/2878d416412b7cd10dc2 to your computer and use it in GitHub Desktop.
Save amfarrell/2878d416412b7cd10dc2 to your computer and use it in GitHub Desktop.
connection refused error installing vagrant-aws from vagrant
afarrell@carn-carby:~/projects/saltmarsh$ vagrant -v
Vagrant 1.7.4
afarrell@carn-carby:~/projects/saltmarsh$ gem -v
2.0.14
afarrell@carn-carby:~/projects/saltmarsh$ vagrant plugin install vagrant-aws
Installing the 'vagrant-aws' plugin. This can take a few minutes...
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:
An error occurred while installing CFPropertyList (2.3.2), and Bundler cannot continue.
Make sure that `gem install CFPropertyList -v '2.3.2'` succeeds before bundling.
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.Gem::RemoteFetcher::FetchError: Errno::ECONNREFUSED: Connection refused - connect(2) (https://rubygems.org/gems/CFPropertyList-2.3.2.gem)
afarrell@carn-carby:~/projects/saltmarsh$ gem install CFPropertyList -v '2.3.2'
ERROR: Could not find a valid gem 'CFPropertyList' (= 2.3.2), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Connection refused - connect(2) (https://rubygems.org/specs.4.8.gz)
afarrell@carn-carby:~/projects/saltmarsh$ gem install rack-test
ERROR: Could not find a valid gem 'rack-test' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Connection refused - connect(2) (https://rubygems.org/latest_specs.4.8.gz)
afarrell@carn-carby:~/projects/saltmarsh$ gem install rack-test
ERROR: Could not find a valid gem 'rack-test' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ENETUNREACH: Network is unreachable - connect(2) (https://rubygems.org/latest_specs.4.8.gz)
afarrell@carn-carby:~/projects/saltmarsh$ gem install CFPropertyList -v '2.3.2'
ERROR: Could not find a valid gem 'CFPropertyList' (= 2.3.2), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Connection refused - connect(2) (https://rubygems.org/specs.4.8.gz)
# After waiting about an hour...
afarrell@carn-carby:~/projects/saltmarsh$ sudo gem install CFPropertyList -v '2.3.2'
Password:
Fetching: CFPropertyList-2.3.2.gem (100%)
Successfully installed CFPropertyList-2.3.2
Parsing documentation for CFPropertyList-2.3.2
Installing ri documentation for CFPropertyList-2.3.2
1 gem installed
afarrell@carn-carby:~/projects/saltmarsh$ vagrant plugin install vagrant-aws
Installing the 'vagrant-aws' plugin. This can take a few minutes...
Installed the plugin 'vagrant-aws (0.6.0)'!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment