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

Gem::RemoteFetcher::FetchError #1184

Closed
JuanitoFatas opened this issue Jan 28, 2016 · 1 comment
Closed

Gem::RemoteFetcher::FetchError #1184

JuanitoFatas opened this issue Jan 28, 2016 · 1 comment

Comments

@JuanitoFatas
Copy link
Contributor

Bundler resolved https://rubygems.org/gems/web-console to 3.1.0, which does not exist anymore and cause this error.

Error Log:

$ bundle
...
Gem::RemoteFetcher::FetchError: bad response Not Found 404 (https://rubygems.global.ssl.fastly.net/gems/web-console-3.1.0.gem)
An error occurred while installing web-console (3.1.0), and Bundler cannot continue.
Make sure that `gem install web-console -v '3.1.0'` succeeds before bundling.
$ gem install web-console -v '3.1.0'
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    bad response Not Found 404 (https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/web-console-3.1.0.gemspec.rz)

verbose gem install:

$ gem install -V web-console -v '3.1.0'
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=web-console
200 OK
Getting SRV record failed: DNS result has no information for _rubygems._tcp.api.rubygems.org
GET https://api.rubygems.org/quick/Marshal.4.8/web-console-3.1.0.gemspec.rz
302 Moved Temporarily
GET https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/web-console-3.1.0.gemspec.rz
404 Not Found
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    bad response Not Found 404 (https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/web-console-3.1.0.gemspec.rz)

curl -i *.gemspec.rz:

$ curl -i https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/web-console-3.1.0.gemspec.rz
HTTP/1.1 404 Not Found
x-amz-request-id: 4DB59582BABE7283
x-amz-id-2: ehq1F/va54ocynO2iqoO3lsq+UeiSjO+xFrcNaCZ11zildBpMyeSHQu71Gt0TBQPj3HVaOj4P8I=
x-amz-version-id: .K0u7AH5Z9ukJIgtX9JdqpxFftRmO.xa
x-amz-delete-marker: true
Content-Type: application/xml
Server: AmazonS3
Via: 1.1 varnish
Fastly-Debug-Digest: fdd45f431d2fcd202d7880a5688a7621adc2c6f1a355fac35ea52da65d508422
Content-Length: 317
Accept-Ranges: bytes
Date: Thu, 28 Jan 2016 09:58:48 GMT
Via: 1.1 varnish
Age: 23
Connection: keep-alive
X-Served-By: cache-iad2122-IAD, cache-hkg6823-HKG
X-Cache: MISS, HIT
X-Cache-Hits: 0, 1

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>quick/Marshal.4.8/web-console-3.1.0.gemspec.rz</Key><RequestId>4DB59582BABE7283</RequestId><HostId>ehq1F/va54ocynO2iqoO3lsq+UeiSjO+xFrcNaCZ11zildBpMyeSHQu71Gt0TBQPj3HVaOj4P8I=</HostId></Error>

curl -i *.gem:

$ curl -i https://rubygems.global.ssl.fastly.net/gems/web-console-3.1.0.gem

HTTP/1.1 404 Not Found
x-amz-request-id: 820B24F7BCFFCC3F
x-amz-id-2: Q91/yNOee9uBx2PoD8XPBeoKuj1oQPvnzZf7WFyNL8hWvaJJO/XpIk2jDyVLPtWY
x-amz-version-id: uHbVYfzs1tz.P9SYw.sC.lucyohY0wW5
x-amz-delete-marker: true
Content-Type: application/xml
Server: AmazonS3
Via: 1.1 varnish
Fastly-Debug-Digest: da22f7656969923902267d8ef18259e735f0e723166dac2aee12170a4732b1b6
Content-Length: 285
Accept-Ranges: bytes
Date: Thu, 28 Jan 2016 09:57:21 GMT
Via: 1.1 varnish
Age: 144
Connection: keep-alive
X-Served-By: cache-iad2146-IAD, cache-hkg6820-HKG
X-Cache: MISS, HIT
X-Cache-Hits: 0, 1

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>gems/web-console-3.1.0.gem</Key><RequestId>820B24F7BCFFCC3F</RequestId><HostId>Q91/yNOee9uBx2PoD8XPBeoKuj1oQPvnzZf7WFyNL8hWvaJJO/XpIk2jDyVLPtWY</HostId></Error>

My gem env:

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.5.1
  - RUBY VERSION: 2.3.0 (2015-12-25 patchlevel 0) [x86_64-darwin14]
  - INSTALLATION DIRECTORY: /Users/Juan/.gem/ruby/2.3.0
  - USER INSTALLATION DIRECTORY: /Users/Juan/.gem/ruby/2.3.0
  - RUBY EXECUTABLE: /Users/Juan/.rubies/ruby-2.3.0/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/Juan/.gem/ruby/2.3.0/bin
  - SPEC CACHE DIRECTORY: /Users/Juan/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/Juan/.rubies/ruby-2.3.0/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-14
  - GEM PATHS:
     - /Users/Juan/.gem/ruby/2.3.0
     - /Users/Juan/.rubies/ruby-2.3.0/lib/ruby/gems/2.3.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-document"
     - "gemrc" => "--env-shebag"
  - REMOTE SOURCES:
     - https://rubygems.org/

If you want to try to reproduce this, I prepare a repo.

Please take a look, thank you.

@JuanitoFatas
Copy link
Contributor Author

Bundler resolved to a non-existing (or removed version), close this. Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant