Skip to content

get: fails to clone with ssh #8681

Closed
Closed
@dekromp

Description

@dekromp

Bug Report

Issue name

get: "Failed to clone repo" when attempting to clone via ssh.

Description

dvc get fails to clone git repository via ssh in general. git clone works.

Reproduce

Reproduction requires a git repository and a configured ssh key for git. In the example, the .dvc files are located in a data branch.

% dvc get --rev v0.0.1 -o data/my-dvc-proj [email protected]:XXXXX/my-dvc-proj.git data
ERROR: failed to get 'data' from '[email protected]:XXXXX/my-dvc-proj.git' - Failed to clone repo '[email protected]:XXXXX/my-dvc-proj.git' to '/var/folders/r7/6vs0hrvd2gl7z35_lm1vr5g00000gn/T/tmpkvxn3v7vdvc-clone'

git clone works as expected

% git clone -b data [email protected]:XXXXX/my-dvc-proj.git
Cloning into 'my-dvc-proj'...
remote: Enumerating objects: 138, done.
remote: Counting objects: 100% (138/138), done.
remote: Compressing objects: 100% (86/86), done.
remote: Total 138 (delta 60), reused 112 (delta 36), pack-reused 0
Receiving objects: 100% (138/138), 585.58 KiB | 5.86 MiB/s, done.
Resolving deltas: 100% (60/60), done.

Expected

Cloning should work.

Environment information

Output of dvc doctor:

DVC version: 2.37.0 (pip)
---------------------------------
Platform: Python 3.8.12 on macOS-12.6.1-x86_64-i386-64bit
Subprojects:
	dvc_data = 0.28.4
	dvc_objects = 0.14.0
	dvc_render = 0.0.15
	dvc_task = 0.1.6
	dvclive = 1.0.1
	scmrepo = 0.1.4
Supports:
	http (aiohttp = 3.8.3, aiohttp-retry = 2.8.3),
	https (aiohttp = 3.8.3, aiohttp-retry = 2.8.3)

Additional Information (if any):

Opened separate issue as proposed in #7670.

Metadata

Metadata

Assignees

Labels

A: data-syncRelated to dvc get/fetch/import/pull/pushresearchupstreamIssues which need to be resolved in an upstream dependency

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions