Closed Tang8330 closed 4 years ago
Seems like this is a common enough bug.
https://github.com/Preskton/terraform-provider-twilio/pull/46 https://github.com/Mastercard/terraform-provider-restapi/pull/66
@Tang8330 can you please include or link to the Dockerfile
you're using to help me reproduce this locally? Sounds like an issue other folks have had, but I need to reproduce it on my end to confirm and understand what's going on.
Hi @Tang8330,
We didn't hear back from you after @danieldreier's recent comment, so I'm going to close this.
Based on what I see in the two other issues issue you mentioned, this problem seems to be with the provider build itself rather than with Terraform Core. Specifically, if a provider is built in such a way that it depends on the current system's C library, which is often glibc on a full build system, then it can fail to run under a Linux distribution that uses a different C library; some versions of Alpine Linux use uclibc and others use musl. When executing a program that is compiled against the wrong C library, the system call to execute the program returns "no such file or directory" in reference to the missing library, which Terraform is then passing on in its error message.
Terraform and its providers should be built for Linux with CGO_ENABLED=0
so that they do not depend on any particular C library, and depend only on the Linux system call interface. They can then work under any Linux distribution, including Alpine Linux. The fix you submitted to the Twilio provider is the best way to address this for other providers, to ensure that they are compatible with any system using a sufficiently new Linux kernel version, regardless of which C library is installed.
Thanks for submitting that fix to the Twilio provider! :tada:
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.
Terraform Version
Debug Output
Crash Output
Expected Behavior
The file clearly exists, after doing both
Actual Behavior
TF init is passing TF plan fails saying it can't find the file. But it clearly exists.
Steps to Reproduce
Additional Context
References