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

Sspak does not support assets over 8GB #53

Open
mateusz opened this issue Dec 22, 2016 · 3 comments
Open

Sspak does not support assets over 8GB #53

mateusz opened this issue Dec 22, 2016 · 3 comments

Comments

@mateusz
Copy link
Contributor

mateusz commented Dec 22, 2016

Phar and PharData use "ustar" format for tar archives which does not support files over 8 GB. We pack assets into a assets.tar.gz, and then rebundle with Phar/PharData, so as soon as assets hit the 8 GB mark, sspak breaks.

You can go around it by using tar and gz directly - which produces POSIX/PAX (on osx) or GNU (on Debian) formats which all support >8 GB files. Such archive still cannot be accessed by Phar/PharData where PHP expect to see ustar headers, but finds garbage from other formats:

phar error: "some.sspak" is a corrupted tar file (checksum mismatch of file "?ep????
       ??
         /")

For now I'm proposing to put a message in: #52

@dhensby
Copy link
Contributor

dhensby commented Dec 28, 2016

The message has been merged, but it doesn't solve the actual problem.

Perhaps we aim to try to use Phar and if it doesn't work fall back to trying a tar cli command?

@sminnee
Copy link
Member

sminnee commented Apr 3, 2019

Perhaps the sspak tool could be amended to let it consume / produce separate database.sql.gz and assets.tar.gz files directly?

@lerni
Copy link

lerni commented Mar 29, 2021

May recent fixes around phar with php 8.0.3 fixes this? https://www.php.net/ChangeLog-8.php#8.0.3

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

No branches or pull requests

6 participants