Skip to content

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

Description

@nteodosio

Check existing issues

  • 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

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

https://treeherder.mozilla.org/logviewer?job_id=573086536&repo=autoland&task=DGg8cWn2SCSwSE15vfULlQ.0&lineNumber=107498

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions