Builds are failing due to timeouts to RubyGems

I have started to see build failures due to timeouts fetching gems from Ruby Gems.

The builds are full of errors like this.

       Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::FetchError Net::OpenTimeout: Net::OpenTimeout (https://rubygems.org/gems/rails-html-sanitizer-1.3.0.gem)
870       
871       Retrying download gem from https://rubygems.org/ due to error (4/4): Gem::RemoteFetcher::FetchError Net::OpenTimeout: Net::OpenTimeout (https://rubygems.org/gems/faraday-1.6.0.gem)
872       
873       Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::FetchError Net::OpenTimeout: Net::OpenTimeout (https://rubygems.org/gems/rails-html-sanitizer-1.3.0.gem)
874       
875       
876       Retrying download gem from https://rubygems.org/ due to error (4/4): Gem::RemoteFetcher::FetchError Net::OpenTimeout: Net::OpenTimeout (https://rubygems.org/gems/rails-html-sanitizer-1.3.0.gem)
877       Installing rails-html-sanitizer 1.3.0
878       Bundler::HTTPError: Could not download gem from https://rubygems.org/ due to
879       underlying error <Net::OpenTimeout: Net::OpenTimeout
880       (https://rubygems.org/gems/builder-3.2.4.gem)>

I’ve re-triggered the build a few times and I get timeouts on fetching different gems each time.

2 Likes

Been getting this too throughout the day. I noticed as well that downloading libraries (including non-gems) is taking much longer than usual. What normally takes about 5-8 mins started to take around 20 mins to download

My guess is the internet of the GitLab runners are currently slow/faulty/overloaded. This is causing issues with properly downloading certain libraries and gems which is what’s causing the gem timeout issue

@gablooblue yes, there has been an outage in progress since at least yesterday: https://status.gitlab.com/ shows the current status of this. It could be because of this.

2 Likes