Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Network name resolution usually needs /etc/nsswitch.conf #7

@locallycompact

Description

@locallycompact

Hi, I'm using this nix docker to build other dockers in gitlab CI, but it's failing to run the servant test suite because of errors like the following:

(ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: 
AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, 
addrProtocol = 0, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>},
host name: Just "localhost", service name: Just "34263"): does not exist (Name or service not known)))

Here is the full log: https://gitlab.com/zenhaskell/infra-dockers/-/jobs/173325822

/etc/hosts looks fine to me but here it is in full

$ cat /etc/hostname
runner-ed2dce3a-project-7321855-concurrent-0
$ cat /etc/hosts
127.0.0.1        localhost
::1        localhost ip6-localhost ip6-loopback
fe00::0        ip6-localnet
ff00::0        ip6-mcastprefix
ff02::1        ip6-allnodes
ff02::2        ip6-allrouters
172.17.0.3        docker 41ed789b04a5 runner-ed2dce3a-project-7321855-concurrent-0-docker-0
172.17.0.4        runner-ed2dce3a-project-7321855-concurrent-0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions