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

terraform-provider-random_v3.1.0_x5 plugin crashed! #181

Closed
CollinLeishman opened this issue Sep 13, 2021 · 2 comments · Fixed by #234
Closed

terraform-provider-random_v3.1.0_x5 plugin crashed! #181

CollinLeishman opened this issue Sep 13, 2021 · 2 comments · Fixed by #234

Comments

@CollinLeishman
Copy link

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

1.0.6

Affected Resource(s)

Please list the resources as a list, for example:
random_string
vsphere_virtual_machine

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

All I am able to show is:

terraform {
  required_providers {
    vsphere = {
      source = "hashicorp/vsphere"
      version = "2.0.2"
    }
    random = {
      source = "hashicorp/random"
      version = "3.1.0"
    }

  }
}
resource "random_string" "ts_id" {
  min_upper   = 7
  min_numeric = 8
  length      = 14
}

resource "random_string" "dads_id" {
  min_upper   = 7
  min_numeric = 7
  length      = 14
}

resource "random_string" "dp_id" {
  min_upper   = 7
  min_numeric = 7
  length      = 14
}

resource "random_string" "ds_id" {
  min_upper   = 7
  min_numeric = 7
  length      = 14
}```

### Debug Output
https://gist.github.com/CollinLeishman/7a0adcb070e09957f098ac07860b9bc6

### Panic Output

Error: The terraform-provider-random_v3.1.0_x5 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.


### Expected Behavior
Plugin should not have crashed

### Actual Behavior
Plugin crashed

### Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
1. `terraform apply --auto-approve`


let me know if there's any other info that may be helpful.
@CollinLeishman
Copy link
Author

Found the problem, it was:
min_upper(7)
plus
min_numeric(8)
equals 15, and I had set the length to 14.

resource "random_string" "ts_id" {
  min_upper   = 7
  min_numeric = 8
  length      = 14
}

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.