Hey, when running `pulumi refresh` , I get: ```err...
# general
a
Hey, when running
pulumi refresh
, I get:
Copy code
error: getting snapshot: snapshot integrity failure; refusing to use it: resource urn:... refers to unknown provider urn:...
which I try to fix by deleting the first resource from the state with
pulumi state delete "urn:..." --disable-integrity-checking.
But I get:
Copy code
error: No such resource "urn:..." exists in the current state
Would appreciate help!
e
Can you raise an issue about this at https://github.com/pulumi/pulumi/issues. It's almost certainly a bug that you got into this state in the first place. In terms of fixing it, you might need to edit the file by hand (
pulumi stack export > state.json
) to remove that bad provider reference. You should be able to find a urn for a valid provider in the state file and paste that in for the resources provider field, then import the file back
pulumi stack import < state.json
)