https://pulumi.com logo
Title
t

thousands-area-40147

08/16/2022, 9:18 AM
Hej you fine people! We're using a Pulumi Webhook—created via the Pulumi Provider—to monitor activity. Everything is fine and dandy until we
pulumi refresh
. We get the following error:
pulumiservice:index:Webhook ([...]-pulumi-webhook):
    error: error reading from server: read tcp 127.0.0.1:56677->127.0.0.1:56674: wsarecv: An existing connection was forcibly closed by the remote host.

  pulumi:pulumi:Stack ([...]):
    panic: interface conversion: interface {} is nil, not resource.PropertyMap
    goroutine 98 [running]:
    <http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)|github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)>
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.37.2/go/common/resource/properties.go:431
    <http://github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*PulumiServiceWebhookResource).Diff(0x184f460|github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*PulumiServiceWebhookResource).Diff(0x184f460>?, 0xc0000c4000)
        /home/runner/work/pulumi-pulumiservice/pulumi-pulumiservice/provider/pkg/provider/webhook.go:132 +0x64b
    <http://github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*pulumiserviceProvider).Diff(0xc00058c3c0|github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*pulumiserviceProvider).Diff(0xc00058c3c0>, {0xc0001c5880?, 0x101fb55?}, 0x40?)
        /home/runner/work/pulumi-pulumiservice/pulumi-pulumiservice/provider/pkg/provider/provider.go:181 +0x74
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0x18588a8|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0x18588a8>, 0xc00068c390}, {0x1623ca0?, 0xc0000c4000})
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.37.2/proto/go/provider.pb.go:3707 +0x78
    <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x18588a8|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x18588a8>, 0xc00068c030}, {0x1623ca0, 0xc0000c4000}, 0xc000392120, 0xc0002500c0)
        /home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x3f9
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0x1654080|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0x1654080>?, 0xc00058c3c0}, {0x18588a8, 0xc00068c030}, 0xc00058c2a0, 0xc0003b2640)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.37.2/proto/go/provider.pb.go:3709 +0x138
    <http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc00031ac40|google.golang.org/grpc.(*Server).processUnaryRPC(0xc00031ac40>, {0x185e020, 0xc000684340}, 0xc000394000, 0xc0002b9fb0, 0x1e85728, 0x0)
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.47.0/server.go:1283 +0xcfe
    <http://google.golang.org/grpc.(*Server).handleStream(0xc00031ac40|google.golang.org/grpc.(*Server).handleStream(0xc00031ac40>, {0x185e020, 0xc000684340}, 0xc000394000, 0x0)
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.47.0/server.go:1620 +0xa2f
    <http://google.golang.org/grpc.(*Server).serveStreams.func1.2()|google.golang.org/grpc.(*Server).serveStreams.func1.2()>
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.47.0/server.go:922 +0x98
    created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.47.0/server.go:920 +0x28a
After this unsuccessful
refresh
, attempts to
pulumi up
then also fail:
panic: interface conversion: interface {} is nil, not resource.PropertyMap
    goroutine 13 [running]:
    <http://github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)|github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.ObjectValue(...)>
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.37.2/go/common/resource/properties.go:431
    <http://github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*PulumiServiceWebhookResource).Diff(0x184f460|github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*PulumiServiceWebhookResource).Diff(0x184f460>?, 0xc0004e2b60)
        /home/runner/work/pulumi-pulumiservice/pulumi-pulumiservice/provider/pkg/provider/webhook.go:132 +0x64b
    <http://github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*pulumiserviceProvider).Diff(0xc000106360|github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*pulumiserviceProvider).Diff(0xc000106360>, {0xc0001d7880?, 0x101fb55?}, 0x40?)
        /home/runner/work/pulumi-pulumiservice/pulumi-pulumiservice/provider/pkg/provider/provider.go:181 +0x74
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0x18588a8|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0x18588a8>, 0xc0002494d0}, {0x1623ca0?, 0xc0004e2b60})
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.37.2/proto/go/provider.pb.go:3707 +0x78
    <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x18588a8|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x18588a8>, 0xc000249110}, {0x1623ca0, 0xc0004e2b60}, 0xc000422740, 0xc000443050)
        /home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x3f9
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0x1654080|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0x1654080>?, 0xc000106360}, {0x18588a8, 0xc000249110}, 0xc000122f00, 0xc000392100)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.37.2/proto/go/provider.pb.go:3709 +0x138
    <http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc00031ac40|google.golang.org/grpc.(*Server).processUnaryRPC(0xc00031ac40>, {0x185e020, 0xc000505860}, 0xc0000d97a0, 0xc000317110, 0x1e85728, 0x0)
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.47.0/server.go:1283 +0xcfe
    <http://google.golang.org/grpc.(*Server).handleStream(0xc00031ac40|google.golang.org/grpc.(*Server).handleStream(0xc00031ac40>, {0x185e020, 0xc000505860}, 0xc0000d97a0, 0x0)
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.47.0/server.go:1620 +0xa2f
    <http://google.golang.org/grpc.(*Server).serveStreams.func1.2()|google.golang.org/grpc.(*Server).serveStreams.func1.2()>
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.47.0/server.go:922 +0x98
    created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.47.0/server.go:920 +0x28a

  pulumiservice:index:Webhook ([...]-pulumi-webhook):
    error: error reading from server: read tcp 127.0.0.1:56886->127.0.0.1:56883: wsarecv: An existing connection was forcibly closed by the remote host.
To fix the issue, we found that we have to
destroy
the stack and
up
it again—then everything is back in order. Has anybody had similar problems, is this a known issue, and how should we proceed? 😄 Thanks in advance!
b

billowy-army-68599

08/16/2022, 2:43 PM
@thousands-area-40147 could you file an issuer for that please? cc @bland-chef-60652
t

thousands-area-40147

08/16/2022, 2:44 PM
Will do 👌
b

bland-chef-60652

08/16/2022, 4:20 PM
If you could file an issue here, that would be great, thank you!
👍 1
t

thousands-area-40147

08/16/2022, 7:37 PM
b

billowy-army-68599

08/16/2022, 7:44 PM
thanks!