mschuchard / linter-terraform-syntax

terraform validate linter and formatter for pulsar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Linter] Error running Terraform Error: Process execution timed out

phlegx opened this issue · comments

Hi @mschuchard. Running your Atom plugin results in the following error:

[Linter] Error running Terraform Error: Process execution timed out

Error points to these files

~/.atom/packages/linter-docker/node_modules/sb-exec/lib/index.js line 89

and

~/.atom/packages/linter/lib/linter-registry.js line 154

If you have any ideas what might cause that and how to fix it, let me know.

Do you see this error thrown for all modules, or only for the largest modules? If you have a module with a small main.tf do you see this error?

@mschuchard Sorry for the late reply. The small main.tf files do not seem to throw/force that error. It seems indeed to happen only on larger files/modules.

Ok I will add a configuration option to increase the timeout for the Terraform CLI execution. After that, you can patch locally, test, and see if it works for you.

You can replace the lib/main.js in your locally installed package with the one here. Try the new timeout config setting and see if it helps with your issue.

Dear @mschuchard I tried your updated code, and as far as I have seen there was no error anymore for the Process execution timeout up until now. Seems that this has fixed it.

NOTE: I used the default time of 10 seconds didn't change that. Was it before on 10 seconds as well?

Update Error happened again with 10 seconds. I now set 20 seconds, Error still there and the machine starts slowing down during that time.

Can you show the return from executing terraform validate in that project directory?

No update in three months; closing.