-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
offline bundling w/gemstash fails due to unreachable rubygems.org #133
Comments
@jm3 thanks for the detailed analysis! Based on the messages, I suspect it might be because we haven't yet implemented the bundler index, which is the newer API that Bundler now uses. I'm hoping we can fix this with the new index, and maybe even improve things a bit. |
Gotcha! Sounds like this is waiting on #72 |
Has there been any progress on this issue? Perhaps it'd be best to update the README until this is resolved? |
Any update on this issue? |
I have a similar issue. I'm using the govuk/gemstash-alpine When the internet is up, the docker container seems to be working. [2021-04-06 14:42:55 +0000] - INFO - Gem racc-1.5.2 exists, returning cached gem
[2021-04-06 14:42:55 +0000] - INFO - Gem crass-1.0.6 exists, returning cached gem But when I turn it off: Could not fetch specs from http://gemcache:9292/ due to underlying error <no
such name (http://gemcache:9292/specs.4.8.gz)>
The command '/bin/sh -c bundle install' returned a non-zero code: 17 Info: / # gemstash --version
Gemstash version 2.0.0
/ # ruby --version
ruby 2.4.6p354 (2019-04-01 revision 67394) [x86_64-linux-musl] |
Is this still an issue? Does gemstash actually work when rubygems is offline/internet disabled? It looks to me, from reading this issue and comments that it does not. Is that still right? |
This is indeed still an issue. With Gemstash version 2.2.2, I've tried fetching gems while offline and I keep having the same error message:
Everything works fine when back online. |
The instructions for verifying that gemstash caching enables offline bundling (within the 30 minute cache window) aren't working for me. When I disable internet access and then delete the
Gemfile.lock
and.bundle/
dir as suggested for testing, bundling fails since rubygems.org is unreachable:The README suggests that this should have worked because the local gemstash server should field the requests, right? Gemstash otherwise is working fine, just not offline. (I didn't wait longer than 30 minutes so the metadata should still be in cache.)
When I re-enable internet, bundling against the local gemstash works fine:
Am I forgetting / missing something?
ruby: 2.4.0, gemstash: 1.0.3
The text was updated successfully, but these errors were encountered: