tarfile.ReadError: unexpected end of data
Metadata
Current evaluation
snapcraft pull fails with tarfile.ReadError 'unexpected end of data' when extracting a local tar source. 5+ years old, snapcraft 2.43.1, zero comments, no maintainer interaction. Likely a truncated/corrupt tar file on the user's side, not a snapcraft defect.
Suggested action: close not a bug
Reason: The 'unexpected end of data' tarfile.ReadError is raised by Python's tarfile module when the archive file is truncated or corrupt — the tar header declares a member size larger than the remaining bytes in the file. This is a user data issue (the local file '../../dkentry-py3-dotnet.tar' is incomplete), not a snapcraft bug; snapcraft correctly surfaced the underlying error. The user's only 'reproduction' was importing the tarfile module, which is unrelated. The issue is also on a 2020-era version (2.43.1) with no reproduction steps, no maintainer response, and no activity in ~5 years.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
10
Quick Win:
8.0
Staleness:
92
Complexity:
20
Confidence:
72
Support Request:
75
|
close not a bug | snapcraft pull fails with tarfile.ReadError 'unexpected end of data' when extracting a local tar source. 5+ years old, snapcraft 2.43.1, zero comments, no maintainer interaction. Likely a truncated/corrupt tar file on the user's side, not a snapcraft defect. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
30
|
close stale | Tar extraction fails with ReadError: unexpected end of data during snapcraft pull. Issue is 5+ years old, uses snapcraft v2.43.1, has no maintainer interaction or reproduction steps. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
30
|
close stale | Snapcraft fails to extract a tar archive with 'unexpected end of data' error during the pull step. Issue is very old and likely obsolete due to version changes. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
40
|
close stale | Reports tarfile.ReadError during snapcraft pull on version 2.43.1. Over 5 years old, lacks reproduction steps, and references an obsolete environment. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
15
|
close stale | Reports a tarfile.ReadError during snapcraft pull with version 2.43.1. No maintainer response or reporter follow-up in over five years. The reported version is unsupported and the codebase has changed significantly. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1573753 sources can't extract tar.xz archive | snapcraft (launchpad) | open | Snapcraft 2.8.4 fails to extract a tar.xz source (transmission-2.92) with a KeyError on a missing symlink target during tarfile.extractall. 10+ years old, no maintainer response; traceback references code paths no longer present in the current codebase. |