koldfront

Spontaneous byte change in .gz file

๐Ÿ•๏ธŽ - 2015-12-05

The Visitors run I do over all my web log files automatically started complaining about one of the compressed files today:

  gzip: /var/www/www.asjo.org/logs/access_log.103.gz: invalid compressed data--crc error
  gzip: /var/www/www.asjo.org/logs/access_log.103.gz: invalid compressed data--length error

Logging into the machine and testing the file confirms the problem:

  $ gzip -t access_log.103.gz 
  gzip: access_log.103.gz: invalid compressed data--crc error
  gzip: access_log.103.gz: invalid compressed data--length error

So I get a copy of the file from backup; it is the same size, and it isn't invalid according to gzip -t. Let us compare them:

  $ cmp --print-bytes access_log.103.gz access_log.103.gz_from_backup
  access_log.103.gz access_log.103.gz_from_backup differ: byte 189783, line 646 is  40    41 !

One byte changed! Yikes.

Add comment

To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Twitter, Facebook, Google or even Microsoft GitHub.

I have chosen to use a more old school method of spam prevention.

To post a comment here, you need to:

ยน Such as Thunderbird, Pan, slrn, tin or Gnus (part of Emacs).

Or, you can fill in this form:

+=