Skip to content

Error 502 because dial tcp: lookup gitlab.example.com on [::1]:53: read udp [::1]:34251-\u003e[::1]:53: read: connection refused

I have a Problem very similar to #585 (closed) with the same new Gitlab 14.0.1-ce.0 which runs inside of a podman container. Unfortunately the bindmount workaround @ginkel has described is not described completely.

It turns out that I have to copy the following files to /var/opt/gitlab/gitlab-rails/shared/pages:

  • /etc/resolv.conf
  • /etc/hosts
  • /etc/nsswitch.conf
  • /etc/ssl/certs/*

I am not sure yet why those files are missing, they need to be added and updated somehow permanently. Which means a Patch will be needed.


Also, when looking at that chroot mechanism I wonder how it is prevented that for example @etc is placing an alternate /etc/ssl/certs on his pages overwriting the ones on the server. I would have expected a nested structure like so:

  • /etc
    • /etc/resolv.conf
  • /pages
    • /pages/some_userpage
    • /pages/another_userpage

not a flat layout as it currently is one:

  • /etc
    • /etc/resolv.conf
  • /some_userpage
  • /another_userpage
Edited by Fnordpol