Open paperbag-zz opened 4 years ago
Try terraform apply -parallelism=1
@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.
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
}
}
Error when running apply (full log below in the gist).
Error: rpc error: code = Unavailable desc = transport is closing
Community Note
Terraform Version
Terraform v0.12.24
Affected Resource(s)
resource "artifactory_local_repository" resource "artifactory_user"
Terraform Configuration Files