← Back to issue list

Snapcraft 9: cannot create directory '/snap/command-chain': Permission denied Edit

View original Github issue

Metadata

Project
snapcraft
Number
#6328
Type
issue
State
closed
Author
nteodosio
Labels
Status: Triaged Type: Bug
Created
Updated
Closed

Current evaluation

Confirmed as a Snapcraft 9 destructive-mode regression and moved to internal SNAPCRAFT-1366, but no public fixing PR or commit was recorded before closure.

Resolution: closed stale

Reason: The issue was closed without a public resolving PR, commit, or closing explanation after becoming inactive. The available record contains only reproduction confirmation and creation of internal ticket SNAPCRAFT-1366.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Check existing issues - [x] I've verified that this bug isn't described by any existing issues. ### Bug description Describe the bug, including any relevant context or screenshotFirefox builds on Docker in destructive mode fail under snapcraft 9.0.0: [task 2026-06-16T10:09:13.478+00:00] Building gnome/gpu/wrapper [task 2026-06-16T10:09:13.486+00:00] :: + make -j60 GPU_INTERFACE=gpu-2404 [task 2026-06-16T10:09:13.487+00:00] :: install -D -m755 gpu-wrapper "/snap/command-chain"/"gpu-2404-wrapper" [task 2026-06-16T10:09:13.489+00:00] :: install: cannot create directory '/snap/command-chain': Permission denied [task 2026-06-16T10:09:13.489+00:00] :: make: *** [Makefile:9: gpu-2404-wrapper] Error 1 [task 2026-06-16T10:09:13.491+00:00] Failed to run the build script for part 'gnome/gpu/wrapper'. [task 2026-06-16T10:09:13.491+00:00] Detailed information: [task 2026-06-16T10:09:13.491+00:00] :: + make -j60 GPU_INTERFACE=gpu-2404 [task 2026-06-16T10:09:13.491+00:00] :: install: cannot create directory '/snap/command-chain': Permission denied [task 2026-06-16T10:09:13.491+00:00] :: make: *** [Makefile:9: gpu-2404-wrapper] Error 1 Reverting to 8.x fixes the issue. Originally reported in https://launchpad.net/bugs/2160018. ### Steps to reproduce @mr-cal confirmed the bug so a reproducer is already available. ### Environment Snapcraft in destructive mode in Docker: https://searchfox.org/firefox-main/source/taskcluster/docker/snap-coreXX-build/Dockerfile. ### snapcraft.yaml ```yaml If the issue is specific to a project, share its `snapcraft.yaml`. This field automatically renders as YAML, so you don't need to add special formatting. ``` ### Log output ```shell https://treeherder.mozilla.org/logviewer?job_id=573086536&repo=autoland&task=DGg8cWn2SCSwSE15vfULlQ.0&lineNumber=107498 ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Confirmed as a Snapcraft 9 destructive-mode regression and moved to internal SNAPCRAFT-1366, but no public fixing PR or commit was recorded before closure.
stealth/space-bunny-alpha — closed resolved Fixed in PR #6399: the GPU extension Makefile’s default target became a no-op, preventing Snapcraft 9 destructive-mode builds from installing wrappers prematurely.
stealth/space-bunny-alpha — closed stale Confirmed as a Snapcraft 9 destructive-mode regression and moved to internal ticket SNAPCRAFT-1366; no public fixing PR or commit was recorded before closure.
qwen/qwen3.6-35b-a3b — — Closed after triage. Snapcraft 9.0.0 introduced a regression causing permission denied errors when creating /snap/command-chain in destructive Docker mode. The bug was confirmed and tracked via internal ticket SNAPCRAFT-1366.
qwen/qwen3.6-35b-a3b
Staleness: 10
Complexity: 60
Confidence: 90
Support Request: 0
keep open Bug report: Snapcraft 9 fails to create directory '/snap/command-chain' with 'Permission denied' in Docker destructive mode. Issue is triaged, confirmed by maintainer, and has a minimal reproducer available.
qwen3.6-35b-a3b-mtp-q6
Staleness: 0
Complexity: 40
Confidence: 95
Support Request: 5
keep open Snapcraft 9.0.0 fails to create /snap/command-chain in Docker destructive mode due to a permission error. Triaged and confirmed by maintainers with a minimal reproducer and potential fix location identified.

Update history

Date Change
closed

Related work

  • Related To: launchpad#2160018 (confidence 100%)

    Original Launchpad bug cited by the Snapcraft issue; no resolving change is shown.

Related issues

Issue Project State Summary Similarity
#2160018 Snapcraft 9.0.0: cannot create directory '/snap/command-chain': Permission denied snapcraft (launchpad) closed Closed as a duplicate of canonical/snapcraft#6328, the primary tracker for the Snapcraft 9 destructive-mode /snap/command-chain permission regression (internal SNAPCRAFT-1366).
96%
#2098999 Snapcraft auth does not create dir needed and errors out snapcraft (launchpad) open macOS Snapcraft 8.6.3 legacy remote-build authentication failed because the ~/Library/Application Support/snapcraft directory was absent; the affected legacy builder was removed in Snapcraft 9.0, leaving this report stale.
70%
#6419 Destructive mode with sudo: /snap/bin/snapcraft: 4: exec: /bin/snapcraft: not found snapcraft open Confirmed snap shim failure under sudo in Docker when SNAP is stripped; setting SNAP=/snap/snapcraft/current works around the launcher error, but ownership remains unresolved.
70%