# general


04/08/2020, 3:01 PM
hi, i've hit this a couple times now, I'm not sure what the cause is. Last time this happened, i was never able to refresh my stack, but I was able to update it and then it went away - Go panic on a refresh
Copy code
pulumi:pulumi:Stack (                                                                     
    panic: fatal: A failure has occurred: Unexpected multiple elements in array with MaxItems=1                                        
    goroutine 169 [running]:
    <|>, 0x35, 0x0, 0x0, 0x0)                                          
        /home/travis/gopath/pkg/mod/ +0x181   
    <|>, 0xc000667f60, 0xc0008b32c0, 0x0, 0x0, 0x100, 0x6, 0xc000503256)
        /home/travis/gopath/pkg/mod/ +0x51f                  
    <|>, 0xc000667f60, 0xc0008b32c0, 0x0, 0x0, 0xc000500100, 0x6, 0xc0008b32c0)
        /home/travis/gopath/pkg/mod/ +0x7d                  
    <|>, 0xc000883ad0, 0x0, 0x0, 0xc000fc0100, 0xc000667980)
        /home/travis/gopath/pkg/mod/ +0x176
    <|>, 0xc00146cf90, 0xc0008b3400, 0x0, 0x0, 0x100, 0x20, 0x4dd6fe0)
        /home/travis/gopath/pkg/mod/ +0xc33                  
    <|>, 0xc00146cf90, 0xc0008b3400, 0x0, 0x0, 0xc000a80100, 0x0, 0x1)
        /home/travis/gopath/pkg/mod/ +0x7d                  
    <|>, 0xc000667700, 0xc0008b3400, 0x0, 0x0, 0x100, 0xa, 0xc000502d80)
        /home/travis/gopath/pkg/mod/ +0x3e3
    <|>, 0xc000667700, 0xc0008b3400, 0x0, 0x0, 0xc000500100, 0xa, 0xc0008b3400)
        /home/travis/gopath/pkg/mod/ +0x7d                   
    <|>, 0xc000883770, 0x0, 0x0, 0xc000fc0100, 0x0)
        /home/travis/gopath/pkg/mod/ +0x176                 
    <|>, 0xc000883770, 0x0, 0x0, 0x1, 0x0, 0xc000a09800, 0x177)
        /home/travis/gopath/pkg/mod/ +0x492
    <*Provider).Read(0xc000513080|*Provider).Read(0xc000513080>, 0x66e09c0, 0xc000f4cc60, 0xc000c2d9f0, 0xc000513080, 0x50f9101, 0xc000d67580)
        /home/travis/gopath/pkg/mod/ +0x785
    <|>, 0xc000f4cc60, 0x5a17ac0, 0xc000c2d9f0, 0x5ae90a0, 0xa3488a0, 0x66e09c0, 0xc000f4cc60)
        /home/travis/gopath/pkg/mod/ +0x86                             
    <|>, 0xc000f4c1e0, 0x5a17ac0, 0xc000c2d9f0, 0xc000e91300, 0xc000e91320, 0x0, 0x0, 0x662ae60, 0xc000086410)
        /home/travis/gopath/pkg/mod/ +0x2f9
    <|>, 0xc000513080, 0x66e09c0, 0xc000f4c1e0, 0xc000944960, 0xc0000cdd40, 0x66e09c0, 0xc000f4c1e0, 0xc000f30800, 0x726)
        /home/travis/gopath/pkg/mod/ +0x14b                           
    <*Server).processUnaryRPC(0xc0008d4680|*Server).processUnaryRPC(0xc0008d4680>, 0x6704860, 0xc00048f380, 0xc000d57500, 0xc0008831a0, 0xa31aae0, 0x0, 0x0, 0x0)
        /home/travis/gopath/pkg/mod/ +0x4fd
    <*Server).handleStream(0xc0008d4680|*Server).handleStream(0xc0008d4680>, 0x6704860, 0xc00048f380, 0xc000d57500, 0x0)
        /home/travis/gopath/pkg/mod/ +0xd23
    <*Server).serveStreams.func1.1(0xc0000d60a0|*Server).serveStreams.func1.1(0xc0000d60a0>, 0xc0008d4680, 0x6704860, 0xc00048f380, 0xc000d57500)
        /home/travis/gopath/pkg/mod/ +0xbb
    created by <*Server).serveStreams.func1|*Server).serveStreams.func1>
        /home/travis/gopath/pkg/mod/ +0xa1
    error: preview failed
  aws:applicationloadbalancing:LoadBalancer (mycompany-us-east-1-dev-alb-main):
    error: Preview failed: transport is closing
this is on a
of a deployed stack
Copy code
root@a4eb27ebf10d:/data# pulumi version

root@a4eb27ebf10d:/data# pulumi plugin ls
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


04/08/2020, 3:22 PM
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.


04/08/2020, 6:18 PM
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
it ok, but not
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: [
it complained that the list is only 1 value
i updated it, but after that I think is when it started