fancy-spoon-7206
06/27/2022, 4:19 AMUp
function.
func main() {
ctx := context.Background()
//stackName := auto.FullyQualifiedStackName("dinesh", "infrax", "test")
workDir := filepath.Join(".")
s, err := auto.UpsertStackLocalSource(ctx, "sandbox", workDir)
if err != nil {
log.Fatalln(err)
}
// -- pulumi up --
_, err = s.Up(ctx)
if err != nil {
log.Fatalln(err)
}
}
The error is about the stack being locked by another process. I am pretty sure no other process is touching the current stack. Any insights?
➜ infrax go run .
2022/06/27 00:14:15 failed to run update: exit status 255
code: 255
stdout: Updating (sandbox):
pulumi:pulumi:Stack base-infra-sandbox 2022/06/27 00:14:15 failed to create stack: exit status 255
pulumi:pulumi:Stack base-infra-sandbox code: 255
pulumi:pulumi:Stack base-infra-sandbox stdout:
pulumi:pulumi:Stack base-infra-sandbox stderr: error: could not create stack: the stack is currently locked by 1 lock(s). Either wait for the other process(es) to end or manually delete the lock file(s).
pulumi:pulumi:Stack base-infra-sandbox file:///Users/dinesh.auti/.pulumi/locks/sandbox/ae44c2ff-1d8c-4288-925e-a5302c5b9808.json: created by dinesh.auti@MacBook-Pro.local (pid 8398) at 2022-06-27T00:14:11-04:00
pulumi:pulumi:Stack base-infra-sandbox exit status 1
pulumi:pulumi:Stack base-infra-sandbox error: an unhandled error occurred: program exited with non-zero exit code: 1
pulumi:pulumi:Stack base-infra-sandbox **failed** 1 error; 6 messages
Diagnostics:
pulumi:pulumi:Stack (base-infra-sandbox):
2022/06/27 00:14:15 failed to create stack: exit status 255
code: 255
stdout:
stderr: error: could not create stack: the stack is currently locked by 1 lock(s). Either wait for the other process(es) to end or manually delete the lock file(s).
file:///Users/dinesh.auti/.pulumi/locks/sandbox/ae44c2ff-1d8c-4288-925e-a5302c5b9808.json: created by dinesh.auti@MacBook-Pro.local (pid 8398) at 2022-06-27T00:14:11-04:00
exit status 1
error: an unhandled error occurred: program exited with non-zero exit code: 1
billowy-army-68599
fancy-spoon-7206
06/27/2022, 3:54 PMbillowy-army-68599
fancy-spoon-7206
06/27/2022, 5:19 PMbillowy-army-68599