"Could not fetch specs from https://rubygems.org/" error when starting up #17

Closed
opened 2025-11-20 04:14:57 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @ochitu on GitHub (May 12, 2021).

Hi Bret,
I'm following your Docker course on Udemy and reached the persistent storage chapter. When running this container, it tries to fetch something from rubygems.org and fails, eventually giving up after 6 retries.

Status: Downloaded newer image for bretfisher/jekyll-serve:latest
Fetching source index from https://rubygems.org/
Retrying fetcher due to error (2/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)>


Retrying fetcher due to error (3/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)>

Retrying fetcher due to error (4/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)>

Retrying fetcher due to error (5/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)>
Retrying fetcher due to error (6/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)>


Could not fetch specs from https://rubygems.org/ due to underlying error
<SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo:
Try again) (https://rubygems.org/specs.4.8.gz)>

It looks like something is blocking Ruby to call home, but it's only inside the container.
If I run curl -ivk https://rubygems.org/specs.4.8.gz, it works.
If it matters, I'm on a Mac.

Cheers!
Octav

Originally created by @ochitu on GitHub (May 12, 2021). Hi Bret, I'm following your Docker course on Udemy and reached the persistent storage chapter. When running this container, it tries to fetch something from rubygems.org and fails, eventually giving up after 6 retries. ``` Status: Downloaded newer image for bretfisher/jekyll-serve:latest Fetching source index from https://rubygems.org/ Retrying fetcher due to error (2/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)> Retrying fetcher due to error (3/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)> Retrying fetcher due to error (4/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)> Retrying fetcher due to error (5/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)> Retrying fetcher due to error (6/6): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)> Could not fetch specs from https://rubygems.org/ due to underlying error <SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Try again) (https://rubygems.org/specs.4.8.gz)> ``` It looks like something is blocking Ruby to call home, but it's only inside the container. If I run `curl -ivk https://rubygems.org/specs.4.8.gz`, it works. If it matters, I'm on a Mac. Cheers! Octav
Author
Owner

@ochitu commented on GitHub (May 13, 2021):

Please disregard. After some more digging, I traced it to a configuration in the Docker engine pertaining to my work setup.

@ochitu commented on GitHub (May 13, 2021): Please disregard. After some more digging, I traced it to a configuration in the Docker engine pertaining to my work setup.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jekyll-serve#17