What you see
Could not fetch specs from https://rubygems.org/ due to underlying error <Bundler::HTTPError: Net::OpenTimeout>Common causes
- Timeouts reaching rubygems.org from the runner.
- Old OpenSSL or CA certificates in custom images.
- Proxies or firewalls blocking index.rubygems.org.
How to fix it
- 01
Read the underlying error
Run Bundler with verbose output to see which request failed.
shell bundle install --verbose - 02
Retry
Bundler can retry network requests.
shell bundle config set --global retry 5 - 03
Use a mirror in your region
A mirror setting keeps Gemfile.lock unchanged.
shell bundle config set --global mirror.https://rubygems.org https://acme.cacheport.cc/gems/