Google OAuth 無法使用:因 IPv6 無法存取而導致的有趣錯誤

简要说明:

服务器有 IPv6 地址,但无法 ping ipv6.google.com

来自 Discourse 日志:

认证超时,这非常奇怪。

我决定升级版本,以防是之前的服务器迁移导致的。然后在执行以下操作时出现此错误

bundle install && pnpm i && bundle exec rake db:migrate  && bundle exec rake themes:update assets:precompile && pumactl restart
Fetching source index from https://rubygems.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <Gem::Net::OpenTimeout: Failed to open TCP connection to rubygems.org:443 (execution expired) (https://rubygems.org/specs.4.8.gz)>

Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <Gem::Net::OpenTimeout: Failed to open TCP connection to rubygems.org:443 (execution expired) (https://rubygems.org/specs.4.8.gz)>
bundle install  42.42s user 0.98s system 23% cpu 3:03.49 total
root has logged off pts/3 from tmux(187561).       

然后我 ping rubygems.org,发现 IPv6 地址不可达。

:thinking: 一般我只见过 v4 不行,v6 行的。

1個讚