Closed riuvshyn closed 3 years ago
I have similar issues when trying to run terraform to update worker config.
Various output from this command -
./run_terraform.sh vivastreet.cl apply
that then ends with -
Error: error from makeRequest: HTTP status 404: content "404 page not found\n"
@riuvshyn I'm afraid I need more information for the reproduction steps and configuration as this doesn't reproduce on just any configuration. Are you able to provide a bare minimum reproduction case on a new installation?
@jamiemil if your issue isn't the same as the original one (resources, steps, etc) please open a new issue following the issue template provided so we can track them separately.
We're already in touch with the CF support team regarding this issue, but wanted to share some context here which would help to reproduce it.
After we start running Terraform in debug mode, not sure if it is limited to, but we identified that /client/v4/zones/:zoneid/custom_pages/:custom_page_type
endpoint is returning sporadic 404s. And regardless of Terraform, even a basic curl request is giving the exact same response.
Thanks @canthefason. Looks like this is potential a larger issue with the API and not just Terraform. Let's put this on hold until the internal tickets are addressed.
NOTE: In the meantime, don't terraform apply
changes as most resources that hit 404's will remove the resources from the state file and may end up with undesirable side effects.
@riuvshyn @jamiemil @canthefason this issue has been mitigated internally and wasn't related to page rules (or Terraform at all) but instead a change to the custom pages service which, unfortunately, the Terraform output doesn't convey well at all. To make matters worse, reproduction wasn't consistent making the diagnosis more annoying than it needs to be. I'm hoping to have a dig into the debug output in the near future and see what we can do about surfacing more useful errors in these scenarios.
Can you please check your Terraform runs again and confirm you're seeing the issue resolved on your end before I close this out?
thanks for checking in @jacobbednarz, it is all looking good right now.
awesome, i'm going to close this out but feel free to either ping here or the support tickets if you need more information.
@jacobbednarz awesome! yeh page_rules were just a red herring...
each time I run tf plan / apply it fails on page rules with this:
reproduced on 2.17.0 and 2.18.0 provider versions
Terraform version
13.05
Affected resource(s)
page_rules
Terraform configuration files
Debug output
Panic output
Expected behavior
not fail
Actual behavior
Steps to reproduce
just do tf plan / apply
Important factoids
amount of 404s each run is different.
References
Community note