IPv6 bind: cannot assign requested address on some shared runners gitlab-org-docker
Acceptance tests in GitLab Pages use hardcoded addresses with ports, including IPv6 addresses.
We started seeing lots of job failures about 4 weeks ago with the common denominator being the following error
error="listen tcp [::1]:37000: bind: cannot assign requested address"
Sample jobs:
- With hardcoded port https://gitlab.com/gitlab-org/gitlab-pages/-/jobs/914925968, https://gitlab.com/gitlab-org/gitlab-pages/-/jobs/912690661
- With randomly generated port https://gitlab.com/gitlab-org/gitlab-pages/-/jobs/944099329
IPv6 is not enabled by default by Docker so it's possible that some runner's configuration is missing this flag. https://docs.docker.com/config/daemon/ipv6/
I have added the ip -brief a
command to some jobs per https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/12258#note_479576704
[32;1m$ ip -brief a[0;m
lo UNKNOWN 127.0.0.1/8
eth0@if52 UP 172.17.0.3/16
[32;1m$ ip -brief a[0;m
lo UNKNOWN 127.0.0.1/8 ::1/128
eth0@if21 UP 172.17.0.3/16 fc00::242:ac11:3/7 fe80::42:acff:fe11:3/64
Related to gitlab-org/gitlab-pages#524 (closed)
Edited by Jaime Martinez