← Back to issue list

Pulling from private repository without known_hosts hangs forever

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2052928
Type
issue
State
open
Author
~gbeuzeboc
Labels
—
Created
Updated
Closed
—

Current evaluation

SSH-based Git source pulls can block indefinitely when the host is absent from known_hosts because the host-key prompt is obscured by pull progress; clear core22 reproducer, no maintainer triage.

Suggested action: needs triage

Reason: The report includes a concrete core22 snapcraft.yaml, --bind-ssh context, and logs showing Git's authenticity prompt followed by a 309.9-second wait until Enter is pressed. It remains a reproducible build-blocking defect, but no maintainer comment, label, or triage is present; the fix should surface the prompt or apply explicit noninteractive host-key handling.

Evaluated by: mr-cal-bot

Impact: 48 Quick Win: 22 Complexity: 42 Confidence: 86 Actionability: 78

Issue body

Having a part source pulling from private repo without known_hosts (--bind-ssh passed) hangs until I press a key in the terminal. It appears that the Yes/No question from git is hidden by the snapcraft progress line. Snapcraft should return an error or the input question. To reproduce: snapcraft.yaml: name: nope base: core22 version: '0.1' summary: Nope description: |   Nope grade: devel confinement: strict parts:   my-part:     plugin: python     source: <email address hidden>:nope/doesnt_exist.git ----------------- logs: Starting Snapcraft 8.0.2 Logging execution to '.../.local/state/snapcraft/log/snapcraft-20240212-112649.931680.log' Running on amd64 for amd64 Launching instance... Starting instance Starting Snapcraft 8.0.2 Logging execution to '/tmp/snapcraft.log' Running on amd64 for amd64 Initializing parts lifecycle Installing build-packages Installing build-snaps The authenticity of host 'github.com (140.82.121.3)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names Pulling my-part - (309.9s) Pulling my-part # <--- Hit enter otherwise it hangs Failed to pull source: command ['git', 'clone', '--recursive', '<email address hidden>:nope/doesnt_exist.git', '/root/parts/my-part/src'] exited with code 128. Make sure sources are correctly specified. Failed to execute pack in instance. Recommended resolution: Run the same command again with --debug to shell into the environment if you wish to introspect this failure. Full execution log: '.../.local/state/snapcraft/log/snapcraft-20240212-112649.931680.log'

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 48
Quick Win: 22
Complexity: 42
Confidence: 86
Actionability: 78
needs triage SSH-based Git source pulls can block indefinitely when the host is absent from known_hosts because the host-key prompt is obscured by pull progress; clear core22 reproducer, no maintainer triage.
stealth/space-bunny-alpha
Impact: 50
Quick Win: 18
Complexity: 55
Confidence: 89
Actionability: 80
needs triage SSH-based Git source pulls can block indefinitely when the remote host is absent from known_hosts because the host-key prompt is obscured by pull progress; clear core22 reproducer, no maintainer triage.
qwen3.6-35b-a3b-mtp-q6
Impact: 60
Quick Win: 36
Staleness: 95
Complexity: 40
Confidence: 50
Support Request: 10
needs triage SSH pull from private repo hangs when known_hosts is missing; SSH authenticity prompt is hidden by snapcraft progress bar. Untriaged, 935 days old.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 20
Confidence: 85
Support Request: 5
needs triage Snapcraft hangs when pulling from a private Git repo without known_hosts because the SSH host key prompt is hidden by the progress bar. Unlabelled, no maintainer response, inactive for ~2.4 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 25
Confidence: 85
Support Request: 5
needs triage Snapcraft hangs when cloning from a private repo without known_hosts because the SSH host key prompt is hidden by the progress bar. Unlabelled, zero comments, inactive for over two years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 35
Confidence: 80
Support Request: 5
needs triage Snapcraft hangs indefinitely when cloning from a private SSH repo without known_hosts because the host key prompt is hidden by the progress bar. Unlabelled and inactive for over two years.

Update history

Date Change
created

Related issues

Issue Project State Summary Similarity
#933 pulling repository can hang execution indefinitely craft-parts open Git sources still allow credential prompts during clone and fetch, so inaccessible private or nonexistent HTTPS repositories can leave pull blocked indefinitely.
79%