Snapcraft crashes with UnicodeDecodeError
Metadata
Current evaluation
Closed as stale. Failed OpenSSL decryption corrupted snapcraft.cfg; restoring the correct key fixed the build. No Snapcraft code change was made.
Resolution: closed stale
Reason: The reporter identified failed OpenSSL decryption as the likely cause and confirmed that restoring the correct key fixed the issue. A maintainer later closed the report as stale, with no resolving PR or commit.
Evaluated by: mr-cal-bot
No scores available.
Issue body
We just updated our travis-ci configuration in a project by running
snapcraft enable-ci travis --refresh
The resulting build on Travis fails with a UnicodeDecodeError while parsing the resulting snapcraft.cfg:
Snapped neuronify_v1.3.2+git7.f143c69_amd64.snap
Pushing neuronify_v1.3.2+git7.f143c69_amd64.snap
After pushing, an attempt will be made to release to 'edge'
Using local configuration ('.snapcraft/snapcraft.cfg'), changes will not be persisted.
Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 9, in <module>
load_entry_point('snapcraft==2.43.1', 'console_scripts', 'snapcraft')()
File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/store.py", line 161, in push
snapcraft.push(snap_file, channel_list)
File "/usr/lib/python3/dist-packages/snapcraft/_store.py", line 537, in push
store = storeapi.StoreClient()
File "/usr/lib/python3/dist-packages/snapcraft/storeapi/_store_client.py", line 30, in __init__
self.conf = config.Config()
File "/usr/lib/python3/dist-packages/snapcraft/config.py", line 171, in __init__
self.load()
File "/usr/lib/python3/dist-packages/snapcraft/config.py", line 226, in load
config = f.read()
File "/usr/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 1: invalid start byte
We would appreciate it if you created a bug report at
https://launchpad.net/snapcraft/+filebug with the above text included.
Script failed with status 1
The complete build log can be found here:
https://travis-ci.org/CINPLA/neuronify/jobs/438987878
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Closed as stale. Failed OpenSSL decryption corrupted snapcraft.cfg; restoring the correct key fixed the build. No Snapcraft code change was made. | |
| stealth/space-bunny-alpha | — | closed stale | A malformed, unsuccessfully decrypted snapcraft.cfg caused the decode failure; the user restored the correct key, and the issue was later closed as stale. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without resolution: snapcraft#1796813 documents a UTF-8 decoding crash in generated Travis snapcraft.cfg files, with no linked fix or commit. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without resolution; no fixing PR or commit was identified for the Travis CI UnicodeDecodeError in Snapcraft 2.43.1. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. Snapcraft crashed with a UnicodeDecodeError when parsing snapcraft.cfg containing invalid UTF-8 bytes during Travis CI builds. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
100
Complexity:
15
Confidence:
95
Support Request:
5
|
close stale | Snapcraft crashes with UnicodeDecodeError when reading snapcraft.cfg during push. Inactive for ~8 years with no maintainer response or labels. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
25
Confidence:
90
Support Request:
5
|
close stale | Snapcraft 2.43.1 crashes with a UnicodeDecodeError when reading snapcraft.cfg during CI push. Open for nearly 8 years with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
100
Complexity:
15
Confidence:
90
Support Request:
5
|
close stale | Snapcraft 2.43.1 crashes with a UnicodeDecodeError when parsing snapcraft.cfg during Travis CI builds. Unlabeled, no comments, inactive for ~7.7 years. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Caused By:
CINPLA/neuronify@f143c69674b5239e7e3fa95e99a2685fa3652c0c
(confidence 85%)
The reporter cited this commit as evidence that enable-ci failed to update the Travis matrix correctly.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1867052 Snapcraft crashes while creating snap for ssh-audit | snapcraft (launchpad) | closed | Closed as stale after prolonged inactivity; no Snapcraft PR or commit was cited as resolving the ssh-audit FileNotFoundError. | |
| #4515 Fails to parse erroenous build output and freezes indefinitely | snapcraft | closed | UTF-8 decoding crash fixed in craft-cli #222 and pulled into Snapcraft via #4528 (craft-cli 2.5.1); report closed as resolved. |