This message was deleted.
# general
s
This message was deleted.
b
Copy code
pulumi:pulumi:Stack (mycompany-alb-mycompany-alb.us-east-1.dev):                                                                     
    panic: fatal: A failure has occurred: Unexpected multiple elements in array with MaxItems=1                                        
    goroutine 169 [running]:
    github.com/pulumi/pulumi/sdk/go/common/util/contract.failfast(...)                                                
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi/sdk@v1.13.1/go/common/util/contract/failfast.go:23                        
    github.com/pulumi/pulumi/sdk/go/common/util/contract.Failf(0x5d8198e, 0x35, 0x0, 0x0, 0x0)                                          
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi/sdk@v1.13.1/go/common/util/contract/fail.go:30 +0x181   
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.MakeTerraformOutput.func1(0x49c5980, 0xc000667f60, 0xc0008b32c0, 0x0, 0x0, 0x100, 0x6, 0xc000503256)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/schema.go:695 +0x51f                  
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.MakeTerraformOutput(0x49c5980, 0xc000667f60, 0xc0008b32c0, 0x0, 0x0, 0xc000500100, 0x6, 0xc0008b32c0)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/schema.go:723 +0x7d                  
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.MakeTerraformOutputs(0xc000fc4be8, 0xc000883ad0, 0x0, 0x0, 0xc000fc0100, 0xc000667980)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/schema.go:589 +0x176
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.MakeTerraformOutput.func1(0x4f87060, 0xc00146cf90, 0xc0008b3400, 0x0, 0x0, 0x100, 0x20, 0x4dd6fe0)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/schema.go:715 +0xc33                  
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.MakeTerraformOutput(0x4f87060, 0xc00146cf90, 0xc0008b3400, 0x0, 0x0, 0xc000a80100, 0x0, 0x1)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/schema.go:723 +0x7d                  
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.MakeTerraformOutput.func1(0x5b2c180, 0xc000667700, 0xc0008b3400, 0x0, 0x0, 0x100, 0xa, 0xc000502d80)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/schema.go:684 +0x3e3
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.MakeTerraformOutput(0x5b2c180, 0xc000667700, 0xc0008b3400, 0x0, 0x0, 0xc000500100, 0xa, 0xc0008b3400)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/schema.go:723 +0x7d                   
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.MakeTerraformOutputs(0xc000fc5368, 0xc000883770, 0x0, 0x0, 0xc000fc0100, 0x0)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/schema.go:589 +0x176                 
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.MakeTerraformResult(0xc001318dc0, 0xc000883770, 0x0, 0x0, 0x1, 0x0, 0xc000a09800, 0x177)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/schema.go:564 +0x492
    github.com/pulumi/pulumi-terraform-bridge/pkg/tfbridge.(*Provider).Read(0xc000513080, 0x66e09c0, 0xc000f4cc60, 0xc000c2d9f0, 0xc000513080, 0x50f9101, 0xc000d67580)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi-terraform-bridge@v1.8.4/pkg/tfbridge/provider.go:749 +0x785
    github.com/pulumi/pulumi/sdk/proto/go._ResourceProvider_Read_Handler.func1(0x66e09c0, 0xc000f4cc60, 0x5a17ac0, 0xc000c2d9f0, 0x5ae90a0, 0xa3488a0, 0x66e09c0, 0xc000f4cc60)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi/sdk@v1.13.1/proto/go/provider.pb.go:1902 +0x86                             
    github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x66e09c0, 0xc000f4c1e0, 0x5a17ac0, 0xc000c2d9f0, 0xc000e91300, 0xc000e91320, 0x0, 0x0, 0x662ae60, 0xc000086410)
        /home/travis/gopath/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x2f9
    github.com/pulumi/pulumi/sdk/proto/go._ResourceProvider_Read_Handler(0x5bb0e40, 0xc000513080, 0x66e09c0, 0xc000f4c1e0, 0xc000944960, 0xc0000cdd40, 0x66e09c0, 0xc000f4c1e0, 0xc000f30800, 0x726)
        /home/travis/gopath/pkg/mod/github.com/pulumi/pulumi/sdk@v1.13.1/proto/go/provider.pb.go:1904 +0x14b                           
    google.golang.org/grpc.(*Server).processUnaryRPC(0xc0008d4680, 0x6704860, 0xc00048f380, 0xc000d57500, 0xc0008831a0, 0xa31aae0, 0x0, 0x0, 0x0)
        /home/travis/gopath/pkg/mod/google.golang.org/grpc@v1.28.0/server.go:1082 +0x4fd
    google.golang.org/grpc.(*Server).handleStream(0xc0008d4680, 0x6704860, 0xc00048f380, 0xc000d57500, 0x0)
        /home/travis/gopath/pkg/mod/google.golang.org/grpc@v1.28.0/server.go:1405 +0xd23
    google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc0000d60a0, 0xc0008d4680, 0x6704860, 0xc00048f380, 0xc000d57500)
        /home/travis/gopath/pkg/mod/google.golang.org/grpc@v1.28.0/server.go:746 +0xbb
    created by google.golang.org/grpc.(*Server).serveStreams.func1
        /home/travis/gopath/pkg/mod/google.golang.org/grpc@v1.28.0/server.go:744 +0xa1
  
    error: preview failed
  
  aws:applicationloadbalancing:LoadBalancer (mycompany-us-east-1-dev-alb-main):
    error: Preview failed: transport is closing
this is on a
refresh
of a deployed stack
Copy code
root@a4eb27ebf10d:/data# pulumi version
v1.14.0

root@a4eb27ebf10d:/data# pulumi plugin ls
NAME  KIND      VERSION  SIZE    INSTALLED  LAST USED
aws   resource  1.29.0   228 MB  n/a        5 days ago
I see this error:
Copy code
panic: fatal: A failure has occurred: Unexpected multiple elements in array with MaxItems=1                                        
    goroutine 169 [running]:
but since its a refresh, i would assume this panic is happening as it is reading state, not anything my code did.. so perhaps either it's allowing me to upload an invalid config to the statefile, or there is a discrepancy in the validity of some fields.. either way, it would be nice to see a bit more info on the field in question
w
Do you have any idea what resource is triggering this? If you run with
--logtostderr -v=9
you should get some insight into what resource was being refreshed when this panic occurred. If you can identify a resource, it would be great to open a GitHub issue to track so we can look into it.
b
it's in an ALB stack, so its ALB, listeners, target groups..
let me try again with the verbose enabled
super ton of info.. I can't tell where error is
can I DM to you?
actually im not sure how to capture the whole log to a file, looks like when I do
pulumi refresh --logtostderr -v=9 > /tmp/out
it's only part of the log
seems to just be this one stack.. I can
update
it ok, but not
refresh
i think i may know what it is.. one time I updated the listener rule to have 2 host headers in it like this:
Copy code
conditions: [{
            hostHeader: {
                values: [
                    `${group}-service.alb.internal.dns`,
                    'another.hostname'
                ]
            }
        }],
it complained that the list is only 1 value
i updated it, but after that I think is when it started