Hey, I was trying to run terraform on an IPad Pro 11 inch 2020.
What is working:
What is not working:
Result:
The app is crashing.
Sorry i forgot the dump :D in my first post
Next update should replace the crash with an actual error message
Thx @tbodt cant wait for the next release :-D
Hey @tbodt :) thx for the update, im getting now a connection error.
`Acquiring state lock. This may take a few moments...
Error: Failed to retrieve schema from provider "google": rpc error: code = Unavailable desc = connection error: desc = "transport: error while dialing: dial unix @: connect: invalid argument"
Error: Failed to retrieve schema from provider "random": rpc error: code = Unavailable desc = connection error: desc = "transport: error while dialing: dial unix @: connect: invalid argument"
Releasing state lock. This may take a few moments... `
Not sure what the terraform providers are trying to call on the system system side.
Can you run dmesg now and post the output?
Here we go:
➜ tf-infra git:(master) dmesg
[ 0.000000] pollnval 65 flags 4 events 3 revents 32
pollnval 65 flags 4 events 3 revents 32
pollnval 65 flags 4 events 3 revents 32
pollnval 65 flags 4 events 3 revents 32
pollnval 65 flags 4 events 3 revents 32
pollnval 65 flags 4 events 3 revents 32
pollnval 65 flags 4 events 3 revents 32
pollnval 65 flags 4 events 3 revents 32
pollnval 68 flags 4 events 3 revents 32
pollnval 70 flags 4 events 3 revents 32
pollnval 70 flags 4 events 3 revents 32
unknown error 45
FIXME socketcall 18
unknown error 45
unknown error 45
FIXME socketcall 18
unknown error 45
Something's returning ENOTSUP which is different from EOPNOTSUPP on mac but the same on linux, which explains the crash initially.
Hey @tbodt as we chat i am still preparing the scripts and instructions for you to being able to reproduce it. Besides that I’ve run terraform on loglevel trace and get this output, maybe there is something helpfull:
2020/06/28 19:34:28 [DEBUG] checking for provider in "."
2020/06/28 19:34:29 [DEBUG] checking for provider in "/usr/bin"
2020/06/28 19:34:29 [DEBUG] checking for provider in ".terraform/plugins/linux_386"
2020/06/28 19:34:29 [DEBUG] found provider "terraform-provider-google_v3.25.0_x5"
2020/06/28 19:34:29 [DEBUG] found provider "terraform-provider-random_v2.2.1_x4"
2020/06/28 19:34:29 [DEBUG] found valid plugin: "google", "3.25.0", "/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provide
r-google_v3.25.0_x5"
2020/06/28 19:34:29 [DEBUG] found valid plugin: "random", "2.2.1", "/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provider
-random_v2.2.1_x4"
2020/06/28 19:34:29 [DEBUG] checking for provisioner in "."
2020/06/28 19:34:29 [DEBUG] checking for provisioner in "/usr/bin"
2020/06/28 19:34:29 [DEBUG] checking for provisioner in ".terraform/plugins/linux_386"
2020/06/28 19:34:29 [INFO] backend/local: starting Plan operation
2020-06-28T19:34:48.270Z [INFO] plugin: configuring client automatic mTLS
2020-06-28T19:34:50.340Z [DEBUG] plugin: starting plugin: path=/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provider-goog
le_v3.25.0_x5 args=[/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provider-google_v3.25.0_x5]
2020-06-28T19:34:50.359Z [DEBUG] plugin: plugin started: path=/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provider-googl
e_v3.25.0_x5 pid=24643
2020-06-28T19:34:50.359Z [DEBUG] plugin: waiting for RPC address: path=/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provi
der-google_v3.25.0_x5
2020-06-28T19:34:50.657Z [INFO] plugin.terraform-provider-google_v3.25.0_x5: configuring server automatic mTLS: timestamp=2020-06-28T19:34:50.655Z
2020-06-28T19:34:52.694Z [DEBUG] plugin.terraform-provider-google_v3.25.0_x5: plugin address: address=@ network=unix timestamp=2020-06-28T19:34:52.693Z
2020-06-28T19:34:52.695Z [DEBUG] plugin: using plugin: version=5
2020-06-28T19:34:52.702Z [WARN] plugin.stdio: stdio service not available, stdout/stderr syncing unavailable
2020-06-28T19:34:52.704Z [WARN] plugin.stdio: stdio service unavailable, run will do nothing
2020-06-28T19:34:54.710Z [WARN] plugin: plugin failed to exit gracefully
2020-06-28T19:34:54.776Z [DEBUG] plugin: plugin process exited: path=/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provide
r-google_v3.25.0_x5 pid=24643 error="signal: killed"
2020-06-28T19:34:54.777Z [INFO] plugin: configuring client automatic mTLS
2020-06-28T19:34:56.794Z [DEBUG] plugin: starting plugin: path=/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provider-rand
om_v2.2.1_x4 args=[/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provider-random_v2.2.1_x4]
2020-06-28T19:34:56.812Z [DEBUG] plugin: plugin started: path=/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provider-rando
m_v2.2.1_x4 pid=24649
2020-06-28T19:34:56.813Z [DEBUG] plugin: waiting for RPC address: path=/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provi
der-random_v2.2.1_x4
2020-06-28T19:34:56.944Z [INFO] plugin.terraform-provider-random_v2.2.1_x4: configuring server automatic mTLS: timestamp=2020-06-28T19:34:56.941Z
2020-06-28T19:34:58.902Z [DEBUG] plugin.terraform-provider-random_v2.2.1_x4: plugin address: address=@ network=unix timestamp=2020-06-28T19:34:58.901Z
2020-06-28T19:34:58.902Z [DEBUG] plugin: using plugin: version=5
2020-06-28T19:34:58.909Z [WARN] plugin.stdio: stdio service not available, stdout/stderr syncing unavailable
2020-06-28T19:34:58.910Z [WARN] plugin.stdio: stdio service unavailable, run will do nothing
2020-06-28T19:35:00.915Z [WARN] plugin: plugin failed to exit gracefully
2020-06-28T19:35:00.967Z [DEBUG] plugin: plugin process exited: path=/root/repos/tf-infra/.terraform/plugins/linux_386/terraform-provide
r-random_v2.2.1_x4 pid=24649 error="signal: killed"
Hey @tbodt sorry for the delay, i found a way for you to reproduce the issue without using any cloud provider.
First you need to get terraform work.
wget https://releases.hashicorp.com/terraform/0.12.28/terraform_0.12.28_linux_386.zip
unzip terraform_0.12.28_linux_386.zip -d /usr/bin
Next we are creating the directories from where terraform will be executed.
mkdir $HOME/tf_test
cd $HOME/tf_test
Create the main.tf and add the following content
terraform {
backend "local" {
}
}
resource "local_file" "foo" {
content = "foo!"
filename = "/root/foo.bar"
}
Finally we are running terraform by initializing the project and show by using plan the changes.
terraform init
terraform plan
Hope this helps
If you have any questions just let me know, you can also ping me in discord.
Hey @tbodt , did you find the time to give it a try?
Sorry I haven't been able to, I've been focusing on the Linux rewrite. I hope to pause that at some point and try and fix some bugs.
Should work on master now
cant wait for the next release to give it a try :D thanks alot .
Most helpful comment
Should work on master now