Last active
August 29, 2015 14:15
-
-
Save dhempy/dfda874a03c09eff1af3 to your computer and use it in GitHub Desktop.
Gem::RemoteFetcher::UnknownHostError
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm having zero success vagrant provisioning social-service. It fails to load various | |
gems. When I ssh in and install manually, I get similar errors. It seems I'm having | |
sporadic problems reaching rubygems.org. Googling for the error suggests a network | |
connectivity problem. | |
I've reset my wifi connection, restarted the vm, destroyed the vm, and tried it all again. | |
I feel like that it's not actually a network issue...but I'm running out of ideas and | |
wasting far too much time on this. | |
Any ideas? | |
...time passes | |
I've been repeatedly running bundle install, and it seems to get farther each time. I | |
guess I'll keep hitting that until it gets everything. | |
*sigh | |
ps. I copied various apporaches and errors here: | |
...but here's the punchline: | |
Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/diff-lcs-1.2.5.gem) | |
An error occurred while installing diff-lcs (1.2.5), and Bundler cannot continue. | |
Make sure that `gem install diff-lcs -v '1.2.5'` succeeds before bundling. | |
... | |
HTTP 200 OK | |
Query List: [] | |
HTTP GET https://rubygems.org/quick/Marshal.4.8/actionmailer-4.2.0.gemspec.rz | |
HTTP 302 Moved Temporarily | |
HTTP GET https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/actionmailer-4.2.0.gemspec.rz | |
SocketError: getaddrinfo: Name or service not known | |
/usr/lib/ruby/2.1.0/net/http.rb:879:in `initialize' | |
/usr/lib/ruby/2.1.0/net/http.rb:879:in `open' | |
-------------- | |
from vagrant provision: | |
==> social-service: Mixlib::ShellOut::ShellCommandFailed | |
==> social-service: ------------------------------------ | |
==> social-service: Expected process to exit with [0], but received '2' | |
==> social-service: ---- Begin output of /usr/bin/gem install bundler -q --no-rdoc --no-ri -v "1.8.0" ---- | |
==> social-service: STDOUT: | |
==> social-service: STDERR: ERROR: Could not find a valid gem 'bundler' (= 1.8.0), here is why: | |
==> social-service: Unable to download data from https://rubygems.org/ - no such name (https://api.rubygems.org/quick/Marshal.4.8/bundler-1.8.0.gemspec.rz) | |
...another time provision hung on unicorn: | |
==> social-service: [2015-02-16T16:34:08+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
==> social-service: [2015-02-16T16:34:08+00:00] ERROR: execute[gem install unicorn] (social_service::default line 34) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2' | |
==> social-service: ---- Begin output of gem install unicorn ---- | |
==> social-service: STDOUT: | |
==> social-service: STDERR: ERROR: Could not find a valid gem 'unicorn' (>= 0), here is why: | |
==> social-service: Unable to download data from https://rubygems.org/ - no such name (https://api.rubygems.org/quick/Marshal.4.8/unicorn-4.8.3.gemspec.rz) | |
---------------------- | |
From the command line: | |
ubuntu@packer-virtualbox-iso: social-service > bundle install --verbose | |
HTTP GET https://qWCxPbCcv4jy1K4JLWL2@gem.fury.io/perceptive-cloud/api/v1/dependencies | |
HTTP 200 OK | |
HTTP GET https://bundler.rubygems.org/api/v1/dependencies | |
HTTP 200 OK | |
Fetching source index from https://gem.fury.io/perceptive-cloud/ | |
Fetching source index from https://rubygems.org/ | |
HTTP GET https://qWCxPbCcv4jy1K4JLWL2@gem.fury.io/perceptive-cloud/api/v1/dependencies | |
HTTP 200 OK | |
Fetching gem metadata from https://gem.fury.io/perceptive-cloud/ | |
Query List: ["rails", "pg", "sass-rails", "uglifier", "coffee-rails", "jquery-rails", "jbuilder", "sdoc", "swagger-ui_rails", "byebug", "web-console", "spring", "unicorn", "devise", "dotenv-rails", "awesome_print", "simplecov", "capybara", "rspec-rails", "rspec-collection_matchers", "factory_girl_rails", "database_cleaner", "rubocop", "faker", "vcr", "webmock", "cancancan", "sidekiq", "rack-cors", "omniauth-oauth2", "acts_rateable", "acts_as_commentable_with_threading", "versionist", "public_activity", "friendly_id", "non-stupid-digest-assets", "perceptive_auth", "perceptive_auth_client"] | |
Query Gemcutter Dependency Endpoint API: rails,pg,sass-rails,uglifier,coffee-rails,jquery-rails,jbuilder,sdoc,swagger-ui_rails,byebug,web-console,spring,unicorn,devise,dotenv-rails,awesome_print,simplecov,capybara,rspec-rails,rspec-collection_matchers,factory_girl_rails,database_cleaner,rubocop,faker,vcr,webmock,cancancan,sidekiq,rack-cors,omniauth-oauth2,acts_rateable,acts_as_commentable_with_threading,versionist,public_activity,friendly_id,non-stupid-digest-assets,perceptive_auth,perceptive_auth_client | |
HTTP GET https://qWCxPbCcv4jy1K4JLWL2@gem.fury.io/perceptive-cloud/api/v1/dependencies?gems=rails,pg,sass-rails,uglifier,coffee-rails,jquery-rails,jbuilder,sdoc,swagger-ui_rails,byebug,web-console,spring,unicorn,devise,dotenv-rails,awesome_print,simplecov,capybara,rspec-rails,rspec-collection_matchers,factory_girl_rails,database_cleaner,rubocop,faker,vcr,webmock,cancancan,sidekiq,rack-cors,omniauth-oauth2,acts_rateable,acts_as_commentable_with_threading,versionist,public_activity,friendly_id,non-stupid-digest-assets,perceptive_auth,perceptive_auth_client | |
HTTP 200 OK | |
Query List: ["rest-client", "json", "httparty", "omniauth", "omniauth-oauth2"] | |
Query Gemcutter Dependency Endpoint API: rest-client,json,httparty,omniauth,omniauth-oauth2 | |
HTTP GET https://qWCxPbCcv4jy1K4JLWL2@gem.fury.io/perceptive-cloud/api/v1/dependencies?gems=rest-client,json,httparty,omniauth,omniauth-oauth2 | |
HTTP 200 OK | |
Query List: [] | |
Fetching version metadata from https://gem.fury.io/perceptive-cloud/ | |
Query List: ["rest-client", "json", "httparty", "omniauth", "omniauth-oauth2"] | |
Query Gemcutter Dependency Endpoint API: rest-client,json,httparty,omniauth,omniauth-oauth2 | |
HTTP GET https://qWCxPbCcv4jy1K4JLWL2@gem.fury.io/perceptive-cloud/api/v1/dependencies?gems=rest-client,json,httparty,omniauth,omniauth-oauth2 | |
HTTP 200 OK | |
Query List: [] | |
Fetching dependency metadata from https://gem.fury.io/perceptive-cloud/ | |
Query List: ["rest-client", "json", "httparty", "omniauth", "omniauth-oauth2"] | |
Query Gemcutter Dependency Endpoint API: rest-client,json,httparty,omniauth,omniauth-oauth2 | |
HTTP GET https://qWCxPbCcv4jy1K4JLWL2@gem.fury.io/perceptive-cloud/api/v1/dependencies?gems=rest-client,json,httparty,omniauth,omniauth-oauth2 | |
HTTP 200 OK | |
Query List: [] | |
HTTP GET https://rubygems.org/quick/Marshal.4.8/actionmailer-4.2.0.gemspec.rz | |
HTTP 302 Moved Temporarily | |
HTTP GET https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/actionmailer-4.2.0.gemspec.rz | |
SocketError: getaddrinfo: Name or service not known | |
/usr/lib/ruby/2.1.0/net/http.rb:879:in `initialize' | |
/usr/lib/ruby/2.1.0/net/http.rb:879:in `open' | |
/usr/lib/ruby/2.1.0/net/http.rb:879:in `block in connect' | |
/usr/lib/ruby/2.1.0/timeout.rb:76:in `timeout' | |
/usr/lib/ruby/2.1.0/net/http.rb:878:in `connect' | |
/usr/lib/ruby/2.1.0/net/http.rb:863:in `do_start' | |
/usr/lib/ruby/2.1.0/net/http.rb:858:in `start' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/vendor/net/http/persistent.rb:700:in `start' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/vendor/net/http/persistent.rb:631:in `connection_for' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/vendor/net/http/persistent.rb:994:in `request' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/fetcher.rb:300:in `request' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/fetcher.rb:270:in `fetch' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/fetcher.rb:280:in `fetch' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/fetcher.rb:157:in `fetch_spec' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/remote_specification.rb:46:in `_remote_specification' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/remote_specification.rb:51:in `method_missing' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/spec_set.rb:148:in `tsort_each_child' | |
/usr/lib/ruby/2.1.0/tsort.rb:411:in `call' | |
/usr/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from' | |
/usr/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/spec_set.rb:144:in `block in tsort_each_node' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/spec_set.rb:144:in `each' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/spec_set.rb:144:in `tsort_each_node' | |
/usr/lib/ruby/2.1.0/tsort.rb:345:in `call' | |
/usr/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component' | |
/usr/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each' | |
/usr/lib/ruby/2.1.0/tsort.rb:175:in `tsort' | |
/usr/lib/ruby/2.1.0/tsort.rb:150:in `tsort' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/spec_set.rb:113:in `sorted' | |
/usr/lib/ruby/2.1.0/forwardable.rb:183:in `each' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/installer.rb:263:in `install_sequentially' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/installer.rb:90:in `run' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/installer.rb:18:in `install' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/cli/install.rb:80:in `run' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/cli.rb:157:in `install' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/vendor/thor/command.rb:27:in `run' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/vendor/thor.rb:363:in `dispatch' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/vendor/thor/base.rb:440:in `start' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/cli.rb:10:in `start' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/bin/bundle:20:in `block in <top (required)>' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/friendly_errors.rb:6:in `with_friendly_errors' | |
/var/lib/gems/2.1.0/gems/bundler-1.8.0/bin/bundle:18:in `<top (required)>' | |
/usr/local/bin/bundle:23:in `load' | |
/usr/local/bin/bundle:23:in `<main>' | |
Network error while fetching https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/actionmailer-4.2.0.gemspec.rz | |
ubuntu@packer-virtualbox-iso: social-service > | |
------------------------- | |
However, curl can fetch the file: | |
ubuntu@packer-virtualbox-iso: social-service > curl https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/actionmailer-4.2.0.gemspec.rz | |
x��T�n�@-(r�[$n��H�����ZT�چ������'�{��$ğ�|_·���D�DHx_lϜ3�3s\k�� | |
}9����ytd3��'� �0~�CLG4&�rv�{���=w�����ID���"� g�� �`#:�-�~B���ѐ | |
�<˹����Hi b�F�%H@ | |
�����`��=ʉP��Й��~%冕r� | |
* ���>�Ы>��c����'Ջ�����5Eq13�C����r` �x�b�ϴ��۩ڒ�xb�q�/~�X(��!c�'ͣf9�MQ0��w�) |�_V�}��*W���u�ksu%��yl��[�v�vׯ�m���_��"M�,��u;�O� | |
�k��B�nBJ��S^$jL�D���,R��?6at �ƾ�Ԏ�������?��RuS�-�$<�(�J��*�{�g-��^Ux | |
��Ţ �)aRrV9�ʗʠ�U^�ё�*�m���P��j:��`$*������mt�O��k�D)�G*���)��"Ϲ6� | |
�J�ñR9�v�өo<˙��υ�E�`;�*���Ǎf�Fubuntu@packer-virtualbox-iso: social-service > | |
------------------------- | |
from the command line, via bundle install: | |
ubuntu@packer-virtualbox-iso: social-service > bundle install | |
Fetching source index from https://gem.fury.io/perceptive-cloud/ | |
Fetching source index from https://rubygems.org/ | |
Fetching gem metadata from https://gem.fury.io/perceptive-cloud/... | |
Fetching version metadata from https://gem.fury.io/perceptive-cloud/.. | |
Fetching dependency metadata from https://gem.fury.io/perceptive-cloud/.. | |
Using rake 10.4.2 | |
Using i18n 0.7.0 | |
Using json 1.8.2 | |
Using minitest 5.5.1 | |
Using thread_safe 0.3.4 | |
Using tzinfo 1.2.2 | |
Using activesupport 4.2.0 | |
Using builder 3.2.2 | |
Using erubis 2.7.0 | |
Installing mini_portile 0.6.2 | |
Installing nokogiri 1.6.5 | |
[ ...snip... ] | |
Installing orm_adapter 0.5.0 | |
Installing responders 2.0.2 | |
Installing warden 1.2.3 | |
Installing devise 3.4.1 | |
Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/diff-lcs-1.2.5.gem) | |
An error occurred while installing diff-lcs (1.2.5), and Bundler cannot continue. | |
Make sure that `gem install diff-lcs -v '1.2.5'` succeeds before bundling. | |
ubuntu@packer-virtualbox-iso: social-service > | |
----------------------- | |
from the command line, via gem install: | |
ubuntu@packer-virtualbox-iso: social-service > gem install diff-lcs -v '1.2.5' | |
[ ..a minute or two passes... ] | |
^CERROR: Interrupted | |
----------------------- | |
from osx, it seems to work (ignore the unrelated sudo and conflict...it seems to download the gem) : | |
dhempy 👉 dhono~ | |
$ sudo gem install diff-lcs -v '1.2.5' | |
Password: | |
diff-lcs's executable "htmldiff" conflicts with /usr/bin/htmldiff | |
Overwrite the executable? [yN] n | |
ERROR: Error installing diff-lcs: | |
"htmldiff" from diff-lcs conflicts with /usr/bin/htmldiff | |
dhempy 👉 dhono~ | |
-------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment