1

Topic: DNS Lookup Error

While deploying to a server using the Controller, the generate failed because a DNS lookup to find the local machine fails.

This occurred on a Mac Pro running OSX Leopard 10.6.

Here's the error in the log file.

generate:
     [echo] Generating pages, images, etc.
     [exec] could not lookup DNS configuration info service: (ipc/send) invalid destination port
     [exec] curl: (6) Couldn't resolve host 'harrier'
     [exec] could not lookup DNS configuration info service: (ipc/send) invalid destination port
     [exec] curl: (6) Couldn't resolve host 'harrier'
     [exec]
     [exec] OK
     [exec] could not lookup DNS configuration info service: (ipc/send) invalid destination port
     [exec] curl: (6) Couldn't resolve host 'harrier'

Doing a search through Google, it appears this strange error may be related to the combination of OSX/Hudson/VmWare (see http://everybodyfrolic.org/post/2572256 … -os-x-10-6). On this machine though I had VirtualBox installed rather than VMWare, so the proposed solution did not work.

In any case, the problem appears to be caused when Hudson runs an external script, which then tries to do a DNS lookup, which fails for some reason related to the Virtual Machine running.

The simple solution is to change the configuration so that the controller does not need to do a DNS lookup. Specifically, replace the hostname in /Controller/setParams to be an IP address rather than a host name. For example:

export TTC_DEPLOY=/Controller
#export TTC_HOST=harrier
export TTC_HOST=10.1.1.154
export TTC_PORT=8888