Connection closed at byte while downloading file thorugh nginx which is hosted on AWS

0

Small size of file getting download but more than 40-50 mb file does not download. My application hosted on AWS. EBS and Load balancer has setup.


wget "https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run"
--2019-09-23 19:23:42--  https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run
Resolving example.com (example.com)... 3.121.133.224, 52.28.206.243
Connecting to example.com (example.com)|3.121.133.224|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1761639037 (1.6G) [application/x-makeself]
Saving to: ubuntu_with_dependencies_1.7.3.0.run

ubuntu_with_dependencies_1.7.3.0.run?action   2%[=>                                                                                                               ]  34.93M  5.63MB/s    in 11s     

2019-09-23 19:23:54 (3.18 MB/s) - Connection closed at byte 36631912. Retrying.

--2019-09-23 19:23:55--  (try: 2)  https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run
Connecting to example.com (example.com)|3.121.133.224|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1761639037 (1.6G) [application/x-makeself]
Saving to: ubuntu_with_dependencies_1.7.3.0.run

ubuntu_with_dependencies_1.7.3.0.run?action   2%[=>                                                                                                               ]  40.82M  2.82MB/s    in 13s     

2019-09-23 19:24:10 (3.16 MB/s) - Connection closed at byte 42799086. Retrying.

--2019-09-23 19:24:12--  (try: 3)  https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run
Connecting to example.com (example.com)|3.121.133.224|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1761639037 (1.6G) [application/x-makeself]
Saving to: ubuntu_with_dependencies_1.7.3.0.run

ubuntu_with_dependencies_1.7.3.0.run?action   1%[>                                                                                                                ]  19.93M  1.33MB/s    in 11s     

2019-09-23 19:24:24 (1.82 MB/s) - Connection closed at byte 42799086. Retrying.

--2019-09-23 19:24:27--  (try: 4)  https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run
Connecting to example.com (example.com)|3.121.133.224|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1761639037 (1.6G) [application/x-makeself]
Saving to: ubuntu_with_dependencies_1.7.3.0.run

               ubuntu_with_dependencies_1.7   0%[                                                                                                                 ]   2.05M   902KB/s   

Bipin Patel

Posted 2019-09-24T07:28:06.760

Reputation: 1

Can you reproduce the behavior using a different computer using a different internet connection? What happens if you try the same thing from another instance in the VPC (spot instance for example), or from another VPC? What do the Nginx / ELB logs say - please edit your question to include the access / error logs for one of the failed requests. – Tim – 2019-09-24T23:19:41.313

No answers