LXD device gets corrupted when ssh connection is closed
Metadata
Current evaluation
Snapcraft LXD build instance fails to restart after SSH disconnect/VM reboot because the craft-state disk device points at a transient /run/user/<uid>/<pid> path that no longer exists. Unlabelled, zero comments, 245 days old.
Suggested action: needs triage
Reason: No labels, no assignee, and zero comments from any maintainer in 245 days, so this has never been triaged. The root cause is identifiable from the log — craft-application's state service (craft_application/services/state.py) places its state dir under $XDG_RUNTIME_DIR/<pid>, which is wiped on session end/reboot, leaving the LXD disk-/tmp/craft-state device with a missing source path. It is a real, reproducible bug (not a support question) but needs maintainer assessment of where the fix belongs (craft-application state dir location vs craft-providers device handling).
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
50
Quick Win:
22.5
Staleness:
75
Complexity:
55
Confidence:
65
Support Request:
10
|
needs triage | Snapcraft LXD build instance fails to restart after SSH disconnect/VM reboot because the craft-state disk device points at a transient /run/user/<uid>/<pid> path that no longer exists. Unlabelled, zero comments, 245 days old. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
60
Confidence:
85
Support Request:
10
|
close stale | LXD instance fails to start after SSH disconnect due to missing transient user runtime path. No maintainer activity or comments for 205 days. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
40
Confidence:
85
Support Request:
10
|
needs triage | LXD device fails to start after SSH disconnect due to missing ephemeral source path. Untriaged, 191 days old, no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
80
Complexity:
45
Confidence:
85
Support Request:
10
|
needs triage | LXD disk device fails to start after SSH disconnect or VM restart due to a missing temporary source path. Open for 169 days with zero comments or labels; needs triage and assignment. |
Update history
No update history recorded yet.
Related work
-
Related To:
craft-application#786
(confidence 60%)
feat: add a state service — introduced the state dir that is bind-mounted into the LXD instance as disk-/tmp/craft-state and sourced from XDG_RUNTIME_DIR, the path that goes missing.
-
Related To:
craft-application#838
(confidence 55%)
fix(StateService): add g+rwx to the state dir — shows the state dir location/permissions are an active area of change in the same service implicated here.
Related issues
No related issues found above the similarity threshold.