Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(unsquashfs): fix Fatal Error when using unsquashfs #5147

Conversation

sergio-costas
Copy link
Contributor

When trying to push a big snap to the snap store, snapcraft fails with the error

FATAL ERROR: Data queue size is too large

This is a bug in unsquashfs tool 4.5. But it has been fixed in 4.6.1, the current stable.

This patch builds squashfs-tools version 4.6.1 from the GIT repository, thus fixing this problem.

Fix #5132
Fix https://forum.snapcraft.io/t/fatal-error-data-queue-size-is-too-large/43875

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • [~] Have you successfully run tox run -m lint?
  • Have you successfully run tox run -e test-py310? (supported versions: py39, py310, py311, py312)

Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.70%. Comparing base (654871d) to head (a678e5d).
Report is 645 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (654871d) and HEAD (a678e5d). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (654871d) HEAD (a678e5d)
2 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5147      +/-   ##
==========================================
- Coverage   94.88%   89.70%   -5.18%     
==========================================
  Files         658      341     -317     
  Lines       55189    22587   -32602     
==========================================
- Hits        52364    20261   -32103     
+ Misses       2825     2326     -499     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@mr-cal mr-cal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sergio-costas, thanks for the PR! I'm wondering if this will get fixed for free when we update snapcraft itself to core24 in #5136, which should grab squashfs-tools 4.6.1.

@sergio-costas
Copy link
Contributor Author

@mr-cal I presume that yes, that would be the case, so this is just an interim solution while snapcraft isn't migrated.

@sergio-costas sergio-costas marked this pull request as ready for review November 18, 2024 14:07
@sergio-costas
Copy link
Contributor Author

According to Ken, it also fixes the ARM problem.

When trying to push a big snap, snapcraft fails with the error

    FATAL ERROR: Data queue size is too large

This is a bug in unsquashfs tool 4.5. But it has been fixed in
4.6.1, the current stable.

This patch builds squashfs-tools version 4.6.1 from the GIT
repository, thus fixing this problem.

Fix canonical#5132
@sergio-costas sergio-costas force-pushed the fix-unsquashfs-bug-data-queue-too-large branch from 778bdf0 to a678e5d Compare November 28, 2024 12:25
@sergio-costas
Copy link
Contributor Author

sergio-costas commented Nov 28, 2024

@mr-cal I see that the migration to Core24 is still a draft, so it probably will require some time to be merged and published. This one, instead, fixes the problem right now. And in the Core24 migration PR, you can just remove the squashfs part after rebasing, to use again the updated .deb version...

@sergio-costas
Copy link
Contributor Author

(in fact, I'm having this problem right now with another snap... and it isn't even as big as the previous one)

@mr-cal
Copy link
Collaborator

mr-cal commented Nov 29, 2024

@mr-cal I see that the migration to Core24 is still a draft, so it probably will require some time to be merged and published. This one, instead, fixes the problem right now. And in the Core24 migration PR, you can just remove the squashfs part after rebasing, to use again the updated .deb version...

Hi, sorry about the delay here. I'm planning to complete the core24 migration in the next 2 weeks if our team planning goes smoothly. With either that core24 PR or this PR, a newer version of squashfs tools will have to go into the 8.7.x release series, which won't be until 2025-Jan at the earliest.

@sergio-costas
Copy link
Contributor Author

Oh... that makes sense, yes.

I'll close this, then.

@mr-cal
Copy link
Collaborator

mr-cal commented Dec 2, 2024

Yeah, I apologize for the overlap here - there have been a bunch of moving parts in snapcraft releases recently. I very much appreciate the PR and your testing - I wouldn't have been able to test this on my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

push of locally built snap fails on arm64 device
2 participants