I searched a lot but no solution helped me with this problem where I get this error constantly.
HTTP request sent, awaiting response… Read error (Connection reset
by peer) in headers. Retrying.
I tried the following inputs.
wget url
wget -O url
wget -O url username="user" password="pass" host="host" (something like this)
I am just trying to download html from a secure website page but all the time it shows the error. So I tried to download any web page but still not working. Is it any server configuration problem?
asked Mar 28, 2018 at 19:53
6
This error can occur if you access a website via HTTP but it’s trying to redirect you to HTTPS
So if your command was
wget http://url
Try changing it to
wget https://url
answered Mar 11, 2021 at 5:43
congusbonguscongusbongus
12.8k6 gold badges70 silver badges96 bronze badges
I encountered a similar issue today, our IT team suggests to use «https» over «http» in the url and use «wget —no-check-certificate», it worked for me.
Websites may stop serving the unencrypted http transfer at some point, which might lead to the issue.
answered Jun 14, 2022 at 16:24
This following command works form me.
wget -O test.html http://url —auth-no-challenge —force-directories
answered Mar 29, 2018 at 8:36
GL YusufGL Yusuf
1122 gold badges2 silver badges9 bronze badges
try with «sudo» privilege, it worked for me.
sudo wget url
Waldi
38.6k6 gold badges26 silver badges75 bronze badges
answered Jun 9, 2022 at 7:15
I am using the following code to download a list of pdf files:
wget -i list.txt -A .pdf
Some pdf files are downloaded properly. However, some pdf files are not downloaded properly. When I check the log, I see the following report:
--2013-04-09 11:25:42-- http://amazon.com/111.pdf
Reusing existing connection to amazon.com:80.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: `111.pdf'
[ <=> ] 1,045 --.-K/s in 2m 9s
2013-04-09 11:27:51 (8.11 B/s) - Read error at byte 1045 (Connection reset by peer).Retrying.
--2013-04-09 11:27:52-- (try: 2) http://amazon.com/111.pdf
Connecting to amazon.com (amazon.com)|00.00.55.888|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2680728 (2.6M) [application/pdf]
Saving to: `111.pdf'
61% [==============================> ] 1,649,221 10.0K/s in 2m 41s
2013-04-09 11:30:41 (10.0 KB/s) - Read error at byte 1649221/2680728 (Connection reset by peer). Retrying.
--2013-04-09 11:30:43-- (try: 3) http://amazon.com/111.pdf
Connecting to amazon.com (amazon.com)|00.00.55.888|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2680728 (2.6M) [application/pdf]
Saving to: `111.pdf'
100%[==================================================>] 2,680,728 10.1K/s in 4m 22s
2013-04-09 11:35:11 (10.0 KB/s) - `111.pdf' saved [2680728/2680728]
I wonder why I can not open the pdf file 111.pdf? The above report says that it is 100% downloaded. Is it because of the connection reset by the peer?
I wonder if it is possible to put the wget in a loop for every file, in such a way that it does not exit the loop, until the download is done with no error?
I found the following loop, however, it gives an error. The code and the error is shown below:
Code:
while read -r link
do
wget -A .pdf
until [ $? = 0 ]
do
wget -A .pdf
done
done < ./list.txt
Error:
Try `wget --help' for more options.
wget: missing URL
Usage: wget [OPTION]... [URL]...
I am using Cygwin on Windows.
Please let me know if you have other suggestions as well.
Thank you for your help.
Содержание
- alpine:3.6 is unable to wget http://google.com #344
- Comments
- wget installation does not work on Alpine #73
- Comments
- Steps to reproduce
- Expected result
- Actual result
- [BUG] docker images not support right version of wget #421
- Comments
alpine:3.6 is unable to wget http://google.com #344
However, alpine:3.5 is fine.
Docker version 17.04.0-ce, build 78d1802
Bare metal host: openSUSE Leap 42.3 with 4.4.87-25-default kernel.
ping -c1 google.com works even on alpine:3.6 .
The text was updated successfully, but these errors were encountered:
I can’t reproduce: 😕
@tianon On what operating system did you tried it?
I cannot reproduce either (on my linux desktop):
Same on my macbook.
Do you use http proxy?
@ncopa Nope, no HTTP proxy is involved. Tried wget 127.0.0.1 as well, but no luck.
My test was also on a Linux desktop, but I’ve also just verified on http://play-with-docker.com/ for good measure (and it works fine there as well, so this is very likely something broken in your local environment).
Have you tried pulling the latest alpine:3.6 image ( docker pull alpine:3.6 )? Do you have any kind of firewall in place, including/especially one you don’t control, such as are common in many corporate and educational environments?
Yes, I tried alpine:3.6 as well:
There is probably some kind of firewall included, I am on closed corporate network (inbound-wise), but I don’t know anything about it. What I do see is that alpine:3.5 is fine and alpine:3.6 fails to connect. Still for sure it could be something in the network or in the underlying operating system.
If you know how could one debug it (e.g. from network perspective), I might give it a try.
@mnowaksuse: Alpine 3.6 packages Busybox 1.26.2, which is what provides wget in the default build, but it has a bug connecting to some servers or middleboxes: I’ve hit this when connecting to Nginx acting as a TCP proxy that would forward requests to a HTTP server.
The fix here might be to install the wget package, which provides the actual wget binary, as opposed to using Busybox for wget .
Alternatively, I believe the next Alpine version will include Busybox 1.27, where this issue is fixed. Can you try using alpine:edge here: docker run —rm alpine:edge wget http://google.com ?
Thanks @krallin! That’s probably it. apline:edge works just fine. That might explain why others who connected from different places with the same OS as me were able to use alpine:3.6 .
Источник
wget installation does not work on Alpine #73
Steps to reproduce
Expected result
dumb-init is installed, as it happens when using the ubuntu container, e.g..
Actual result
An error message is returned by wget:
Connecting to github.com (192.30.252.120:443)
wget: can’t execute ‘ssl_helper’: No such file or directory
wget: error getting response: Connection reset by peer
Any thoughts on this?
The text was updated successfully, but these errors were encountered:
Okay, forget it … it was a problem with the CA certificates on Alpine Linux. You need to run
before running wget , then it works 🙂
FYI for others coming across this, adding the above commands to my Dockerfile did not work, I needed to specifically add the ca-certificates to wget like this:
that worked perfectly and my image built with no problems.
openssl package may be required too:
apk update && apk add ca-certificates && update-ca-certificates && apk add openssl
How difficult would it be to make an apk package for dumb-init? We’re experienced in debian packaging but unfamiliar with alpine’s ecosystem and would love help if it’s possible
For those who arrive here, another solution is simply to use curl instead, if your idea is to run install scripts. It sounds even simpler, with less options to deal with — the default is to send to stdin for instance.
Источник
[BUG] docker images not support right version of wget #421
Describe the bug
wget download speedtest cli tool fail
command wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest.tgz
To Reproduce
create a new docker container.
You will see the fail log
Expected behavior
Wget download success then execute the nginx
Screenshots
Context
- OS: docker
- Speedtest-Tracker Version: 1.10.0
Additional context
We may need to add the following package into the docker image or docker file.
or rebuild the docker images self
The text was updated successfully, but these errors were encountered:
Hi i installed synology docker and always restart docker here is log:
Why not install this? If i try login ip no webpage.
date | stream | content |
---|---|---|
2020-12-19 21:28:52 | stdout | [s6-finish] sending all processes the KILL signal and exiting. |
2020-12-19 21:28:49 | stdout | [s6-finish] sending all processes the TERM signal. |
2020-12-19 21:28:49 | stdout | [s6-finish] waiting for services. |
2020-12-19 21:28:49 | stdout | [cont-finish.d] done. |
2020-12-19 21:28:49 | stdout | [cont-finish.d] executing container finish scripts. |
2020-12-19 21:28:48 | stdout | �[32mEnabling authentication�[39m |
2020-12-19 21:28:48 | stdout | AUTH variable set. Enabling authentication |
2020-12-19 21:28:48 | stdout | Base path is unset |
2020-12-19 21:28:48 | stdout | Telegram chat id and bot token unset |
2020-12-19 21:28:48 | stdout | Slack webhook is unset |
2020-12-19 21:28:48 | stdout | JWT secret exists |
2020-12-19 21:28:48 | stdout | App key exists |
2020-12-19 21:28:48 | stdout | �[32mNothing to migrate.�[39m |
2020-12-19 21:28:48 | stdout | Running database migrations |
2020-12-19 21:28:48 | stdout | Env file exists |
2020-12-19 21:28:48 | stdout | Database file exists |
2020-12-19 21:28:40 | stdout | Copying latest site files to config |
2020-12-19 21:28:40 | stdout | s6-applyuidgid: fatal: unable to exec /site/app/Bin/speedtest: No such file or directory |
2020-12-19 21:28:40 | stdout | cp: cannot stat ‘speedtest’: No such file or directory |
2020-12-19 21:28:40 | stdout | tar: can’t open ‘speedtest.tgz’: No such file or directory |
2020-12-19 21:28:40 | stdout | wget: error getting response: Connection reset by peer |
2020-12-19 21:28:39 | stdout | Connecting to bintray.com (108.168.194.93:443) |
2020-12-19 21:28:39 | stdout | Ookla GDPR and EULA accepted. Downloading Speedtest CLI. |
2020-12-19 21:28:39 | stdout | [cont-init.d] 50-speedtest: executing. |
2020-12-19 21:28:39 | stdout | [cont-init.d] 40-config: exited 0. |
2020-12-19 21:28:39 | stdout | Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please manually download/update the GeoIP2 db and save as /config/geoip2db/GeoLite2-City.mmdb |
2020-12-19 21:28:39 | stdout | [cont-init.d] 40-config: executing. |
2020-12-19 21:28:39 | stdout | [cont-init.d] 30-keygen: exited 0. |
2020-12-19 21:28:39 | stdout | using keys found in /config/keys |
2020-12-19 21:28:39 | stdout | [cont-init.d] 30-keygen: executing. |
2020-12-19 21:28:39 | stdout | [cont-init.d] 20-config: exited 0. |
2020-12-19 21:28:35 | stdout | [cont-init.d] 20-config: executing. |
2020-12-19 21:28:35 | stdout | [cont-init.d] 10-adduser: exited 0. |
2020-12-19 21:28:35 | stdout | |
2020-12-19 21:28:35 | stdout | ————————————- |
2020-12-19 21:28:35 | stdout | User gid: 101 |
2020-12-19 21:28:35 | stdout | User uid: 1024 |
2020-12-19 21:28:35 | stdout | |
2020-12-19 21:28:35 | stdout | ————————————- |
2020-12-19 21:28:35 | stdout | GID/UID |
2020-12-19 21:28:35 | stdout | ————————————- |
2020-12-19 21:28:35 | stdout | https://www.linuxserver.io/donate/ |
2020-12-19 21:28:35 | stdout | To support LSIO projects visit: |
2020-12-19 21:28:35 | stdout | |
2020-12-19 21:28:35 | stdout | ————————————- |
2020-12-19 21:28:35 | stdout | Brought to you by linuxserver.io |
2020-12-19 21:28:35 | stdout | |
2020-12-19 21:28:35 | stdout | |
2020-12-19 21:28:35 | stdout | || |/ || _/ |
2020-12-19 21:28:35 | stdout | | | __ | | | () | |
2020-12-19 21:28:35 | stdout | | | / __| | | / |
2020-12-19 21:28:35 | stdout | | | ___ _ __ |
2020-12-19 21:28:35 | stdout | _ () |
2020-12-19 21:28:35 | stdout | ————————————- |
2020-12-19 21:28:35 | stdout | |
2020-12-19 21:28:35 | stdout | usermod: no changes |
2020-12-19 21:28:35 | stdout | [cont-init.d] 10-adduser: executing. |
2020-12-19 21:28:35 | stdout | [cont-init.d] 01-envfile: exited 0. |
2020-12-19 21:28:35 | stdout | [cont-init.d] 01-envfile: executing. |
2020-12-19 21:28:35 | stdout | [cont-init.d] executing container initialization scripts. |
2020-12-19 21:28:35 | stdout | [fix-attrs.d] done. |
2020-12-19 21:28:35 | stdout | [fix-attrs.d] applying ownership & permissions fixes. |
2020-12-19 21:28:35 | stdout | [s6-init] ensuring user provided files have correct perms. exited 0. |
2020-12-19 21:28:35 | stdout | [s6-init] making user provided files available at /var/run/s6/etc. exited 0. |
2020-12-19 21:28:32 | stdout | [s6-finish] sending all processes the KILL signal and exiting. |
2020-12-19 21:28:29 | stdout | [s6-finish] sending all processes the TERM signal. |
2020-12-19 21:28:29 | stdout | [s6-finish] waiting for services. |
2020-12-19 21:28:29 | stdout | [cont-finish.d] done. |
2020-12-19 21:28:29 | stdout | [cont-finish.d] executing container finish scripts. |
2020-12-19 21:28:29 | stdout | [cont-init.d] 50-speedtest: exited 1. |
2020-12-19 21:28:29 | stdout | chmod: cannot access ‘/config/www/app/Bin/speedtest’: No such file or directory |
2020-12-19 21:28:28 | stdout | Clearing old jobs from queue |
2020-12-19 21:28:28 | stdout | �[32mEnabling authentication�[39m |
2020-12-19 21:28:27 | stdout | AUTH variable set. Enabling authentication |
2020-12-19 21:28:27 | stdout | Base path is unset |
2020-12-19 21:28:27 | stdout | Telegram chat id and bot token unset |
2020-12-19 21:28:27 | stdout | Slack webhook is unset |
2020-12-19 21:28:27 | stdout | JWT secret exists |
2020-12-19 21:28:27 | stdout | App key exists |
2020-12-19 21:28:27 | stdout | �[32mNothing to migrate.�[39m |
2020-12-19 21:28:27 | stdout | Running database migrations |
2020-12-19 21:28:27 | stdout | Env file exists |
2020-12-19 21:28:27 | stdout | Database file exists |
2020-12-19 21:28:19 | stdout | Copying latest site files to config |
2020-12-19 21:28:19 | stdout | s6-applyuidgid: fatal: unable to exec /site/app/Bin/speedtest: No such file or directory |
2020-12-19 21:28:19 | stdout | cp: cannot stat ‘speedtest’: No such file or directory |
2020-12-19 21:28:19 | stdout | tar: can’t open ‘speedtest.tgz’: No such file or directory |
2020-12-19 21:28:19 | stdout | wget: error getting response: Connection reset by peer |
2020-12-19 21:28:19 | stdout | Connecting to bintray.com (108.168.194.93:443) |
2020-12-19 21:28:19 | stdout | Ookla GDPR and EULA accepted. Downloading Speedtest CLI. |
2020-12-19 21:28:19 | stdout | [cont-init.d] 50-speedtest: executing. |
2020-12-19 21:28:19 | stdout | [cont-init.d] 40-config: exited 0. |
2020-12-19 21:28:19 | stdout | Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please manually download/update the GeoIP2 db and save as /config/geoip2db/GeoLite2-City.mmdb |
I don’t think that is a Synology problem. I use other devices and have the same result.
I believe some upstream package has been changed.
possible relate to #208
I’ve just run this command in a new container and it downloads fine. This line seems to me like it’s a network issue you are having:
Umm. I don’t think that is a network issue. I login to the docker container and run the wget and resulting in the same thing. However, I install the wget and ca-certificate the issue solved
how can install wget? if i write terminal container speedtest say no url
@felho001, You need to attache your docker container via docker exec -it default docker_name is speedtest
Источник
Comments
alexbepple
added a commit
to it-agile/financial-radar
that referenced
this issue
Feb 5, 2017
bbarker
added a commit
to bbarker/nix
that referenced
this issue
Sep 1, 2017
kitd
mentioned this issue
Feb 1, 2018
cheezenaan
added a commit
to cheezenaan-sandbox/sample_app_rev4
that referenced
this issue
May 30, 2018
matentzn
added a commit
to INCATools/ontology-development-kit
that referenced
this issue
May 15, 2019
Previously, it occassionally happened (EBI cluster, PHIPO vagrant server) that wget failed with a (connection reset by peer) error, see Yelp/dumb-init#73. The problem is solved by re-installing openssl and wget.
tkyi
mentioned this issue
Sep 11, 2019
This was referenced
Nov 12, 2019
chusiang
added a commit
to chusiang/ansible.dockerfile
that referenced
this issue
Dec 9, 2019
rtzm
mentioned this issue
Jun 11, 2020
mattburgess
added a commit
to dwp/docker-awscli
that referenced
this issue
Oct 28, 2020
`wget` doesn't work on Alpine when making a request via an HTTPS proxy. See Yelp/dumb-init#73 but the workarounds there don't work either.
mattburgess
added a commit
to dwp/docker-awscli
that referenced
this issue
Oct 28, 2020
`wget` doesn't work on Alpine when making a request via an HTTPS proxy. See Yelp/dumb-init#73 but the workarounds there don't work either.
tpai
added a commit
to tpai/web-scraper
that referenced
this issue
Jul 29, 2021
- Forum
- The Ubuntu Forum Community
- Other Discussion and Support
- Other OS Support and Projects
- Other Operating Systems
- Any Other OS
- wget; connection reset by peer!
-
wget; connection reset by peer!
I am using the following code to download a list of pdf files:
Code:
wget -i list.txt -A .pdf
Some pdf files are downloaded properly. However, some pdf files are not downloaded properly. When I check the log, I see the following error:
Code:
--2013-04-09 11:25:42-- http://amazon.com/111.pdf Reusing existing connection to amazon.com:80. HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9 Length: unspecified Saving to: `111.pdf' [ <=> ] 1,045 --.-K/s in 2m 9s 2013-04-09 11:27:51 (8.11 B/s) - Read error at byte 1045 (Connection reset by peer).Retrying. --2013-04-09 11:27:52-- (try: 2) http://amazon.com/111.pdf Connecting to amazon.com (amazon.com)|00.00.55.888|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2680728 (2.6M) [application/pdf] Saving to: `111.pdf' 61% [==============================> ] 1,649,221 10.0K/s in 2m 41s 2013-04-09 11:30:41 (10.0 KB/s) - Read error at byte 1649221/2680728 (Connection reset by peer). Retrying. --2013-04-09 11:30:43-- (try: 3) http://amazon.com/111.pdf Connecting to amazon.com (amazon.com)|00.00.55.888|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2680728 (2.6M) [application/pdf] Saving to: `111.pdf' 100%[==================================================>] 2,680,728 10.1K/s in 4m 22s 2013-04-09 11:35:11 (10.0 KB/s) - `111.pdf' saved [2680728/2680728]
I wonder why I can not open the pdf file 111.pdf? The above report says that it is 100% downloaded. Is it because of the connection reset by the peer?
I wonder if it is possible to put the wget in a loop for every file, in such a way that it does not exit the loop, until the download is done with no error?
I found the following loop, however, it gives an error. The code and the error is shown below:Code:
Code:
while read -r link do wget -A .pdf until [ $? = 0 ] do wget -A .pdf done done < ./list.txt
Error:
Code:
Try `wget --help' for more options. wget: missing URL Usage: wget [OPTION]... [URL]...
I am using Cygwin on Windows.
Thank you for your help.
Last edited by Si1414; April 15th, 2013 at 08:03 PM.
Reason: Apparently Solved!
-
Re: wget; connection reset by peer!
Hint for people who are interested:
I increased the download speed to 100K and also increased the random wait time between downloads. Apparently, this solves the problem.
Bookmarks
Bookmarks

Posting Permissions
View previous topic :: View next topic | |||||||||||
Author | Message | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
niranjana_km n00b Joined: 15 Mar 2014 |
|
||||||||||
Back to top |
|
||||||||||
khayyam Watchman Joined: 07 Jun 2012 |
|
||||||||||
Back to top |
|
||||||||||
niranjana_km n00b Joined: 15 Mar 2014 |
|
||||||||||
Back to top |
|
||||||||||
khayyam Watchman Joined: 07 Jun 2012 |
|
||||||||||
Back to top |
|
||||||||||
|
You cannot post new topics in this forum |