https://pulumi.com logo
#general
Title
# general
r

rapid-iron-52715

08/18/2021, 11:07 PM
I get an "refusing to proceed" when I try to import an exported stack where I deleted resources from "pending_operations", but this is the solution offered by the CLI.
l

little-cartoon-10569

08/18/2021, 11:18 PM
What's the full error message? Need more details to help.
r

rapid-iron-52715

08/18/2021, 11:19 PM
`
Copy code
Do you want to perform this import? yes
Importing (development)

View Live: <https://app.pulumi.com/tellmyteam/customer-management/development/updates/337>

 
error: the current deployment has 2 resource(s) with pending operations:
  * urn:pulumi:development::customer-management::tellmyteam:index:Frontend$tellmyteam:cloudflare:CronWorker$cloudflare:index/workerCronTrigger:WorkerCronTrigger::jwksrefreshTrigger, interrupted while deleting
  * urn:pulumi:development::customer-management::tellmyteam:index:Frontend$tellmyteam:cloudflare:ApiWorker$cloudflare:index/workerRoute:WorkerRoute::frontendRoute, interrupted while deleting

These resources are in an unknown state because the Pulumi CLI was interrupted while
waiting for changes to these resources to complete. You should confirm whether or not the
operations listed completed successfully by checking the state of the appropriate provider.
For example, if you are using AWS, you can confirm using the AWS Console.

Once you have confirmed the status of the interrupted operations, you can repair your stack
using 'pulumi stack export' to export your stack to a file. For each operation that succeeded,
remove that operation from the "pending_operations" section of the file. Once this is complete,
use 'pulumi stack import' to import the repaired stack.

refusing to proceed
l

little-cartoon-10569

08/18/2021, 11:20 PM
This is after removing all the pending operations and importing?
r

rapid-iron-52715

08/18/2021, 11:20 PM
yes
l

little-cartoon-10569

08/18/2021, 11:20 PM
That error message says there are still pending operations...
r

rapid-iron-52715

08/18/2021, 11:21 PM
`
Copy code
}
    ],
    "pending_operations": []
  }
}
this is the end of my json
l

little-cartoon-10569

08/18/2021, 11:23 PM
You may have to look in the file for other pending operations. Maybe there's a pending delete that you need to clear. I can't remember the syntax of a pending delete. It's noted directly in the object, near the "custom" property, iirc?
r

rapid-iron-52715

08/18/2021, 11:23 PM
hum... so outside of the pending_operations?
I search the file for the resources mentioned in the error and removed them too
now they aren't in "pending_operations" or "resources" anymore
but I still get the same error
l

little-cartoon-10569

08/18/2021, 11:28 PM
And you're running your
up
in the same stack as the one you've just run
stack import --file
on?
😕
r

rapid-iron-52715

08/18/2021, 11:28 PM
yes
l

little-cartoon-10569

08/18/2021, 11:28 PM
I've never seen that before.
r

rapid-iron-52715

08/18/2021, 11:28 PM
same here
l

little-cartoon-10569

08/18/2021, 11:28 PM
Maybe try
up --refresh
... but I don't have much hope that'll improve things...
You wouldn't have a command-line alias or something that you've forgotten about that's overriding your stack, would you? So you end up importing in one place and upping from another?
r

rapid-iron-52715

08/18/2021, 11:30 PM
no
I had an error in my destroy and tried to cancel that, because sometimes it hangs for like 10minutes
after that I got that error when I tried to destroy again
then I exported, removed pending_operations and imported again
but I still get the error
l

little-cartoon-10569

08/18/2021, 11:34 PM
We'll have to wait for a staff member, I think 😞
r

rapid-iron-52715

08/18/2021, 11:35 PM
😞
anyway, thanks for trying 🙂
👍 1
3 Views