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

Error: Plugin did not respond #1

Closed
Crush-Steelpunch opened this issue Jul 12, 2022 · 5 comments
Closed

Error: Plugin did not respond #1

Crush-Steelpunch opened this issue Jul 12, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@Crush-Steelpunch
Copy link

When I'm trying to launch multiple similar it always seems to throw an error about the plugin not responding

│ Error: Plugin did not respond
│
│   with multipass_instance.swarm-manager,
│   on main.tf line 14, in resource "multipass_instance" "swarm-manager":
│   14: resource "multipass_instance" "swarm-manager" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange
│ call. The plugin logs may contain more details.

I'm using in on Windows 11 with multipass 1.9.1+win and terraform v1.2.
logs.txt
4

@Crush-Steelpunch
Copy link
Author

main.tf.txt

@larstobi larstobi added the bug Something isn't working label Jul 16, 2022
@larstobi
Copy link
Owner

@Crush-Steelpunch Thanks for posting the first bug report!

I've tried to reproduce the error you got, and from what I can gather, one possibility is that the cloud-init file does not exist.

This should produce a nice error message in the provider, but I haven't gotten around to doing that yet.

When running the same parameters on the command line, I got:

error: No such file: (and then the file name in the parameter)

Could you please verify that the cloud init file name and path is correct?

@larstobi
Copy link
Owner

@Crush-Steelpunch
I've rewritten the plugin based on Hashicorp's terraform plugin framework. This should improve error handling, and hopefully no more plugin did not respond messages. I've also added some error messages about what went wrong.

Please try v1.2.0 https://github.com/larstobi/terraform-provider-multipass/releases/tag/v1.2.0

@Crush-Steelpunch
Copy link
Author

Crush-Steelpunch commented Jul 19, 2022

Thank you. It looks like one of the issues was related to this canonical/multipass#2587 and upgrading to 1.10 has stopped that. The error output is much improved and the "plugin did not respond" issues have also gone away. I'm still getting issues on create but I don't think they are related to this issue or the multipass plugin.

@larstobi
Copy link
Owner

Nice! Thanks for getting back to me on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants