bad error message: Upload failed with status 'rejected'.
Metadata
Current evaluation
Closed as covered by canonical/charmcraft#78, which was intended to expose store rejection reasons; no resolving Charmcraft PR or commit was cited.
Resolution: closed superseded
Reason: Maintainers closed it because #78 already tracked exposing upload failure reasons, stating that “#78 should cover exposing this error.” That issue was later closed without a cited client-side PR or commit.
Evaluated by: mr-cal-bot
No scores available.
Issue body
$ charmcraft version # from the beta channel
0.7.0
$ charmcraft upload --charm-file ubuntu-juju-qa.charm
Upload failed with status 'rejected'.
I have no idea what it was rejected. Adding a -v isn't much better.
$ charmcraft upload --charm-file ubuntu-juju-qa.charm -v
2021-01-26 20:12:58,984 charmcraft DEBUG Starting charmcraft version 0.7.0
2021-01-26 20:12:58,984 charmcraft.main DEBUG Raw pre-parsed sysargs: flags={'help': False, 'verbose': True, 'quiet': False} filtered=['upload', '--charm-file', 'ubuntu-juju-qa.charm']
2021-01-26 20:12:58,984 charmcraft.main DEBUG General parsed sysargs: command='upload' args=['--charm-file', 'ubuntu-juju-qa.charm']
2021-01-26 20:12:58,985 charmcraft.main DEBUG Command parsed sysargs: Namespace(charm_file=PosixPath('ubuntu-juju-qa.charm'))
2021-01-26 20:12:58,986 charmcraft.commands.store DEBUG Starting to push ubuntu-juju-qa.charm
2021-01-26 20:13:00,237 charmcraft.commands.store DEBUG Uploading bytes ended, id f8d909a4-6cba-4ea0-ab77-a2265725a46e
2021-01-26 20:13:00,238 charmcraft.commands.store DEBUG Hitting the store: POST https://api.staging.charmhub.io/v1/charm/ubuntu-juju-qa/revisions {'upload-id': 'f8d909a4-6cba-4ea0-ab77-a2265725a46e'}
2021-01-26 20:13:00,238 charmcraft.commands.store DEBUG Loading credentials from file: '/home/heather/snap/charmcraft/common/config/charmcraft.credentials'
2021-01-26 20:13:00,920 charmcraft.commands.store DEBUG Store ok: 200
2021-01-26 20:13:00,921 charmcraft.commands.store DEBUG Upload f8d909a4-6cba-4ea0-ab77-a2265725a46e started, got status url /v1/charm/ubuntu-juju-qa/revisions/review?upload-id=f8d909a4-6cba-4ea0-ab77-a2265725a46e
2021-01-26 20:13:00,921 charmcraft.commands.store DEBUG Hitting the store: GET https://api.staging.charmhub.io/v1/charm/ubuntu-juju-qa/revisions/review?upload-id=f8d909a4-6cba-4ea0-ab77-a2265725a46e None
2021-01-26 20:13:01,457 charmcraft.commands.store DEBUG Store ok: 200
2021-01-26 20:13:01,458 charmcraft.commands.store DEBUG Status checked: {'revisions': [{'errors': None, 'revision': 5, 'status': 'scanned', 'upload-id': 'f8d909a4-6cba-4ea0-ab77-a2265725a46e'}]}
2021-01-26 20:13:02,459 charmcraft.commands.store DEBUG Hitting the store: GET https://api.staging.charmhub.io/v1/charm/ubuntu-juju-qa/revisions/review?upload-id=f8d909a4-6cba-4ea0-ab77-a2265725a46e None
2021-01-26 20:13:03,147 charmcraft.commands.store DEBUG Store ok: 200
2021-01-26 20:13:03,148 charmcraft.commands.store DEBUG Status checked: {'revisions': [{'errors': [{'code': 'review-error', 'message': "Cannot insert SHA3-384 '94df3789a0b59cf9c5d53bb8e306914b4114c8aae50b207449a563ecdd613f394b49023838bdc8cf18c9b2fa5fb4d947'. A snap revision with that digest already exists in the database."}], 'revision': 5, 'status': 'rejected', 'upload-id': 'f8d909a4-6cba-4ea0-ab77-a2265725a46e'}]}
2021-01-26 20:13:03,148 charmcraft.commands.store INFO Upload failed with status 'rejected'.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | Closed as covered by canonical/charmcraft#78, which was intended to expose store rejection reasons; no resolving Charmcraft PR or commit was cited. | |
| stealth/space-bunny-alpha | — | closed superseded | Closed as covered by charmcraft#78, which tracked exposing Charmhub's upload rejection reason instead of only the rejected status. | |
| stealth/space-bunny-alpha | — | closed superseded | Tracked by canonical/charmcraft#78 after maintainers confirmed it covered exposing upload rejection reasons. No Charmcraft client fix was ultimately implemented. | |
| stealth/space-bunny-alpha | — | closed superseded | Deferred to #78, later implemented by merged PR #239 (commit 88382452) to display store-provided upload rejection errors. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as superseded by PR #78, which exposes the underlying rejection reason in standard output. The vague 'rejected' status now includes the specific error message instead of requiring verbose mode. | |
| qwen/qwen3.6-35b-a3b | — | — | The upload rejection error was improved to display the underlying API reason. The issue was closed as superseded by PR #78, which implements exposing the detailed error message in normal operation. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as superseded by PR #78. The upload command returned a generic rejected error. Verbose mode revealed the actual cause: a duplicate SHA3-384 digest. PR #78 will expose this detailed error message in standard operation. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Superseded by PR #78, which exposes the underlying API rejection reason in standard output instead of requiring verbose mode. |
Update history
No update history recorded yet.
Related work
-
Duplicate Of:
canonical/charmcraft#78
(confidence 99%)
Its title was “Show the failure reason when an Upload goes wrong,” and maintainers explicitly said it covered #231.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #78 Show the failure reason when an Upload goes wrong | charmcraft | closed | Upload failure-message enhancement was closed without a client fix after being deferred to server-side snapstore-server bug #1914787; no resolving Charmcraft PR or commit was cited. | |
| #459 internal error for "charmcraft revisions" | charmcraft | closed | Closed with no documented fix, closing comment, or linked PR or commit; no repository change could be reliably tied to the closure. |