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

youtube-dl not working time to time #3041

Closed
hcevikbas opened this issue Jun 3, 2014 · 3 comments
Closed

youtube-dl not working time to time #3041

hcevikbas opened this issue Jun 3, 2014 · 3 comments

Comments

@hcevikbas
Copy link

@hcevikbas hcevikbas commented Jun 3, 2014

Hi guys,

today i get this error when i try to download videos "Unable to download webpage: <urlopen error [Errno 104] Connection reset by peer>"

I didn't do anything. No update centos or youtube-dl.

After this error i update both of them but nothing changed.

System stop when downloading.

Results on php

/usr/local/bin/youtube-dl --verbose -R 15 --continue -o source/1401823921.avi 'https://www.youtube.com/watch?v=BQMfJ03N1WQ'

output: array (
0 => '[youtube] Setting language',
1 => '[youtube] BQMfJ03N1WQ: Downloading webpage',
2 => '[youtube] BQMfJ03N1WQ: Downloading video info webpage',
)
ret: 1

Results on ssh terminal

[root@xxx ~]# /usr/local/bin/youtube-dl --verbose -R 15 --continue -o source/1401823921.avi 'https://www.youtube.com/watch?v=BQMfJ03N1WQ'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-R', '15', '--continue', '-o', 'source/1401823921.avi', 'https://www.youtube.com/watch?v=BQMfJ03N1WQ']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.06.02
[debug] Python version 2.6.6 - Linux-2.6.32-431.17.1.el6.x86_64-x86_64-with-centos-6.5-Final
[debug] Proxy map: {}
[youtube] Setting language
[youtube] BQMfJ03N1WQ: Downloading webpage
[youtube] BQMfJ03N1WQ: Downloading video info webpage
ERROR: unable to download video info webpage: <urlopen error [Errno 104] Connection reset by peer>
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 196, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1214, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 591, in https_open
return self.do_open(HTTPSConnectionV3, req)
File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
raise URLError(err)


How can i fix it ?

@ghost
Copy link

@ghost ghost commented Jun 4, 2014

Hi,
can you try again with --prefer-insecure? Looks like ssl error to me.

@phihag
Copy link
Contributor

@phihag phihag commented Jun 4, 2014

This is definitly not an SSL error, but simply a network error - the remote end hung up on the connection. Can you reproduce the problem? How often does it occur? I'd assume that this is either a temporary fault of YouTube, or a temporary fault in your Internet connection, or malicious RST packet injection by your ISP.

@mpenkov
Copy link

@mpenkov mpenkov commented Aug 15, 2018

It's been a while since this has been originally reported, and the reporting user hasn't provided the requested info.

I think we can close this ticket.

@dstftw dstftw closed this Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.