breezy-agency-50844
04/13/2023, 4:18 PMor visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
error: read ".pulumi/Pulumi.yaml": blob (key ".pulumi/Pulumi.yaml") (code=Unknown): RequestError: send request failed
caused by: Get "https://<s3_bucket>/.pulumi/Pulumi.yaml": read tcp 192.168.1.45:56411->3.5.213.145:443: read: connection reset by peer
{"level":"error","@timestamp":"2023-04-13T19:52:16.998165+05:30","caller":"command/command.go:94","msg":"failed to apply this stack","error":"failed to run update: exit status 255\ncode: 255\nstdout: \nstderr: warning: A new version of Pulumi is available. To upgrade from version '3.59.1' to '3.63.0', run \n $ brew update && brew upgrade pulumi\nor visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.\nerror: read \".pulumi/Pulumi.yaml\": blob (key \".pulumi/Pulumi.yaml\") (code=Unknown): RequestError: send request failed\ncaused by: Get \"https://<s3_bucket>/.pulumi/Pulumi.yaml\": read tcp 192.168.1.45:56411->3.5.213.145:443: read: connection reset by peer\n\n"}
{"level":"error","@timestamp":"2023-04-13T19:52:16.998262+05:30","caller":"processor/infra_processor.go:221","msg":"failed to run apply"}
{"level":"error","@timestamp":"2023-04-13T19:52:16.998302+05:30","caller":"processor/infra_processor.go:199","msg":"error while modifying members in this slack channel: <slack_channel_name>, with err: failed to run update: exit status 255\ncode: 255\nstdout: \nstderr: warning: A new version of Pulumi is available. To upgrade from version '3.59.1' to '3.63.0', run \n $ brew update && brew upgrade pulumi\nor visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.\nerror: read \".pulumi/Pulumi.yaml\": blob (key \".pulumi/Pulumi.yaml\") (code=Unknown): RequestError: send request failed\ncaused by: Get \"https://<s3_bucket>/.pulumi/Pulumi.yaml\": read tcp 192.168.1.45:56411->3.5.213.145:443: read: connection reset by peer\n\n"}
though for each resources pulumi s3 bucket is different.echoing-dinner-19531
04/13/2023, 4:21 PMbreezy-agency-50844
04/13/2023, 4:21 PMechoing-dinner-19531
04/13/2023, 4:22 PMbreezy-agency-50844
04/13/2023, 4:25 PMfunc provisionResource() error {
var wg sync.WaitGroup
responseChan := make(chan error, len(allSlackChannels))
defer close(responseChan)
for _, rsc := range listOfResource {
wg.Add(1)
go func(req type, ch chan error) {
defer wg.Done()
// pulumi go sdk logic to create resource
}
ch <- err
}(slChannel, responseChan)
}
wg.Wait()
for id := 0; id < len(listOfResource); id++ {
err := <-responseChan
if err != nil {
return err
}
}
return nil
}
This is kind of pseudo code.
If I removed go routines and just run normal serial execution, it works fine.echoing-dinner-19531
04/13/2023, 4:26 PMbreezy-agency-50844
04/13/2023, 4:27 PMechoing-dinner-19531
04/13/2023, 4:29 PMbreezy-agency-50844
04/13/2023, 4:32 PMbackend.url
is getting changed everytime
Thanks for the confirmation.