billowy-jewelry-4209
03/10/2022, 4:13 PMIssue
My Ingestion status is Failed. I attach log (screenshot).
Also when I try to execute 'datahub docker ingest-sample-data' I get error:
"ConfigurationError: Unable to connect to http://localhost:8080/config with status_code: 407. Please check your configuration and make sure you are talking to the DataHub GMS (usually <datahub-gms-host>:8080) or Frontend GMS API (usually <frontend>:9002/api/gms)."
Question
As I can understand I need to set Proxy for Datahub network. How can I do this? May be there is some related manual or FAQgreen-football-43791
03/10/2022, 4:35 PMsquare-activity-64562
03/10/2022, 4:47 PM0.8.26.6
. We had a temporary restriction starting 0.8.25
which has been removed nowbillowy-jewelry-4209
03/11/2022, 10:31 AMbillowy-jewelry-4209
03/11/2022, 10:41 AMuser@server:~$ datahub version
DataHub CLI version: 0.8.28.1
Python version: 3.9.5 (default, Nov 18 2021, 16:00:48)
[GCC 10.3.0]
billowy-jewelry-4209
03/14/2022, 3:04 PMenvironment:
- JAVA_OPTS=-Xms512m -Xmx512m -Dhttp.port=9002 -Dconfig.file=datahub-frontend/conf/application.conf
-Djava.security.auth.login.config=datahub-frontend/conf/jaas.conf -Dlogback.configurationFile=datahub-frontend/conf/logback.xml
-Dlogback.debug=false -Dpidfile.path=/dev/null
-Dhttp.proxyHost=server -Dhttp.proxyPort=port -Dhttp.proxyPassword=pass -Dhttp.proxyUser=user
-Dhttps.proxyHost=server -Dhttps.proxyPort=port -Dhttps.proxyPassword=pass -Dhttps.proxyUser=user
Do you have any ideas why this can happen and how to fix it? Backend can't install python libs because can't reach network. I think the reason is that it need proxy with username and password
I will be very grateful for your help!square-activity-64562
03/14/2022, 3:08 PMbillowy-jewelry-4209
03/14/2022, 3:33 PM'WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by '
"'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5644fd4c40>, 'Connection to <http://pypi.org|pypi.org> timed out. "
"(connect timeout=15)')': /simple/pip/\n"
After many reconnections to pypi.org you could see that there are no required libs for datahub.square-activity-64562
03/14/2022, 3:39 PMpypi
errors.square-activity-64562
03/14/2022, 3:40 PMlocalhost
to be datahub-gms
instead in the recipe in the UI? If this does not work please share the logs in text format (instead of screenshots) from the ingestion that fails as well as the recipe in text format (instead of screenshots)billowy-jewelry-4209
03/14/2022, 3:54 PMlocalhost
Datahub is accessable when I use link <http://192.168.xx.xx:9002/ingestion>
So this doesn't work
Recipe for MsSQL Source and logs from UI are attached.
JFYI:To access Ithernet on our server, I need authorization through a proxysquare-activity-64562
03/15/2022, 1:12 PMactions
containerbillowy-jewelry-4209
03/16/2022, 11:00 AMactions
container:
user@server:~/path$ docker exec -it datahub_datahub-actions_1 /bin/bash -c env | grep proxy
ftp_proxy=<http://user_proxy:pass_proxy@proxy_server>:proxy_port/
https_proxy=<http://user_proxy:pass_proxy@proxy_server>:proxy_port/
http_proxy=<http://user_proxy:pass_proxy@proxy_server>:proxy_port/
user@server:~/path$ docker logs datahub_datahub-actions_1
2022/03/16 10:34:44 Waiting for: <http://datahub-gms:8080/health>
2022/03/16 10:34:44 Received 407 from <http://datahub-gms:8080/health>. Sleeping 1s
2022/03/16 10:34:45 Received 407 from <http://datahub-gms:8080/health>. Sleeping 1s
...
billowy-jewelry-4209
03/16/2022, 12:52 PMactions
container and added proxy settings in that file. So now only pip uses proxy and all pypi errors are vanished.
By the way now I have "Failed" status for Ingestion. But it is another issue. Thanks a lot!square-activity-64562
03/16/2022, 12:53 PMbig-carpet-38439
03/16/2022, 4:30 PMbig-carpet-38439
03/16/2022, 4:31 PM/etc/pip.conf
?billowy-jewelry-4209
03/17/2022, 9:02 AM[global]
proxy=<http://user:password@server>:port/
And then added it in actions
container via `docker-compose.yml`:
datahub-actions:
depends_on:
...
environment:
...
volumes:
- ./pip.conf:/home/datahub/.pip/pip.conf
Pip can use both /etc/pip.conf
(system config) and `~/.pip/pip.conf`(local user config)
Issue: My server have access allow access to pip only via proxy authentification. So without proxy settings actions container couldn't reach the pypi servers.