When deploying an Pivotal Application Service job, the deploy fails and returns the following error:
Failed to start UDP listener. Err: listen udp 10.0.0.10:1234: bind: address already in use
dhclient
, the Linux process that sends Dynamic Host Configuration Protocol (DHCP) client requests, claims two UDP ports at random when a virtual machine (VM) starts. Because the Linux process selects the ports rather than Pivotal Application Service, it is possible for dhclient
to select a port that is already in use by a job in your deployment.
If dhclient
selects a port that one of your Pivotal Application Service jobs is configured to use, deploying that job fails and returns the above error.
Restart the VM that produces this error. Upon restart, the dhclient
process selects two new UDP ports.