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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to terraform apply at all. "Unavailable desc = transport is closing" #75

Open
paperbag-zz opened this issue May 5, 2020 · 3 comments

Comments

@paperbag-zz
Copy link

paperbag-zz commented May 5, 2020

Error when running apply (full log below in the gist).
Error: rpc error: code = Unavailable desc = transport is closing

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.12.24

  • provider.artifactory (unversioned)

Affected Resource(s)

resource "artifactory_local_repository"
resource "artifactory_user"

Terraform Configuration Files

resource "artifactory_local_repository" "test" {
  key          = "broker"
  package_type = "docker"
}

##########################################
# Artifactory Provider
##########################################
provider "artifactory" {
    url = ""
    username = ""
    password = ""
}
### Debug Output / Panic Output

panic: https://gist.github.com/paperbag-zz/4f271cef97344751ee554111aff5000c

debug: https://gist.github.com/paperbag-zz/bb318a1b36c74d5fb30f05028cb218ba


### Expected Behavior

Apply should have run.

### Actual Behavior

Terraform crash

### Steps to Reproduce

Tested with current and alpha releases with terraform 0.11 and 0.12.

Plan runs fine, running apply crash happens.

### Important Factoids

N/A

* #0000
@ShreyasNBS
Copy link
Contributor

Try terraform apply -parallelism=1

@TonyLovesDevOps
Copy link

@paperbag-zz I too ran into issues like this, and at least in some cases it turned out to be that the provider was sending API requests to artifactory that it was rejecting. For example, attempting to create/modify permissions targets that have zero users/groups (which you can do just fine through the UI but not through the API.)

What seemed to be helpful for me was to try to apply one resource at a time, e.g. terraform apply -target artifactory_permission_target.foo which produced more helpful error messages. Also adding TF_LOG=trace to the apply to see debug logs was helpful, too.

@spuder
Copy link

spuder commented Apr 1, 2021

We are frequently finding the terraform module for artifactory unusable due to this error. We have tried adding -parallelism=1 but still encounter crashes when adding new resources

Here is an example resource that seems to reproduce the issue.

resource "artifactory_remote_repository" "debian-remote_ceph_nautilus" {
  key              = "debian-remote.ceph.nautilus"
  package_type     = "debian"
  repo_layout_ref  = "simple-default"
  url              = "http://download.ceph.com/debian-nautilus"
  notes            = "managed by terraform"
  property_sets    = ["artifactory"]
  includes_pattern = "**/*"
  content_synchronisation {
    enabled = false
  }
}

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

No branches or pull requests

4 participants