← Back to issue list

"snapcraft list-keys" fails on macOS 15.1.1 (24B91)

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2089796
Type
issue
State
open
Author
~pbadams
Labels
—
Created
Updated
Closed
—

Current evaluation

Untriaged macOS/Homebrew failure in Snapcraft 8.4.4: list-keys invokes snap keys --json, which cannot resolve /proc/self/fd/0; no maintainer response or resolution is recorded.

Suggested action: needs triage

Reason: The report provides exact versions, stderr, and a complete traceback; current _get_usable_keys() directly invokes snap keys --json and only tests generic subprocess failure. With no labels, comments, assignee, direct subprocess result, or maintainer assessment, the macOS platform contract and root cause need triage.

Evaluated by: mr-cal-bot

Impact: 40 Quick Win: 14 Complexity: 52 Confidence: 82 Actionability: 72

Issue body

snapcraft installed on macOS 15.1.1 using brew. Authenticated to my account with snapcraft login: snapcraft list-keys error: readlink /proc/self/fd/0: no such file or directory Sorry, an error occurred in Snapcraft: Command '[PosixPath('/opt/homebrew/bin/snap'), 'keys', '--json']' returned non-zero exit status 1. Traceback (most recent call last): File "/opt/homebrew/Cellar/snapcraft/8.4.4/libexec/lib/python3.13/site-packages/snapcraft_legacy/cli/legacy.py", line 27, in legacy_run run() ~~~^^ File "/opt/homebrew/Cellar/snapcraft/8.4.4/libexec/lib/python3.13/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/snapcraft/8.4.4/libexec/lib/python3.13/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/opt/homebrew/Cellar/snapcraft/8.4.4/libexec/lib/python3.13/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/opt/homebrew/Cellar/snapcraft/8.4.4/libexec/lib/python3.13/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/snapcraft/8.4.4/libexec/lib/python3.13/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/opt/homebrew/Cellar/snapcraft/8.4.4/libexec/lib/python3.13/site-packages/snapcraft_legacy/cli/assertions.py", line 39, in list_keys snapcraft_legacy.list_keys() ~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/opt/homebrew/Cellar/snapcraft/8.4.4/libexec/lib/python3.13/site-packages/snapcraft_legacy/_store.py", line 413, in list_keys keys = list(_get_usable_keys()) File "/opt/homebrew/Cellar/snapcraft/8.4.4/libexec/lib/python3.13/site-packages/snapcraft_legacy/_store.py", line 374, in _get_usable_keys subprocess.check_output([snap_path, "keys", "--json"], universal_newlines=True) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 472, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ **kwargs).stdout ^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 577, in run raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '[PosixPath('/opt/homebrew/bin/snap'), 'keys', '--json']' returned non-zero exit status 1.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 40
Quick Win: 14
Complexity: 52
Confidence: 82
Actionability: 72
needs triage Untriaged macOS/Homebrew failure in Snapcraft 8.4.4: list-keys invokes snap keys --json, which cannot resolve /proc/self/fd/0; no maintainer response or resolution is recorded.
stealth/space-bunny-alpha
Impact: 40
Quick Win: 18
Complexity: 45
Confidence: 90
Actionability: 80
needs triage Snapcraft 8.4.4 on macOS 15.1.1 fails to list keys because its snap subprocess errors on /proc/self/fd/0; the report remains unlabeled and untriaged.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 30
Staleness: 85
Complexity: 40
Confidence: 60
Support Request: 10
needs triage snapcraft list-keys fails on macOS 15.1.1 with /proc/self/fd/0 error. Issue is 645 days old with no maintainer response or labels.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 45
Confidence: 85
Support Request: 10
close stale snapcraft list-keys fails on macOS due to legacy code accessing Linux-only /proc paths. The report is 602 days old with no maintainer interaction, labels, or assignee.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 10
close stale snapcraft list-keys fails on macOS 15.1.1 with readlink error. Issue is 601 days old, no maintainer response, and likely obsolete due to OS/Python version changes.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 45
Confidence: 75
Support Request: 10
needs triage Unlabelled bug report showing snapcraft list-keys fails on macOS due to Linux-specific path resolution. No maintainer response or activity in over 1.5 years. Requires assessment to determine if macOS support is deprecated or if the legacy code needs patching.

Update history

Date Change
created

Related work

  • Related To: snapcraft#6144 (confidence 95%)

    Commit 30c9fcd19 migrated key management; current code makes list-keys a removed alias for keys, but this does not demonstrate that snap keys works on macOS.

Related issues

No related issues found above the similarity threshold.