Search code examples
taco

remotebuild test failing with ENOTFOUND


After installing remotebuild (and checking dependencies), I tried a

remotebuild test.

It fails with a

Error: getaddrinfo ENOTFOUND
at errnoException (dns.js:37:11)
at Object.onanswer [as oncomplete] (dns.js:124:16)

Any ideas if I'm missing something?


Solution

  • Does your mac have an incorrect hostname? If you open up node and run os.hostname() does that give a name which corresponds to the machine? If you do not explicitly specify a hostname in the options, then we try and use os.hostname() as "the name the rest of the network thinks I am" for generating HTTPS certificates and for running the self test. Sometimes macs pick the wrong name or the DNS entry gets changed so it no longer refers to the correct machine, and that may cause this error.

    If that is the case, you can run remotebuild --hostname="correct.example.com" saveconfig to generate a configuration file with the manually-corrected hostname (or IP address) and try re-running the test. You may need to run remotebuild certificates reset after changing the hostname configuration because the hostname is part of the certificates.