-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
treeverse/scmrepo
#378Labels
Description
Bug Report
get/import : Name or service not known
Description
I have a situation where my computer is behind a proxy, and needs to access a Git repository outside of the proxy network. When running dvc get/import behind my proxy, my file is not downloaded and I get the following error: [Errno -2] Name or service not known.
Configure Git to use a proxy
$ git config --global http.proxy http://proxy.address.com:port/
$ git config --global https.proxy http://proxy.address.com:port/git clone , dvc pull ... Everything is OK
But when I want to download file tracked by DVC into other workspace
$ dvc get GIT_URL PATH
Cloning REPOSITORY.git|███████████████████████████████████████████████████████████████████████████████████████|
Compressing |234/234 [00:20, 599obj/s]ERROR: unexpected error - HTTPSConnectionPool(host='GITLAB.ADDRESS.COM', port=443):
Max retries exceeded with url: /REPOSITORY.git/info/refs?service=git-upload-pack (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fd9e93e8190>: Failed to resolve 'GITLAB.ADDRESS.COM' ([Errno -2] Name or service not known)")): HTTPSConnectionPool(host='GITLAB.ADDRESS.COM', port=443): Max retries exceeded with url: REPOSITORY.git/info/refs?service=git-upload-pack (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fd9e93e8190>: Failed to resolve 'GITLAB.ADDRESS.COM' ([Errno -2] Name or service not known)")): <urllib3.connection.HTTPSConnection object at 0x7fd9e93e8190>: Failed to resolve 'GITLAB.ADDRESS.COM' ([Errno -2] Name or service not known): [Errno -2] Name or service not knownReproduce
dvc get GIT_URL_BEHIND_A_PROXY PATHExpected
dvc get/import use the git proxy config
Environment information
Output of dvc doctor:
$ dvc doctor
DVC version: 3.55.1 (deb)
-------------------------
Platform: Python 3.10.8 on Linux-3.10.0-1160.el7.x86_64-x86_64-with-glibc2.39
Subprojects:
Supports:
azure (adlfs = 2024.7.0, knack = 0.12.0, azure-identity = 1.17.1),
gdrive (pydrive2 = 1.20.0),
gs (gcsfs = 2024.6.1),
hdfs (fsspec = 2024.6.1, pyarrow = 17.0.0),
http (aiohttp = 3.10.5, aiohttp-retry = 2.8.3),
https (aiohttp = 3.10.5, aiohttp-retry = 2.8.3),
oss (ossfs = 2023.12.0),
s3 (s3fs = 2024.6.1, boto3 = 1.35.7),
ssh (sshfs = 2024.6.0),
webdav (webdav4 = 0.10.0),
webdavs (webdav4 = 0.10.0),
webhdfs (fsspec = 2024.6.1)
Config:
Global: /home/luhg/.config/dvc
System: /etc/xdg/dvc
Cache types: hardlink, symlink
Cache directory: xfs on /dev/mapper/nvme-data2
Caches: local
Remotes: ssh, local
Workspace directory: xfs on /dev/mapper/nvme-data2
Repo: dvc, git
Repo.site_cache_dir: /var/tmp/dvc/repo/c86ae03c82a8ffc47d6317a3b6788f2dAdditional Information (if any):