fatal: detected dubious ownership in repository at '/root/project' when ran with --use-lxd
Metadata
Current evaluation
A reused LXD instance kept the first user's raw.idmap, making version: git builds fail for a later user; this was reproduced across core18/20/22 and fixed by a craft-providers update.
Suggested action: close resolved
Reason: mr-cal reproduced the failure across core18, core20, and core22 and traced it to the reused instance retaining user1's raw.idmap, leaving user2's mounted project owned by nobody. Commit 9ab9a75dc (snapcraft#4032) updates craft-providers to 1.7.2, containing the subsequent ownership-handling fix.
Evaluated by: mr-cal-bot
Impact:
42
Quick Win:
20
Complexity:
48
Confidence:
94
Actionability:
90
Issue body
Snapcraft 7.1.3 on Kinetic
```
mkdir foo
cd foo
snapcraft init
sed -i 's/version:.*/version: git/' snap/snapcraft.yaml
git init .
snapcraft --use-lxd # ... LP#1990297
snapcraft --use-lxd
# ...
Determining the version from the project repo (version: git).
fatal: detected dubious ownership in repository at '/root/project'
To add an exception for this directory, call:
git config --global --add safe.directory /root/project
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
42
Quick Win:
20
Complexity:
48
Confidence:
94
Actionability:
90
|
close resolved | A reused LXD instance kept the first user's raw.idmap, making version: git builds fail for a later user; this was reproduced across core18/20/22 and fixed by a craft-providers update. | |
| stealth/space-bunny-alpha |
Impact:
48
Quick Win:
15
Complexity:
66
Confidence:
86
Actionability:
90
|
close resolved | A reused LXD container retained the first user's raw.idmap, breaking version: git builds for another user; craft-providers 1.7.2 later fixed the ownership handling. | |
| stealth/space-bunny-alpha |
Impact:
40
Quick Win:
16
Complexity:
45
Confidence:
80
Actionability:
75
|
keep open | LXD builds with version: git fail on Git's dubious-ownership check; the reported Snapcraft 7.1.3 path is reproducible, but no confirmed fix is evidenced. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
20
Quick Win:
12
Staleness:
95
Complexity:
40
Confidence:
75
Support Request:
30
|
close stale | snapcraft --use-lxd fails with Git dubious ownership error when using version: git. Issue is 4 years old with no maintainer interaction. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
20
Confidence:
85
Support Request:
30
|
close stale | Git dubious ownership error when running snapcraft with --use-lxd due to container UID mapping. Issue is over 3 years old with no maintainer engagement or comments. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
25
Confidence:
85
Support Request:
90
|
close not a bug | Git safe.directory error when running snapcraft --use-lxd as root in a container. Issue is inactive for over 3 years with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
10
|
close stale | Snapcraft 7.1.3 fails with Git dubious ownership error when using --use-lxd due to container UID mapping. Issue is over three years old with no maintainer response or comments. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#4032
(confidence 96%)
Commit 9ab9a75dc bumps craft-providers to the version that fixed LXD ownership handling.
Related issues
No related issues found above the similarity threshold.