Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

received EOF, stopping recv loop #2179

Open
1 of 3 tasks
kpucynski opened this issue Dec 9, 2024 · 0 comments
Open
1 of 3 tasks

received EOF, stopping recv loop #2179

kpucynski opened this issue Dec 9, 2024 · 0 comments
Labels

Comments

@kpucynski
Copy link

kpucynski commented Dec 9, 2024

Summary

We have a quite big, modules heavy codebase to setup snowflake database parameters.
When trying to use TFlint it takes over 15 minutes to process the data and it fails.
Error is shown only with the debug turned on.
Exit code is 0, which is misleading.

Terraform plan & apply works fine (however takes 5-10 minutes normally).
I cannot share the code because of NDA.
Can we debug this issue?

Command

TFLINT_LOG=debug time tflint --color --call-module-type=all --var-file=vars/dev.json

Terraform Configuration

n/a

TFLint Configuration

default config

Output

16:34:19 config.go:177: [INFO] Load config: .tflint.hcl
16:34:19 config.go:185: [INFO] file not found
16:34:19 config.go:192: [INFO] Load config: /Users/kpucynski/.tflint.hcl
16:34:19 config.go:200: [INFO] file not found
16:34:19 config.go:203: [INFO] Use default config
16:34:19 config.go:463: [INFO] The "terraform" plugin block is not found. Enable the plugin "terraform" automatically
16:34:19 option.go:77: [DEBUG] CLI Options
16:34:19 option.go:78: [DEBUG]   CallModuleType: local
16:34:19 option.go:79: [DEBUG]   Force: false
16:34:19 option.go:80: [DEBUG]   Format:
16:34:19 option.go:81: [DEBUG]   Varfiles: vars/dev.json
16:34:19 option.go:82: [DEBUG]   Variables:
16:34:19 option.go:83: [DEBUG]   EnableRules:
16:34:19 option.go:84: [DEBUG]   DisableRules:
16:34:19 option.go:85: [DEBUG]   Only:
16:34:19 option.go:86: [DEBUG]   EnablePlugins:
16:34:19 option.go:87: [DEBUG]   IgnoreModules:
16:34:19 loader.go:39: [INFO] Initialize new loader
16:34:19 loader.go:81: [INFO] Building the root module while calling local child modules...
[...]
Initialize new runner for module.[...]
[...]
16:50:31 discovery.go:33: [INFO] Plugin "terraform" is not installed, but the bundled plugin is available.
16:50:31 discovery.go:54: [INFO] Plugin "terraform" found
16:50:31 [DEBUG] cmdrunner/cmd_runner.go:73: starting plugin: path=/usr/local/bin/tflint args=["/usr/local/bin/tflint", "--act-as-bundled-plugin"]
16:50:31 [DEBUG] cmdrunner/cmd_runner.go:80: plugin started: path=/usr/local/bin/tflint pid=48253
16:50:31 [DEBUG] go-plugin@v1.6.2/client.go:827: waiting for RPC address: plugin=/usr/local/bin/tflint
16:50:31 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:31 [DEBUG] go-plugin@v1.6.2/server.go:419: plugin address: network=unix address=/var/folders/3j/771944597334rb282pwwcmf40000gn/T/plugin3565531952
16:50:31 [DEBUG] go-plugin@v1.6.2/client.go:880: using plugin: version=11
16:50:31 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:32 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:32 [DEBUG] rules/terraform_map_duplicate_keys.go:92: Unprocessable key, continuing: range="storage_integration.tf:5,5-31"
16:50:32 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:32 [DEBUG] rules/terraform_map_duplicate_keys.go:92: Unprocessable key, continuing: range="storage_integration.tf:21,5-31"
16:50:32 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:32 [DEBUG] rules/terraform_map_duplicate_keys.go:92: Unprocessable key, continuing: range="warehouse.tf:9,5-26"
16:50:32 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:32 [DEBUG] rules/terraform_map_duplicate_keys.go:92: Unprocessable key, continuing: range="warehouse.tf:26,5-26"
16:50:32 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:32 [DEBUG] rules/terraform_map_duplicate_keys.go:92: Unprocessable key, continuing: range="warehouse.tf:43,5-26"
16:50:32 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:32 [DEBUG] rules/terraform_map_duplicate_keys.go:92: Unprocessable key, continuing: range="warehouse.tf:60,5-26"
16:50:32 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:32 [DEBUG] rules/terraform_map_duplicate_keys.go:92: Unprocessable key, continuing: range="warehouse.tf:77,5-26"
16:50:32 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:32 [DEBUG] rules/terraform_map_duplicate_keys.go:92: Unprocessable key, continuing: range="warehouse.tf:119,5-26"
16:50:32 [DEBUG] go-plugin@v1.6.2/client.go:1216: tflint: 16:50:32 [DEBUG] rules/terraform_map_duplicate_keys.go:92: Unprocessable key, continuing: range="warehouse.tf:136,5-26"
[...]
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
16:50:40 [DEBUG] host2plugin/client.go:124: starting host-side gRPC server
[...]
16:50:40 [DEBUG] go-plugin@v1.6.2/grpc_stdio.go:142: stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
16:50:40 [INFO]  go-plugin@v1.6.2/client.go:780: plugin process exited: plugin=/usr/local/bin/tflint id=48253
16:50:40 [DEBUG] go-plugin@v1.6.2/client.go:558: plugin exited

TFLint Version

0.54.0

Terraform Version

v1.9.8

Operating System

  • Linux
  • macOS
  • Windows
@kpucynski kpucynski added the bug label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant