gruntwork-io / gruntwork-io/gruntwork-installer

Better error messaging for curl failures

Open
#43 0 comments 0 reactions 1 assignee Claimed by @yorinasub17 View on GitHub
bug
Dominant language
Shell
Stars
92
Forks
55
PR merge metrics
No merged PRs in 30d

Description

A customer recently had an issue with curl failing to download `fetch`. The error is:

```
Step 10/24 : RUN curl -Ls https://raw.githubusercontent.com/gruntwork-io/gruntwork-installer/master/bootstrap-gruntwork-installer.sh | bash /dev/stdin --version v0.0.23
---> Running in b606ba274890
Installing gruntwork-install...
Installing fetch version v0.3.2 to /usr/local/bin/fetch
Downloading https://github.com/gruntwork-io/fetch/releases/download/v0.3.2/fetch_linux_amd64 to /tmp/gruntwork-bootstrap-download-JAaGkA
ERROR: Expected status code 200 but got 302 when downloading https://github.com/gruntwork-io/fetch/releases/download/v0.3.2/fetch_linux_amd64
The command '/bin/sh -c curl -Ls https://raw.githubusercontent.com/gruntwork-io/gruntwork-installer/master/bootstrap-gruntwork-installer.sh | bash /dev/stdin --version v0.0.23' returned a non-zero code: 1
```

Upon investigation, the error turned out to be a network monitoring proxy that was in the middle of the SSL connection causing curl to fail SSL validation. This was being swallowed silently.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.