sunnysnowhi commented on issue #9399: Failed to execute 'superset load_examples ' , ssl.SSLError URL: https://github.com/apache/incubator-superset/issues/9399#issuecomment-614484617 hi @willbarrett I set a proxy in /etc/profile in my CentOS , and now the server can connect internet and wget https://xxx can work properly. But when I execute superset load_examples , the error still exists, so I guess it is not the network problem... Does anyone known how to solve it? (superset-venv) [root@cn-north-5a-modelarts-insight superset-venv]# superset load_examples 2020-04-16 14:53:10,454:INFO:root:logging was configured successfully 2020-04-16 14:53:10,505:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'> Loading examples metadata and related data into examples Creating default CSS templates Loading energy related dataset 2020-04-16 14:53:11,738:INFO:root:Database.get_sqla_engine(). Masked URL: sqlite:////root/.superset/superset.db Traceback (most recent call last): File "/usr/local/python3/lib/python3.6/urllib/request.py", line 1318, in do_open encode_chunked=req.has_header('Transfer-encoding')) File "/usr/local/python3/lib/python3.6/http/client.py", line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/python3/lib/python3.6/http/client.py", line 1285, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/python3/lib/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/python3/lib/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/usr/local/python3/lib/python3.6/http/client.py", line 964, in send self.connect() File "/usr/local/python3/lib/python3.6/http/client.py", line 1400, in connect server_hostname=server_hostname) File "/usr/local/python3/lib/python3.6/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/usr/local/python3/lib/python3.6/ssl.py", line 814, in __init__ self.do_handshake() File "/usr/local/python3/lib/python3.6/ssl.py", line 1068, in do_handshake self._sslobj.do_handshake() File "/usr/local/python3/lib/python3.6/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:777) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/superset-venv/bin/superset", line 31, in <module> cli() File "/opt/superset-venv/lib/python3.6/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/opt/superset-venv/lib/python3.6/site-packages/flask/cli.py", line 586, in main return super(FlaskGroup, self).main(*args, **kwargs) File "/opt/superset-venv/lib/python3.6/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/opt/superset-venv/lib/python3.6/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/opt/superset-venv/lib/python3.6/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/opt/superset-venv/lib/python3.6/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/opt/superset-venv/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/opt/superset-venv/lib/python3.6/site-packages/flask/cli.py", line 426, in decorator return __ctx.invoke(f, *args, **kwargs) File "/opt/superset-venv/lib/python3.6/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/opt/superset-venv/lib/python3.6/site-packages/superset/cli.py", line 142, in load_examples load_examples_run(load_test_data, only_metadata, force) File "/opt/superset-venv/lib/python3.6/site-packages/superset/cli.py", line 83, in load_examples_run examples.load_energy(only_metadata, force) File "/opt/superset-venv/lib/python3.6/site-packages/superset/examples/energy.py", line 39, in load_energy data = get_example_data("energy.json.gz") File "/opt/superset-venv/lib/python3.6/site-packages/superset/examples/helpers.py", line 73, in get_example_data content = request.urlopen(f"{BASE_URL}{filepath}?raw=true").read() File "/usr/local/python3/lib/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout) File "/usr/local/python3/lib/python3.6/urllib/request.py", line 526, in open response = self._open(req, data) File "/usr/local/python3/lib/python3.6/urllib/request.py", line 544, in _open '_open', req) File "/usr/local/python3/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/usr/local/python3/lib/python3.6/urllib/request.py", line 1361, in https_open context=self._context, check_hostname=self._check_hostname) File "/usr/local/python3/lib/python3.6/urllib/request.py", line 1320, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:777)>
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
