You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airflow.apache.org by Sumit Maheshwari <ms...@apache.org> on 2018/05/15 06:45:18 UTC
Facing SSL issue with dev/airflow-pr tool
Hi folks,
I am getting *SSL: TLSV1_ALERT_PROTOCOL_VERSION* errors when running
dev/airflow-pr tool. My pip version is 10.0.1 and python version is 2.7.10.
Please let me know if anyone has any pointers to fix that.
$ python
Python 2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
$ pip -V
pip 10.0.1 from
/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/pip
(python 2.7)
$ pip list |grep urllib3
urllib3 1.22
$ dev/airflow-pr merge 3300
>> Running command: git rev-parse --abbrev-ref HEAD
Resetting git to remove any changes
>> Running command: git reset --hard
Restoring head pointer to master
>> Running command: git checkout master
Already on 'master'
>> Running command: git branch
Traceback (most recent call last):
File "dev/airflow-pr", line 1084, in <module>
cli()
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 722, in __call__
return self.main(*args, **kwargs)
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 697, in main
rv = self.invoke(ctx)
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 535, in invoke
return callback(*args, **kwargs)
File "dev/airflow-pr", line 1018, in merge
main(pr_num, local=False)
File "dev/airflow-pr", line 829, in main
branches = get_json("%s/branches" % GITHUB_API_BASE)
File "dev/airflow-pr", line 115, in get_json
response = urllib.urlopen(request).read().decode('utf-8')
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 154, in urlopen
return opener.open(url, data, timeout)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 431, in open
response = self._open(req, data)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 449, in _open
'_open', req)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 409, in _call_chain
result = func(*args)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 1240, in https_open
context=self._context)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1
alert protocol version (_ssl.c:590)>
Thanks,
Sumit
Re: Facing SSL issue with dev/airflow-pr tool
Posted by Sumit Maheshwari <su...@gmail.com>.
Thanks for the reply Kaxil.
Yeah, I too figured out that issue is with my laptop's OpenSSL lib and
python installed on it. So upgraded OpenSSL and installed python3.6, and
created a new virtualenv for now.
On Tue, May 15, 2018 at 1:07 PM, Naik Kaxil <k....@reply.com> wrote:
> Hi Sumit,
>
> I think it is unrelated to the PR tool. Please check the below link:
>
> https://stackoverflow.com/questions/44316292/ssl-
> sslerror-tlsv1-alert-protocol-version
>
> Try running: pip install requests[security]
>
> Regards,
> Kaxil
>
> On 15/05/2018, 07:46, "Sumit Maheshwari" <ms...@apache.org> wrote:
>
> Hi folks,
>
> I am getting *SSL: TLSV1_ALERT_PROTOCOL_VERSION* errors when running
> dev/airflow-pr tool. My pip version is 10.0.1 and python version is
> 2.7.10.
> Please let me know if anyone has any pointers to fix that.
>
>
>
> $ python
> Python 2.7.10 (default, Feb 7 2017, 00:08:15)
> [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
>
> $ pip -V
> pip 10.0.1 from
> /Users/sumitm/work/incubator-airflow/venv/lib/python2.7/
> site-packages/pip
> (python 2.7)
>
> $ pip list |grep urllib3
> urllib3 1.22
>
>
> $ dev/airflow-pr merge 3300
> >> Running command: git rev-parse --abbrev-ref HEAD
> Resetting git to remove any changes
> >> Running command: git reset --hard
> Restoring head pointer to master
> >> Running command: git checkout master
> Already on 'master'
> >> Running command: git branch
> Traceback (most recent call last):
> File "dev/airflow-pr", line 1084, in <module>
> cli()
> File
> "/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/
> site-packages/click-6.7-py2.7.egg/click/core.py",
> line 722, in __call__
> return self.main(*args, **kwargs)
> File
> "/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/
> site-packages/click-6.7-py2.7.egg/click/core.py",
> line 697, in main
> rv = self.invoke(ctx)
> File
> "/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/
> site-packages/click-6.7-py2.7.egg/click/core.py",
> line 1066, in invoke
> return _process_result(sub_ctx.command.invoke(sub_ctx))
> File
> "/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/
> site-packages/click-6.7-py2.7.egg/click/core.py",
> line 895, in invoke
> return ctx.invoke(self.callback, **ctx.params)
> File
> "/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/
> site-packages/click-6.7-py2.7.egg/click/core.py",
> line 535, in invoke
> return callback(*args, **kwargs)
> File "dev/airflow-pr", line 1018, in merge
> main(pr_num, local=False)
> File "dev/airflow-pr", line 829, in main
> branches = get_json("%s/branches" % GITHUB_API_BASE)
> File "dev/airflow-pr", line 115, in get_json
> response = urllib.urlopen(request).read().decode('utf-8')
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/urllib2.py",
> line 154, in urlopen
> return opener.open(url, data, timeout)
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/urllib2.py",
> line 431, in open
> response = self._open(req, data)
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/urllib2.py",
> line 449, in _open
> '_open', req)
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/urllib2.py",
> line 409, in _call_chain
> result = func(*args)
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/urllib2.py",
> line 1240, in https_open
> context=self._context)
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/urllib2.py",
> line 1197, in do_open
> raise URLError(err)
> urllib2.URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION]
> tlsv1
> alert protocol version (_ssl.c:590)>
>
>
>
> Thanks,
> Sumit
>
>
>
>
> Kaxil Naik
>
> Data Reply
> 2nd Floor, Nova South
> 160 Victoria Street, Westminster
> London SW1E 5LB - UK
> phone: +44 (0)20 7730 6000
> k.naik@reply.com
> www.reply.com
>
Re: Facing SSL issue with dev/airflow-pr tool
Posted by Naik Kaxil <k....@reply.com>.
Hi Sumit,
I think it is unrelated to the PR tool. Please check the below link:
https://stackoverflow.com/questions/44316292/ssl-sslerror-tlsv1-alert-protocol-version
Try running: pip install requests[security]
Regards,
Kaxil
On 15/05/2018, 07:46, "Sumit Maheshwari" <ms...@apache.org> wrote:
Hi folks,
I am getting *SSL: TLSV1_ALERT_PROTOCOL_VERSION* errors when running
dev/airflow-pr tool. My pip version is 10.0.1 and python version is 2.7.10.
Please let me know if anyone has any pointers to fix that.
$ python
Python 2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
$ pip -V
pip 10.0.1 from
/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/pip
(python 2.7)
$ pip list |grep urllib3
urllib3 1.22
$ dev/airflow-pr merge 3300
>> Running command: git rev-parse --abbrev-ref HEAD
Resetting git to remove any changes
>> Running command: git reset --hard
Restoring head pointer to master
>> Running command: git checkout master
Already on 'master'
>> Running command: git branch
Traceback (most recent call last):
File "dev/airflow-pr", line 1084, in <module>
cli()
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 722, in __call__
return self.main(*args, **kwargs)
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 697, in main
rv = self.invoke(ctx)
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File
"/Users/sumitm/work/incubator-airflow/venv/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py",
line 535, in invoke
return callback(*args, **kwargs)
File "dev/airflow-pr", line 1018, in merge
main(pr_num, local=False)
File "dev/airflow-pr", line 829, in main
branches = get_json("%s/branches" % GITHUB_API_BASE)
File "dev/airflow-pr", line 115, in get_json
response = urllib.urlopen(request).read().decode('utf-8')
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 154, in urlopen
return opener.open(url, data, timeout)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 431, in open
response = self._open(req, data)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 449, in _open
'_open', req)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 409, in _call_chain
result = func(*args)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 1240, in https_open
context=self._context)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1
alert protocol version (_ssl.c:590)>
Thanks,
Sumit
Kaxil Naik
Data Reply
2nd Floor, Nova South
160 Victoria Street, Westminster
London SW1E 5LB - UK
phone: +44 (0)20 7730 6000
k.naik@reply.com
www.reply.com