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

Redtube videos - connection reset by the peer #2635

Closed
abhishekbarua opened this issue Mar 26, 2014 · 6 comments
Closed

Redtube videos - connection reset by the peer #2635

abhishekbarua opened this issue Mar 26, 2014 · 6 comments

Comments

@abhishekbarua
Copy link

@abhishekbarua abhishekbarua commented Mar 26, 2014

1]abhishek@abhishek-asus:~ > youtube-dl --verbose http://www.redtube.com/298457
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.redtube.com/298457']
[debug] youtube-dl version 2013.08.29
[debug] Python version 2.7.5+ - Linux-3.11.0-12-generic-x86_64-with-LinuxMint-16-petra
[debug] Proxy map: {}
[RedTube] 298457: Downloading webpage
ERROR: Unable to download webpage: [Errno 104] Connection reset by peer; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 133, in _request_webpage
return compat_urllib_request.urlopen(url_or_request)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1187, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1045, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 409, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "/usr/lib/python2.7/socket.py", line 476, in readline
data = self._sock.recv(self._rbufsize)

@phihag
Copy link
Contributor

@phihag phihag commented Mar 27, 2014

Maybe we should clarify that this is a network error. Since download works fine for me from both the US and Germany, this error is almost certainly either

  • A temporary outage. Can you reproduce it now?
  • Censorship by your network provider, ISP, or country. Can you reproduce the issue from multiple networks? Which ISP and network (home/work/school) are you using? If you don't want to tell that publicly, feel free to contact me in private.
@abhishekbarua
Copy link
Author

@abhishekbarua abhishekbarua commented Mar 27, 2014

I am using an updated Ubuntu 13.10.
I removed and re-installed the program youtube-dl.
The number of lines of error decreased. Is it an Ubuntu specific problem?

[130]abhishek@abhishek-asus:~ > youtube-dl --verbose http://www.redtube.com/298457
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.redtube.com/298457']
[debug] youtube-dl version 2013.08.29
[debug] Python version 2.7.5+ - Linux-3.11.0-12-generic-x86_64-with-LinuxMint-16-petra
[debug] Proxy map: {}
[RedTube] 298457: Downloading webpage
[RedTube] 298457: Extracting information
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 324, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 103, in extract
return self._real_extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/redtube.py", line 30, in _real_extract
webpage, u'title')
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 247, in _html_search_regex
res = self._search_regex(pattern, string, name, default, fatal, flags)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 237, in _search_regex
raise ExtractorError(u'Unable to extract %s' % _name)
ExtractorError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

@phihag
Copy link
Contributor

@phihag phihag commented Mar 27, 2014

Reinstalling will not do anything. Your first post indicated this to be a network problem.

Your second post shows a different error. Can you reproduce it with the current version of youtube-dl? To update, please type

sudo apt-get remove -y youtube-dl
sudo curl https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
hash -r

and then post the output you get for

youtube-dl --verbose http://www.redtube.com/298457
@abhishekbarua
Copy link
Author

@abhishekbarua abhishekbarua commented Mar 29, 2014

Your solution worked. Thanks a lot for taking the trouble to give me the solution.
A line or a two about the root cause analysis and why your solution worked, will be great from my learning point of view.

@baishi
Copy link

@baishi baishi commented Jul 8, 2016

For my case I have to use curl with -L to folllow the redirection

sudo curl https://yt-dl.org/latest/youtube-dl -L -o /usr/local/bin/youtube-dl

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 8, 2016

Seems @abhishekbarua's problem is already solved. Closing.

@baishi The installation guide is already updated.

@yan12125 yan12125 closed this Jul 8, 2016
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.