[SOLVED] Corrupted jpeg files in the gallery.

gazol

Joined: 2002-09-09
Posts: 16
Posted: Wed, 2012-07-11 08:11

I have a 50k+ gallery and a problem with a few corrupted jpegs. I used jpeginfo to detect the corrupt jpegs and replaced them from a backup, but when I run the command again new files shows up. I'm running ubuntu in kvm so I have reinstalled the server and deployed the gallery again and I still get the same error. I also tried setting up a nfs share from the physical machine and tried putting the album folder there. Still new broken images shows up.

I'm not experiencing any filesystem corruption that I know of.

So I started to think maybe it's actually jpeginfo that is making the corruption?

Is there any other tool then jpeginfo to check for corrupted jpegs?

Regards,
Robert


Gallery URL = http://sugburken.com/gallery2/main.php
Galleryversion = 2.3.2 kärna 1.3.0.2
API = Kärna 7.54, Modul 3.9, Tema 2.6, Inbyggd 1.5
PHP-version = 5.3.10-1ubuntu3.2 apache2handler
Webbserver = Apache/2.2.22 (Ubuntu)
Databasbaserad = mysqli 5.5.24-0ubuntu0.12.04.1, lock.system=flock
Verktyg = ArchiveUpload, ImageMagick, NetPBM, Gd, Ffmpeg, Thumbnail, Dcraw, LinkItemToolkit, Exif, jpegtran
Acceleration = none, none
Operativsystem = Linux sugburken 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64
Standardtema = matrix
gettext = aktiverad
Lokala inställningar = sv_SE
Webbläsare = Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11
Rader i GalleryAccessMap-tabellen = 398
Rader i GalleryAccessSubscriberMap-tabellen = 54399
Rader i GalleryUser-tabellen = 14
Rader i GalleryItem-tabellen = 54393
Rader i GalleryAlbumItem-tabellen = 1139
Rader i GalleryCacheMap-tabellen = 0

Login or register to post comments
Dayo

Joined: 2005-11-04
Posts: 1555
Posted: Thu, 2012-07-12 04:30

Note that the important thing is not detecting corrupted jpegs as such but knowing why your jpegs should be getting corrupted in the first place which is a strange thing to be happening consistently.

Are you sure that you actually have corrupted jpegs and not just that the resizes and/or thumbs are not getting built at times?

--
dakanji.com

Login or register to post comments
gazol

Joined: 2002-09-09
Posts: 16
Posted: Thu, 2012-07-12 08:48

If I look at a broken image it's easy to see it's corrupt also jpeginfo -c woul report something like this:
1600 x 1200 24bit Exif N 631378 Corrupt JPEG data: 98 extraneous bytes before marker 0xd9 [WARNING]

But I'm trying out a new software to look for corruption right now Bad Peggy, and it doesn't seem to corrupt the images, also report the same result every run.

I will get back with the results, it takes a long time to run i through.

Login or register to post comments
gazol

Joined: 2002-09-09
Posts: 16
Posted: Fri, 2012-07-13 11:50

Using a application called Bad Peggy to check jpeg integrity and it gives the same result every time and do not corrupt images.
Be sure to have a backup before using jpeginfo -c.

Login or register to post comments
mariovazquez

Joined: 2012-07-14
Posts: 1
Posted: Sat, 2012-07-14 14:34

I have the same problem. What can i do?

Thanks

Login or register to post comments
gazol

Joined: 2002-09-09
Posts: 16
Posted: Sat, 2012-07-14 19:34

Here is what I did.

I was lucky since I had a few backups and was able to restore my images.
First do a backup of your machine, this simple if it's virtual.

Then I made a nfs share of my albums folder in read only and did the scan from another host with Bad Peggy and restored all the files that were corrupted.

Login or register to post comments