Bundler and IPv6
During routine system update on client machine, bundle update
just hanged, nothing was happening. Process table did not show anything interesting:
Good old strace revealed that bundler is trying to connect using IPv6 and nothing is happening:
“Easy” and blunt way to solve is temporary disable IPv6, but it was interesting to find the root for such behavior. Googling bundler IPv6 lead to this stack overflow answer, there more elegant solution was proposed. Still, it is strange that such important peace of Ruby infrastructure is misbehaving for a long time (I experienced this issue about month ago and today again), and there is not much fuss about this. Maybe this happens only in some random corner cases, who knows.