Is there a way to rebuild the entire thumbnail index in one go?

RayKinStL

Joined: 2013-08-05
Posts: 8
Posted: Fri, 2014-01-10 17:15

So somehow at our gallery site http://www.parkwayart.net/art/gallery/ we had the entire "Elementary" thumbnail folder get deleted (not sure how), so all thumbnails in that album were broke. I recovered the folder, but a lot of the thumbnails are still broken. Unfortunately we seem to have had the folder deleted around December 31st, and people did work on January 2nd, moving and archiving, and new stuff didn't get thumbnails created since the folder didn't exist. I'm looking for a way to just tell the system to go through every image in the Elelmentary folder and recreate the thumbnails index. I found the Rebuild Images module, but you have to do that on an album by album basis, and that would be very time consuming if that is the only option. Is there a trick or workaround for this? Unfortunately I am still on 3.0.1. Any help is greatly appreciated.

Thanks!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2014-01-10 20:11

What you could do is just change the thumb size by one pixel and it should rebuild them. It will be the whole gallery not just the one sub album.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
RayKinStL

Joined: 2013-08-05
Posts: 8
Posted: Mon, 2014-01-13 15:03

Thanks for the response. When you say change the thumb size, are you talking about the line in Advanced Settings in the Dashboard that says....

"gallery thumb_size 201"

If so, I changed it from 200 to 201, but that didn't anything for my thumbnails. Perhaps you meant somewhere else?

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Mon, 2014-01-13 15:09

One you have changed it, go in to Admin then Maintenance, and it should show a rebuild items task needing to be run.

 
RayKinStL

Joined: 2013-08-05
Posts: 8
Posted: Mon, 2014-01-13 15:19

Well this is one of my other problems, but I didn't post that here. When I go there, it says "You have 84 out of date photos" but if I run the maintenance, it doesn't fix any of the 84. The status bar runs, but it still shows 84 out of date. On top of that, I am pretty sure I have more than 84 images with broken thumbnails in the Elementary folder at this point. I'm really worried I am going to have to rebuild this from scratch and re-upload everything. I can't see any other way to fix this.

Edit: Here is the log file, if that helps anything.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2014-01-13 16:55
Quote:
When you say change the thumb size, are you talking about the line in Advanced Settings in the Dashboard that says....

No.
Admin-> Apperance -> theme options-> thumb size.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
RayKinStL

Joined: 2013-08-05
Posts: 8
Posted: Mon, 2014-01-13 20:51
floridave wrote:
Quote:
When you say change the thumb size, are you talking about the line in Advanced Settings in the Dashboard that says....

No.
Admin-> Apperance -> theme options-> thumb size.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

OK, thanks for that. I feel like I am starting to get somewhere. It did start rebuilding all the images, which was great. But there are two quirks. First of all, it thinks it is almost done (99%) when it is 5196/6560 images. Also, it has stalled out multiple times at 5196 and won't seem to go any further. I am including a screen shot attachment. Any ideas? Thanks for all your help on this.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-01-14 05:22

Logs?
Resuming the task get further?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
RayKinStL

Joined: 2013-08-05
Posts: 8
Posted: Tue, 2014-01-14 15:01

I have tried resuming the task multiple times. It doe not progress any further. Log file is attached (I had to zip it for size).

Thanks!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-01-14 21:19

There is a few errors like:

logs wrote:
The specified directory, /, is not writable.

You need to verify that the gallery3/var/ directory and all the files and folder in it are writable by the web server. Your host can help with that or some ftp clients have a recursive setting for setting permissions for all files and folders. This is most likely most of the issue as you:
[quote thumbnail folder get deleted (not sure how), so all thumbnails in that album were broke. I recovered the folder

in your recovery the permissions where not set correctly.

Also there is a few:

Quote:
Unable to rebuild images for 'Zach F5'
exception 'Exception' with message '@todo EMPTY_INPUT_FILE'

and similar files. Not sure how that hapened but I guess you need to find the Zach F5 image and see if it actually exists.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
RayKinStL

Joined: 2013-08-05
Posts: 8
Posted: Thu, 2014-01-23 08:24

OK so my problem is much more dire than I realized. Let me try to briefly explain what happened and then you can tell me if there is any fix other than starting over. So as I said above, we lost the Elementary folder in the thumbs directory. We pulled a restore from when the directory existed, but this happened about 6 days after we realized it was missing. 2 days after it was missing, there was a day where people who add/organize folders did a bunch of archiving that resulted in new photos being added and old photos being moved, without the Elementary thumbs directory. We did not maintain a backup of the database, so when we restored, the database no longer matches the restore we pulled. This has resulted in all sorts of things broken at the Elementary level. We now have a gallery installation that is totally out of whack from the database, resulting in Elementary being broken. Is there anything that can be done, or does it need to be scrapped and reloaded entirely.

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Thu, 2014-01-23 21:00

So according to the database in the filesystems Elementary folder, it has

  • files that should be elsewhere
  • missing files that should exist

I suspect you are going to have to do some sql queries and filesystem directory dumps in order to reconcile the two. That way you would be able to find which items have been moved where and which items are completely missing.