Promise leak when failing to connect to docker daemon
Opened this issue · 0 comments
t0yv0 commented
What happened?
When trying out tc-ec-simple example without a docker daemon setup properly, I get a spurious error about a promise leak.
Example
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
const repository = new awsx.ecr.Repository("repository", { forceDelete: true });
export const image = new awsx.ecr.Image("image", {
repositoryUrl: repository.repository.repositoryUrl,
context: "./app",
}).imageUri;
Previewing update (dev1)
View in Browser (Ctrl+O): https://app.pulumi.com/anton-pulumi-corp/ecr/dev1/previews/a1873f6a-a5f2-48d9-8932-ca70872545ec
Type Name Plan Info
pulumi:pulumi:Stack ecr-dev1 9 messages
└─ docker:index:Image f8fd5a8b-container 1 error
Diagnostics:
pulumi:pulumi:Stack (ecr-dev1):
The Pulumi runtime detected that 50 promises were still active
at the time that the process exited. There are a few ways that this can occur:
* Not using `await` or `.then` on a Promise returned from a Pulumi API
* Introducing a cyclic dependency between two Pulumi Resources
* A bug in the Pulumi Runtime
Leaving promises active is probably not what you want. If you are unsure about
why you are seeing this message, re-run your program with the `PULUMI_DEBUG_PROMISE_LEAKS` environment variable. The Pulumi runtime will then print out additional
debug information about the leaked promises.
docker:index:Image (f8fd5a8b-container):
error: Docker native provider returned an unexpected error from Configure: failed to connect to any docker daemon
Output of pulumi about
CLI
Version 3.130.0
Go Version go1.22.6
Go Compiler gc
Plugins
KIND NAME VERSION
resource aws 6.57.0
resource awsx 2.16.1
resource docker 4.5.7
resource docker 3.6.1
language nodejs unknown
Host
OS darwin
Version 14.6.1
Arch arm64
This project is written in nodejs: executable='/Users/anton/bin/node' version='v18.18.2'
Current Stack: anton-pulumi-corp/ecr/dev1
TYPE URN
pulumi:pulumi:Stack urn:pulumi:dev1::ecr::pulumi:pulumi:Stack::ecr-dev1
pulumi:providers:awsx urn:pulumi:dev1::ecr::pulumi:providers:awsx::default_2_16_1
awsx:ecr:Repository urn:pulumi:dev1::ecr::awsx:ecr:Repository::repository
pulumi:providers:aws urn:pulumi:dev1::ecr::pulumi:providers:aws::default_6_47_0
aws:ecr/repository:Repository urn:pulumi:dev1::ecr::awsx:ecr:Repository$aws:ecr/repository:Repository::repository
aws:ecr/lifecyclePolicy:LifecyclePolicy urn:pulumi:dev1::ecr::awsx:ecr:Repository$aws:ecr/lifecyclePolicy:LifecyclePolicy::repository
pulumi:providers:pulumi urn:pulumi:dev1::ecr::pulumi:providers:pulumi::default
awsx:ecr:Image urn:pulumi:dev1::ecr::awsx:ecr:Image::image
pulumi:providers:docker urn:pulumi:dev1::ecr::pulumi:providers:docker::default_4_5_1
Found no pending operations associated with dev1
Backend
Name pulumi.com
URL https://app.pulumi.com/anton-pulumi-corp
User anton-pulumi-corp
Organizations anton-pulumi-corp, moolumi, demo, pulumi
Token type personal
Dependencies:
NAME VERSION
@types/node 18.19.64
@pulumi/aws 6.57.0
@pulumi/pulumi 3.137.0
Pulumi locates its logs in /var/folders/gd/3ncjb1lj5ljgk8xl5ssn_gvc0000gn/T/com.apple.shortcuts.mac-helper// by default
Additional context
N/A
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).