Pulling from private repository without known_hosts hangs forever
Metadata
Current evaluation
SSH pull from private repo hangs when known_hosts is missing; SSH authenticity prompt is hidden by snapcraft progress bar. Untriaged, 935 days old.
Suggested action: needs triage
Reason: No maintainer has responded or added labels in 935 days. The issue has clear reproduction steps and describes a real UX bug (SSH prompt hidden by progress bar), but the extreme age and lack of engagement mean it needs triage to determine if it's still relevant or has been fixed.
Impact:
60
Quick Win:
36.0
Staleness:
95
Complexity:
40
Confidence:
50
Support Request:
10
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 |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
60
Quick Win:
36.0
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. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
25
Confidence:
80
Support Request:
10
|
close stale | Snapcraft hangs when cloning from a private Git repo without known_hosts because the SSH host key prompt is hidden by the progress spinner. Unlabelled, inactive for over two years with no maintainer response. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2053119 Pulling from private repository with passphrase protected key fails | snapcraft (launchpad) | open | snapcraft --bind-ssh fails to prompt for passphrase when using passphrase-protected SSH keys to clone private repositories. Untriaged, no maintainer response after 933 days. | |
| #5661 Snapcraft hangs forever if a GitHub repository doesn't exist | snapcraft | open | Snapcraft hangs indefinitely on Pulling when a git source is missing/private because git prompts for credentials. Triaged by maintainers; fix identified (GIT_TERMINAL_PROMPT=0) but must be implemented in craft-parts, not yet done. | |
| #933 pulling repository can hang execution indefinitely | craft-parts | open | Git source pull hangs indefinitely when repo is private/nonexistent because git prompts for credentials with no way to provide them. Reported Dec 2024, no maintainer response, no fix found in current code. |