Skipping invalid file

dan_m2k

Joined: 2006-04-19
Posts: 8
Posted: Mon, 2014-01-20 15:08

Hi all,

So, gallery3 is currently churning away adding a load of images through a bunch of subfolders. It's around 50,000 images in total and completed around 15132 so far after nearly 24 hours.

I just noticed in the logs that a bunch of files are marked 'skipping invalid file' and the path. I've had a look at a few of the images and they're valid JPEG images, usually something like IMG_9383.jpg so nothing too exotic.

I wonder if anyone can shed any light as to what causes an image to get marked as 'invalid' and skipped?

Also with such a huge amount of overhead, once it's completed and we've got a list of skipped images, what's the easiest / best way to have them retry that image?

Thanks in advance.
Dan.

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Wed, 2014-01-22 09:57

A casual Google search for "Gallery3 skipping invalid file" shows various possibilities and bug reports, including odd things like multiple full-stops in the filename/extension (you indicate the filenames are reasonable so probably not it), server running low on resources to even just trying a different graphics toolkit. You are probably going to have to search through your log file and provide more information before anyone can give you an idea what the specific cause might be.

 
dan_m2k

Joined: 2006-04-19
Posts: 8
Posted: Wed, 2014-01-22 10:14

I was not being lazy, I have indeed googled for it, but I was hoping for something from a Gallery3 dev/guru who could identify what would constitute an 'invalid file' in Gallery3's eyes.

Which logs would give me more detail on the error? Apache's standard error log?

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Wed, 2014-01-22 13:15

check in your var directory for the logs directory. Each day a new log is generated. Hopefully you'll find more information in there as to why they are invalid. If you have difficulty figuring out the log entries, post the snippet of log for someone to take a look.

 
dan_m2k

Joined: 2006-04-19
Posts: 8
Posted: Wed, 2014-01-22 17:53

So the logs don't offer much help.

The main error is a missing timezone setting in php.ini, which is easily fixed.

The other error, which I presume is linked to the invalid file message, is a 'missing tag' error which appears to be a mysql error inserting tags into the database.

The other funny thing is, after several days, the progress counter for the server add progress now shows:

Quote:
104% Complete Adding photos / albums (46941 of 49721)

So, will the task never end?!

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Wed, 2014-01-22 19:46

It looks like Server Add checks the filename extension to see if the file is a valid photo or movie file. If it isn't, then I think you will get the error you have indicated. By any chance, is there hidden whitespace after the extension? Maybe this could cause the extension to be misinterpreted.

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Thu, 2014-01-23 00:16

If you can post a snippet of the log where it errors out, we might be able to offer more assistance.