I get an "refusing to proceed" when I try to impor...
# general
r
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
What's the full error message? Need more details to help.
r
`
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
This is after removing all the pending operations and importing?
r
yes
l
That error message says there are still pending operations...
r
`
Copy code
}
    ],
    "pending_operations": []
  }
}
this is the end of my json
l
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
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
And you're running your
up
in the same stack as the one you've just run
stack import --file
on?
😕
r
yes
l
I've never seen that before.
r
same here
l
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
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
We'll have to wait for a staff member, I think 😞
r
😞
anyway, thanks for trying 🙂
👍 1