aws-amplify / aws-amplify/amplify-hosting

For CONSOLE Backend Builds: RequestTimeout: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.

Open
#2,893 3 comments 2 reactions 0 assignees View on GitHub
backend-builds
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

### Before opening, please confirm:

- [X] I have checked to see if my question is addressed in the [FAQ](https://github.com/aws-amplify/amplify-hosting/blob/master/FAQ.md).
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-hosting/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-hosting/blob/master/CONTRIBUTING.md).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

### App Id

dcaffs0m7jnrr

### Region

us-east-2

### Amplify Hosting feature

Backend builds, Build settings, Monorepo

### Describe the bug

Application: dcaffs0m7jnrr
Branch: led-links
BuildId: 5

```
2022-07-29T05:40:03.063Z [WARNING]: - Uploading files...
2022-07-29T05:45:30.737Z [WARNING]: ✖ An error occurred when pushing the resources to the cloud
2022-07-29T05:45:30.760Z [WARNING]: ✖ There was an error initializing your environment.
2022-07-29T05:45:30.767Z [INFO]: RequestTimeout: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
 at Request.extractError (/snapshot/repo/build/node_modules/aws-sdk/lib/services/s3.js:711:35)
```

Most reports I've seen of this issue happen locally (not in console):

https://github.com/aws-amplify/amplify-cli/issues/4113
https://github.com/aws-amplify/amplify-cli/issues/6248
https://github.com/aws-amplify/amplify-cli/issues/8379
https://github.com/aws-amplify/amplify-cli/issues/9019
https://github.com/aws-amplify/amplify-cli/issues/2121
https://github.com/aws-amplify/amplify-cli/issues/501
https://github.com/aws-amplify/amplify-cli/issues/462

### Expected behavior

Build successfully, like my local amplify push.

### Reproduction steps

Click 'Redeploy this version'

### Build Settings

```yaml
amplifyPush --simple
```

### Additional information

I guess my local machine is faster than the build image, so I don't often have this issue locally.

Also, my graphql schema is huge.

Is there a way to get a beefier build image or any other workaround for this issue?

Contributor guide

Open the contributing guide

Research direction

Start with the reported Amplify Hosting build log for app dcaffs0m7jnrr, branch led-links, and the amplifyPush --simple reproduction. Compare the S3 RequestTimeout reports linked from amplify-cli, then determine whether the issue can be reproduced during the backend build; done means the build completes successfully without the socket timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, graphql
Domain
backend, ci-cd, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.