Bug 1045282

Summary: [abrt] youtube-dl: urllib2.py:1186:do_open:URLError: <urlopen error [Errno 111] Connection refused>
Product: [Fedora] Fedora Reporter: Mallikarjun <mallikarjunspatil>
Component: youtube-dlAssignee: Till Maas <opensource>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: i, metherid, opensource
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/15b4c94cae44cbdcd31390c30f0a94ed9115fa61
Whiteboard: abrt_hash:a85bdae201681908036acfd9fd17ab6bb473d179
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-10 11:06:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Mallikarjun 2013-12-20 04:31:35 UTC
Version-Release number of selected component:
youtube-dl-2013.11.25.3-1.fc18

Additional info:
reporter:       libreport-2.1.10
cmdline:        python /usr/bin/youtube-dl -o dec11.flv http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=
dso_list:       python-libs-2.7.5-9.fc20.x86_64
executable:     /usr/bin/youtube-dl
kernel:         3.11.10-301.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
urllib2.py:1186:do_open:URLError: <urlopen error [Errno 111] Connection refused>

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/bin/youtube-dl/__main__.py", line 18, in <module>
    youtube_dl.main()
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 693, in main
    _real_main(argv)
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 683, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 805, in download
    self.extract_info(url)
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 428, in extract_info
    ie_result = ie.extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 131, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/generic.py", line 149, in _real_extract
    new_url = self._test_redirect(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/generic.py", line 131, in _test_redirect
    response = opener.open(HeadRequest(url))
  File "/usr/lib64/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/usr/lib64/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 1216, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib64/python2.7/urllib2.py", line 1186, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 111] Connection refused>

Local variables in innermost frame:
err: error(111, 'Connection refused')
h: <httplib.HTTPConnection instance at 0x2ddc3f8>
self: <urllib2.HTTPHandler instance at 0x2ddcea8>
req: <youtube_dl.extractor.generic.HeadRequest instance at 0x2ddce60>
headers: {'Host': 'ieeexplore.ieee.org', 'Connection': 'close', 'User-Agent': 'Python-urllib/2.7'}
host: 'ieeexplore.ieee.org'
http_class: <class httplib.HTTPConnection at 0x27deef0>

Comment 1 Mallikarjun 2013-12-20 04:31:40 UTC
Created attachment 839357 [details]
File: backtrace

Comment 2 Mallikarjun 2013-12-20 04:31:43 UTC
Created attachment 839358 [details]
File: environ

Comment 3 Fedora Admin XMLRPC Client 2015-02-09 00:16:24 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Till Maas 2015-02-10 11:06:19 UTC
There is no a proper error message:
$ youtube-dl http://localhost:1/
[generic] localhost:1: Requesting header
WARNING: Could not send HEAD request to http://localhost:1/: <urlopen error [Errno 111] Connection refused>
[generic] localhost:1: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 111] Connection refused> (caused by URLError(error(111, 'Connection refused'),))

Reference: https://github.com/rg3/youtube-dl/issues/1194#issuecomment-73622925