Skip to content

Toolkit: DNS lookup can fail #787

Closed
@rix0rrr

Description

@rix0rrr

Reported by @ygoodmn:

CDK 0.9.2 on Ubuntu VM : running cdk deploy get disconnections, is there some retry. Seen this a few times

(node:19925) UnhandledPromiseRejectionWarning: Error: getaddrinfo EAI_AGAIN cloudformation.us-west-1.amazonaws.com:443
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
(node:19925) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:19925) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
❌ Deployment of stack cdk-sms104-WAF failed: NetworkingError: getaddrinfo EAI_AGAIN cloudformation.us-west-1.amazonaws.com:443
getaddrinfo EAI_AGAIN cloudformation.us-west-1.amazonaws.com:443

Happens DURING stack monitoring.

  • Why is DNS lookup constantly happening? Don't we reuse the CFN client?

As per this thread:

EAI_AGAIN means the DNS server replied that it cannot currently fulfill the request. (If you want the hairy details, the RCODE field in the response is set to 2, SERVFAIL.)

Activity

rix0rrr

rix0rrr commented on Sep 27, 2018

@rix0rrr
ContributorAuthor

This will be a hard one to debug. We are instantiating some new CloudFormation clients, but the monitor in particular reuses the same client used to start the update, so that can't be it.

added a commit that references this issue on Sep 27, 2018
842527a
added a commit that references this issue on Sep 28, 2018
88b599d
added a commit that references this issue on Oct 10, 2018
added 3 commits that reference this issue on Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @rix0rrr

      Issue actions

        Toolkit: DNS lookup can fail · Issue #787 · aws/aws-cdk