I’m trying to upload a new version of Kicad, which is 1,7GBytes (it contains all the component libraries, which needs a lot of disk space), but snapcraft keeps returning this error:
FATAL ERROR: Data queue size is too large
snapcraft internal error: SnapDataExtractionError('kicad_8.0.6_amd64.snap')
The log contains this:
2024-11-06 10:23:23.086 Starting snapcraft, version 8.4.4
2024-11-06 10:23:23.086 Log verbosity level set to BRIEF
2024-11-06 10:23:23.086 Preparing application...
2024-11-06 10:23:23.087 Configuring application...
2024-11-06 10:23:23.087 Setting up ConfigService
2024-11-06 10:23:23.113 Build plan: platform=None, build_for=None
2024-11-06 10:23:23.113 Running snapcraft push on host
2024-11-06 10:23:23.175 snapcraft internal error: SnapDataExtractionError('kicad_8.0.6_amd64.snap')
2024-11-06 10:23:23.176 Traceback (most recent call last):
2024-11-06 10:23:23.176 File "/snap/snapcraft/12961/lib/python3.10/site-packages/snapcraft_legacy/_store.py", line 58, in get_data_from_snap_file
2024-11-06 10:23:23.176 output = subprocess.check_output(
2024-11-06 10:23:23.176 File "/snap/snapcraft/12961/usr/lib/python3.10/subprocess.py", line 421, in check_output
2024-11-06 10:23:23.176 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
2024-11-06 10:23:23.176 File "/snap/snapcraft/12961/usr/lib/python3.10/subprocess.py", line 526, in run
2024-11-06 10:23:23.176 raise CalledProcessError(retcode, process.args,
2024-11-06 10:23:23.176 subprocess.CalledProcessError: Command '['/snap/snapcraft/12961/usr/bin/unsquashfs', '-d', '/tmp/tmpklroelbu/squashfs-root', PosixPath('kicad_8.0.6_amd64.snap'), 'meta/snap.yaml', 'snap/manifest.yaml']' returned non-zero exit status 1.
2024-11-06 10:23:23.176
2024-11-06 10:23:23.176 During handling of the above exception, another exception occurred:
2024-11-06 10:23:23.176 Traceback (most recent call last):
2024-11-06 10:23:23.176 File "/snap/snapcraft/12961/lib/python3.10/site-packages/craft_application/application.py", line 568, in run
2024-11-06 10:23:23.176 return_code = self._run_inner()
2024-11-06 10:23:23.176 File "/snap/snapcraft/12961/lib/python3.10/site-packages/snapcraft/application.py", line 215, in _run_inner
2024-11-06 10:23:23.176 return_code = super()._run_inner()
2024-11-06 10:23:23.176 File "/snap/snapcraft/12961/lib/python3.10/site-packages/craft_application/application.py", line 549, in _run_inner
2024-11-06 10:23:23.176 return_code = dispatcher.run() or os.EX_OK
2024-11-06 10:23:23.176 File "/snap/snapcraft/12961/lib/python3.10/site-packages/craft_cli/dispatcher.py", line 487, in run
2024-11-06 10:23:23.176 return self._loaded_command.run(self._parsed_command_args)
2024-11-06 10:23:23.176 File "/snap/snapcraft/12961/lib/python3.10/site-packages/snapcraft/commands/upload.py", line 116, in run
2024-11-06 10:23:23.176 snap_yaml, manifest_yaml = get_data_from_snap_file(snap_file)
2024-11-06 10:23:23.176 File "/snap/snapcraft/12961/lib/python3.10/site-packages/snapcraft_legacy/_store.py", line 70, in get_data_from_snap_file
2024-11-06 10:23:23.176 raise SnapDataExtractionError(os.path.basename(snap_path))
2024-11-06 10:23:23.176 snapcraft_legacy.internal.errors.SnapDataExtractionError: Cannot read data from snap 'kicad_8.0.6_amd64.snap'. The file may be corrupted.
but the snap is fine, I installed it and works as expected, so it’s not a corrupted file…