unsupported compression method: 9
See original GitHub issueWe recently had a report against Etcher that a user was getting a unsupported compression method: 9
error when trying to extract a particular archive.
I downloaded the archive myself, and managed to trace the problem to yauzl
.
When I clone this repo and run node examples/dump.js --no-contents /home/andrew/Downloads/RPI-CNC-V400.zip
I get this output:
Entry {
versionMadeBy: 45,
versionNeededToExtract: 45,
generalPurposeBitFlag: 0,
compressionMethod: 9,
lastModFileTime: 25321,
lastModFileDate: 18998,
crc32: 2459691682,
compressedSize: 2359888958,
uncompressedSize: 8006926336,
fileNameLength: 14,
extraFieldLength: 12,
fileCommentLength: 0,
internalFileAttributes: 0,
externalFileAttributes: 32,
relativeOffsetOfLocalHeader: 0,
fileName: 'RPI_CNC_V4.img',
extraFields: [ { id: 1, data: <Buffer 00 00 40 dd 01 00 00 00> } ],
fileComment: '',
comment: '' }
2017-01-22T12:23:18.000Z
Without the --no-contents
flag I get:
Entry {
versionMadeBy: 45,
versionNeededToExtract: 45,
generalPurposeBitFlag: 0,
compressionMethod: 9,
lastModFileTime: 25321,
lastModFileDate: 18998,
crc32: 2459691682,
compressedSize: 2359888958,
uncompressedSize: 8006926336,
fileNameLength: 14,
extraFieldLength: 12,
fileCommentLength: 0,
internalFileAttributes: 0,
externalFileAttributes: 32,
relativeOffsetOfLocalHeader: 0,
fileName: 'RPI_CNC_V4.img',
extraFields: [ { id: 1, data: <Buffer 00 00 40 dd 01 00 00 00> } ],
fileComment: '',
comment: '' }
2017-01-22T12:23:18.000Z
/tmp/yauzl/examples/dump.js:25
if (err) throw err;
^
Error: unsupported compression method: 9
at /tmp/yauzl/index.js:511:25
at /tmp/yauzl/index.js:618:5
at /tmp/node_modules/fd-slicer/index.js:32:7
at FSReqWrap.wrapper [as oncomplete] (fs.js:682:17)
Are there any plans for yauzl to support this compression method 9?
Wikipedia says https://en.wikipedia.org/wiki/Zip_(file_format)#Compression_methods and unzip -v /home/andrew/Downloads/RPI-CNC-V400.zip
(on Linux) reports:
Archive: /home/andrew/Downloads/RPI-CNC-V400.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
8006926336 Def64N 2359888958 71% 2017-01-22 12:23 929beaa2 RPI_CNC_V4.img
-------- ------- --- -------
8006926336 2359888958 71% 1 file
(and unzip is able to extract the file correctly).
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Truezip returning unsupported compression method error ...
Truezip 6 and 7 returning error message "compression method 9 is not supported" when extracting any files greater then 2GB that were ...
Read more >Quick tips to tackle “unsupported compression method” error ...
In case you are receiving “unsupported compression method” error message, just use the DataNumen Zip Repair application to open the zip archive.
Read more >linux - Unzip returns "Unsupported compression method 14"
I recently downloaded a large number of GIS data files from a government agency to a file server and need to unzip all...
Read more >Decompression of zip file fails with error "unsupported ...
Compression method 99 error indicates the AES (Adavance Encryption Standard) encryption. Unfortunately, This encryption standard is currently ...
Read more >uses an unsupported compression method 0x09 deflate64
compression method 9 is called DEFLATE64, which is invented by PKWARE, the inventor in the zip file format . DEFLATE64 is a proprietary...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s what I know:
npm install yauzl
.All these points are arguments against taking action on this issue and simply resolving it as wontfix. However, I’m willing to consider ways to improve yauzl’s feature set and adoption, and if that means either adding a native code dependencies or implementing a decompression algorithm in javascript, I’ll at least consider it a little.
What i’d like to do next is do an even more thorough investigation of which zipfile reading libraries support compression methods other than 0 and 8.
It may take a week or so before I have time to do this, so in the immediate future, the direct answer to your question is: No, there are no plans to support compression methods other than 0 and 8.
Thanks for the detailed info, this was super useful and saved me a bunch of research!
FWIW, I’ve been having this issue with an archive created with 7-Zip (I’m not sure which version, but probably new-ish). It does seem to support compression method 9. 😭