Dealing with proxy: OSError: Tunnel connection failed: 407 Proxy Authentication Required #13355
Unanswered
jperge
asked this question in
Q&A / Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to run superset on a mac, and run into a problem with proxy authentication:
Any thoughts on how to resolve this?
superset_init | ######################################################################
superset_init |
superset_init |
superset_init | Init Step 4/4 [Starting] -- Loading examples
superset_init |
superset_init |
superset_init | ######################################################################
superset_init |
superset_init | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_init | /usr/local/lib/python3.7/site-packages/flask_caching/init.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_init | "Flask-Caching: CACHE_TYPE is set to null, "
superset_init | DEBUG:superset.models.core:Database.get_sqla_engine(). Masked URL: postgresql://superset:XXXXXXXXXX@db:5432/superset
superset_init | Loaded your LOCAL configuration at [/app/docker/pythonpath_dev/superset_config.py]
superset_init | Loading examples metadata and related data into examples
superset_init | Creating default CSS templates
superset_init | Loading energy related dataset
superset_init | Traceback (most recent call last):
superset_init | File "/usr/local/lib/python3.7/urllib/request.py", line 1350, in do_open
superset_init | encode_chunked=req.has_header('Transfer-encoding'))
superset_init | File "/usr/local/lib/python3.7/http/client.py", line 1277, in request
superset_init | self._send_request(method, url, body, headers, encode_chunked)
superset_init | File "/usr/local/lib/python3.7/http/client.py", line 1323, in _send_request
superset_init | self.endheaders(body, encode_chunked=encode_chunked)
superset_init | File "/usr/local/lib/python3.7/http/client.py", line 1272, in endheaders
superset_init | self._send_output(message_body, encode_chunked=encode_chunked)
superset_init | File "/usr/local/lib/python3.7/http/client.py", line 1032, in _send_output
superset_init | self.send(msg)
superset_init | File "/usr/local/lib/python3.7/http/client.py", line 972, in send
superset_init | self.connect()
superset_init | File "/usr/local/lib/python3.7/http/client.py", line 1439, in connect
superset_init | super().connect()
superset_init | File "/usr/local/lib/python3.7/http/client.py", line 948, in connect
superset_init | self._tunnel()
superset_init | File "/usr/local/lib/python3.7/http/client.py", line 927, in _tunnel
superset_init | message.strip()))
superset_init | OSError: Tunnel connection failed: 407 Proxy Authentication Required
superset_init |
superset_init | During handling of the above exception, another exception occurred:
superset_init |
superset_init | Traceback (most recent call last):
superset_init | File "/usr/local/bin/superset", line 33, in
superset_init | sys.exit(load_entry_point('apache-superset', 'console_scripts', 'superset')())
superset_init | File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in call
superset_init | return self.main(*args, **kwargs)
superset_init | File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 586, in main
superset_init | return super(FlaskGroup, self).main(*args, **kwargs)
superset_init | File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
superset_init | rv = self.invoke(ctx)
superset_init | File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
superset_init | return _process_result(sub_ctx.command.invoke(sub_ctx))
superset_init | File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
superset_init | return ctx.invoke(self.callback, **ctx.params)
superset_init | File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
superset_init | return callback(*args, **kwargs)
superset_init | File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
superset_init | return f(get_current_context(), *args, **kwargs)
superset_init | File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 426, in decorator
superset_init | return __ctx.invoke(f, *args, **kwargs)
superset_init | File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
superset_init | return callback(*args, **kwargs)
superset_init | File "/app/superset/cli.py", line 187, in load_examples
superset_init | load_examples_run(load_test_data, only_metadata, force)
superset_init | File "/app/superset/cli.py", line 125, in load_examples_run
superset_init | examples.load_energy(only_metadata, force)
superset_init | File "/app/superset/examples/energy.py", line 41, in load_energy
superset_init | data = get_example_data("energy.json.gz")
superset_init | File "/app/superset/examples/helpers.py", line 74, in get_example_data
superset_init | content = request.urlopen(f"{BASE_URL}{filepath}?raw=true").read()
superset_init | File "/usr/local/lib/python3.7/urllib/request.py", line 222, in urlopen
superset_init | return opener.open(url, data, timeout)
superset_init | File "/usr/local/lib/python3.7/urllib/request.py", line 525, in open
superset_init | response = self._open(req, data)
superset_init | File "/usr/local/lib/python3.7/urllib/request.py", line 543, in _open
superset_init | '_open', req)
superset_init | File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
superset_init | result = func(*args)
superset_init | File "/usr/local/lib/python3.7/urllib/request.py", line 1393, in https_open
superset_init | context=self._context, check_hostname=self._check_hostname)
superset_init | File "/usr/local/lib/python3.7/urllib/request.py", line 1352, in do_open
superset_init | raise URLError(err)
superset_init | urllib.error.URLError: <urlopen error Tunnel connection failed: 407 Proxy Authentication Required>
superset_init exited with code 1
Beta Was this translation helpful? Give feedback.
All reactions