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

Problem: Open Tofu and Terraform not able to install providers #2745

Open
XCOAnnika opened this issue Feb 13, 2025 · 1 comment
Open

Problem: Open Tofu and Terraform not able to install providers #2745

XCOAnnika opened this issue Feb 13, 2025 · 1 comment

Comments

@XCOAnnika
Copy link

Issue

TLS Handshake Timeout When Downloading Terraform Providers

Description

I'm encountering an error while initializing provider plugins for my Terraform and opentofu configuration. The error occurs when attempting to download the required providers from GitHub, resulting in a TLS handshake timeout. the initializing is working wenn running Terraform and opentofu on the same host bear metal.

Error Details

10:09:33 PM
Initializing provider plugins...
10:09:33 PM
- Finding hetznercloud/hcloud versions matching "1.50.0-rc.0"...
10:09:39 PM
- Finding cloudflare/cloudflare versions matching "5.1.0"...
10:09:54 PM
- Installing hetznercloud/hcloud v1.50.0-rc.0...
10:10:16 PM
- Installing cloudflare/cloudflare v5.1.0...
10:10:26 PM
╷
10:10:26 PM
│ Error: Failed to install provider
10:10:26 PM
│ 
10:10:26 PM
│ Error while installing hetznercloud/hcloud v1.50.0-rc.0: github.com: Get
10:10:26 PM
│ "https://objects.githubusercontent.com/github-production-release-asset-2e65be/136213126/d7267f20-975b-4e53-94a4-b85ef2433d41?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250213%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250213T210840Z&X-Amz-Expires=300&X-Amz-Signature=7657e5c54cd4931a41ebb01f78013a4a1f484fa14274d238c68753b13b79de72&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dterraform-provider-hcloud_1.50.0-rc.0_linux_amd64.zip&response-content-type=application%2Foctet-stream":
10:10:26 PM
│ net/http: TLS handshake timeout
10:10:26 PM
╵
10:10:26 PM
╷
10:10:26 PM
│ Error: Failed to install provider
10:10:26 PM
│ 
10:10:26 PM
│ Error while installing cloudflare/cloudflare v5.1.0: github.com: Get
10:10:26 PM
│ "https://objects.githubusercontent.com/github-production-release-asset-2e65be/93446113/dabb7128-0060-42b3-a71b-5b68a1693813?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250213%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250213T210837Z&X-Amz-Expires=300&X-Amz-Signature=b3328962a0a56944cbdda08735076983c6418f2be45046da133b987932ca02b4&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dterraform-provider-cloudflare_5.1.0_linux_amd64.zip&response-content-type=application%2Foctet-stream":
10:10:26 PM
│ net/http: TLS handshake timeout
10:10:26 PM
╵
10:10:27 PM
Running galaxy failed: exit status 1
10:10:27 PM
Running app failed: exit status 1

Steps to Reproduce

  1. Execute the Terraform initialization command (e.g., terraform init) in the directory containing your configuration.
  2. Ensure that the configuration references the following providers:
    • hetznercloud/hcloud version 1.50.0-rc.0
    • cloudflare/cloudflare version 5.1.0
  3. The error occurs during the provider installation phase when Terraform attempts to fetch the binaries from GitHub.

Expected Behavior

Terraform should successfully download and install the provider binaries without encountering a TLS handshake timeout.

Actual Behavior

The initialization process fails with a TLS handshake timeout when trying to fetch the provider binaries from GitHub.

Additional Information

  • The error suggests that the issue may be related to network connectivity or TLS settings, as the timeout occurs during the TLS handshake with GitHub's servers.
  • I've verified that other GitHub connections are working correctly, which might indicate an intermittent issue or a configuration-specific problem.

Any assistance in diagnosing or resolving this issue would be greatly appreciated.

Thank you!

Impact

Other, Service (scheduled tasks, alerts)

Installation method

Docker

Database

Postgres, BoltDB

Browser

Chrome, Firefox

Semaphore Version

semaphoreui/semaphore:v2.12.11
semaphoreui/semaphore:v2.12.4

Ansible Version

Logs & errors

semaphore-1 | time="2025-02-13T21:19:29Z" level=info msg="Task 4 added to queue"
semaphore-1 | time="2025-02-13T21:19:32Z" level=info msg="Set resource locker with TaskRunner 4"
semaphore-1 | time="2025-02-13T21:19:32Z" level=info msg="Task 4 removed from queue"
semaphore-1 | time="2025-02-13T21:19:33Z" level=warning msg="read |0: file already closed" error="Failed to read TaskRunner output"
semaphore-1 | time="2025-02-13T21:19:35Z" level=warning msg="read |0: file already closed" error="Failed to read TaskRunner output"
semaphore-1 | time="2025-02-13T21:20:11Z" level=error msg="remove /tmp/semaphore/inventory_4: no such file or directory"
semaphore-1 | time="2025-02-13T21:20:11Z" level=info msg="Stopped running TaskRunner 4"
semaphore-1 | time="2025-02-13T21:20:11Z" level=info msg="Release resource locker with TaskRunner 4"

Manual installation - system information

No response

Configuration

No response

Additional information

No response

@XCOAnnika
Copy link
Author

XCOAnnika commented Feb 17, 2025

The Problem doesn't happen on bare metal install

edit: Fixed Typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant