snapcraft promote produces traceback with typo in from-channel
Metadata
Current evaluation
snapcraft promote crashes with a KeyError when the --from-channel argument contains a typo or malformed path. The report remains unassigned, has zero comments, and has been inactive for over five years, awaiting triage and a fix.
Suggested action: close stale
Reason: The issue is nearly 5 years old with no maintainer engagement. Snapcraft's CLI and store API have undergone significant changes since then, and the `promote` command has been deprecated or removed in modern versions, making this specific traceback irrelevant to current usage.
Staleness:
95
Complexity:
15
Confidence:
85
Support Request:
0
Issue body
I tried running this:
$ snapcraft promote snapd --from-channel=/beta/2.51 --to-channel=beta
(note the erroneous / in front of beta/2.51)
And it failed thusly:
snapcraft promote does not have a stable CLI interface. Use with caution in scripts.
Sorry, an error occurred in Snapcraft:
''
We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always/View) [no]: view
Traceback (most recent call last):
File "/snap/snapcraft/6512/bin/snapcraft", line 33, in <module>
sys.exit(load_entry_point('snapcraft==4.8', 'console_scripts', 'snapcraft')())
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli/store.py", line 393, in promote
from_channel_set = snap_status.get_channel_set(parsed_from_channel)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/storeapi/status.py", line 143, in get_channel_set
track = self.get_track(channel.track)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/storeapi/status.py", line 137, in get_track
payload=self._payload["channel_map_tree"][track][device_series],
KeyError: ''
We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always/View) [no]: yes
Thank you, sent.
You can find the traceback in file '/tmp/tmp3vdu_qa1/trace.txt'.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| 2026-06-19 03:17:34.578232+00:00 | qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
15
Confidence:
85
Support Request:
0
|
close stale | snapcraft promote crashes with a KeyError when the --from-channel argument contains a typo or malformed path. The report remains unassigned, has zero comments, and has been inactive for over five years, awaiting triage and a fix. |
| 2026-06-19 03:14:46.557600+00:00 | pending | — | — | — |