Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No resource schema found for incus_instance_file when decoding prior state #117

Closed
austinried opened this issue Aug 17, 2024 · 2 comments
Closed

Comments

@austinried
Copy link

I had incus_instance_file in my state previously, now after upgrade I have removed the files from my configuration but I get an error because it was removed in the new version.

╷
│ Warning: Missing resource schema from provider
│ 
│ No resource schema found for incus_instance_file when decoding prior state
╵
╷
│ Warning: Missing resource schema from provider
│ 
│ No resource schema found for incus_instance_file when decoding prior state
╵
╷
│ Error: no schema available for incus_instance_file.jump-user-authorized_keys while reading state; this is a bug in OpenTofu and should be reported
│ 
│ 
╵
╷
│ Error: no schema available for incus_instance_file.jump-admin-authorized_keys while reading state; this is a bug in OpenTofu and should be reported
│ 
│ 
╵
@stgraber
Copy link
Member

Yes, this was intentional, see #88

We will keep supporting pushing files during instance creation (incus_instance) and will look at extending it a bit (#91).

@austinried
Copy link
Author

I realized the removal was intentional but it wasn't clear to me how to resolve the problem from the error message, I couldn't plan or apply with this bad state. For others in the same boat, eventually I got it working again with:

tofu state rm <resource>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants