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

abundant-twilight-47012

06/22/2023, 11:18 AM
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

echoing-dinner-19531

06/22/2023, 1:15 PM
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
)
2 Views