https://pulumi.com logo
#getting-started
Title
# getting-started
g

gray-state-1017

04/22/2022, 11:56 AM
I everybody! I have a simple question: I run a pulumi up with tho big charts: the cli is running for more than half an hour now and I would like to do something like a pulumi destroy. I tried logging in with another client and it says I should delete the lock. Is there an easier/faster way to proceed in such cases?
b

billowy-army-68599

04/22/2022, 12:03 PM
what is big charts?
you can remove the lock with
pulumi cancel
g

gray-state-1017

04/22/2022, 12:13 PM
Is it safe to run pulumi cancel and then pulumi destroy?
b

billowy-army-68599

04/22/2022, 12:23 PM
@gray-state-1017 yes that should be safe, I replied on your stackoverflow questions as well in more depth
g

gray-state-1017

04/22/2022, 12:31 PM
I did not quite get what is the overall sequence of commands you would suggest. I already tried a ctr+c once and it left all the resources spread in the cluster which I would like to avoid. What is your suggestion?
b

billowy-army-68599

04/22/2022, 12:32 PM
ctrl+c will simply stop the operation. you'll need to run
pulumi destroy
after that
are you saying you'd like to interrupt the running process and have it automatically clean up after you?
g

gray-state-1017

04/22/2022, 12:33 PM
yes
b

billowy-army-68599

04/22/2022, 12:34 PM
that isn't possible, and I'm not aware of any tool that can do that. You could possibly achieve it by creating your own solution with Automation API
g

gray-state-1017

04/22/2022, 12:35 PM
Ok, and what is that goes nearest to that? ctrl+c and pulumi destroy? or pulumi cancel?
b

billowy-army-68599

04/22/2022, 12:35 PM
ctrl+c and pulumi destroy is pretty much the same as pulumi cancel and pulumi destroy
1
g

gray-state-1017

04/22/2022, 12:38 PM
thank you very much for your help!
b

billowy-army-68599

04/22/2022, 12:38 PM
my pleasure! let us know any of other ways we can help
g

gray-state-1017

04/22/2022, 12:39 PM
btw the pulumi cancel does not destroy the lock
If you think I could get my question better on stack overflow, I would be happy to help other people too
b

billowy-army-68599

04/22/2022, 12:40 PM
are you running it from the same directory as your program?
g

gray-state-1017

04/22/2022, 12:41 PM
yes
b

billowy-army-68599

04/22/2022, 12:41 PM
what does it return?
g

gray-state-1017

04/22/2022, 12:41 PM
Copy code
error: 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).
b

billowy-army-68599

04/22/2022, 12:43 PM
oh, you're using the the open source backend. in that case you'll need to manually remove it from your S3 bucket, it's managed by the bucket itself
4 Views