-
Notifications
You must be signed in to change notification settings - Fork 603
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
gzip: *.log.gz: not in gzip format #188
Comments
gzip files start with 0x1F, 0x1B (see also "Magic number" on https://en.wikipedia.org/wiki/Gzip). Do your files have the same start bytes? |
No, brother, I get this: $ hexdump -C -n2 **.log.gz
00000000 00 00
00000002
$ file **.log.gz
**.log.gz: data |
Is the amount of zeros in the start of the file always the same? |
they are not, tho I'm not sure if it could be related to filesize. However, its interesting that it always follows the same pattern for the files I have: once data starts, its always the same position in the line not sure if its coincidence, but a gzip header is 10 bytes long, and its missing exactly 10 bytes from the start of the line |
gunzip the zipped log file occurs error like this:
And this is the log init function:
The text was updated successfully, but these errors were encountered: