Rebuild Images stalls every few rebuilds

dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Wed, 2013-12-11 00:37

I have just over 300 images in my gallery (3.0.7) and need to rebuild all the images due to a change in thumbnail settings.
If I click 'rebuild Images' a window shows that it is 'starting up' then stalls or sometimes rebuilds serveral images (usually 2) then stalls. The log shows "Task Rebuild Images resumed (task id 11)" followed by a list of any images that have been rebuilt.
What do I need to do to make it complete?
- Dusty

 
dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Wed, 2013-12-11 00:45

Sorry it's 3.0.9 running on SME server 8.1 with 128Mb memory and 500Gb disk space

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2013-12-11 06:53

You're probably bumping up against that 128MB limit. You could try changing the graphics toolkit, but not sure how much you can squeeze out of that 128.

You could try to resize locally, then upload and run maintenance instead of having Gallery do the heavy lifting on the rebuilds.

Also, might not help 100%, but I'm hoping you're rebuilding just the thumbs and not the resizes too.

Last word: There's nothing more in any of your logs? (Not just the log in the maintenance window, but the actual logs/task reports from the server.)

 
dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Wed, 2013-12-11 15:19

Thanks for helping... I've upgraded the memory to 1Gb. Still no joy. Now to trawl through the server log files.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2013-12-11 16:04
dustypulver wrote:
Now to trawl through the server log files.

Yep. That's always a joy. Lol.
Just to be clear, in addition to the server logs, Gallery has its own logs in a subfolder of the var folder; sometimes that's the best starting point.

You might have already known, but just want to make sure.

 
dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Wed, 2013-12-11 17:56

It's obviously a memory problem - I've deselected all the extra modules and it's now updated 290 before stalling.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2013-12-11 20:06
dustypulver wrote:
I've upgraded the memory to 1Gb. Still no joy.

And there's more than one factor there. I wasn't sure what memory you increased to 1GB. If you figure out which limit you're hitting, you'll know what step to take next. It could be a php memory limit, could be a server memory limit/cap, could even be that the other modules just caused a slow down and you actually need a faster processor (or to up the timeout limit). Difficult to tell from here, but hopefully you'll get a better idea from the logs.

 
dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Wed, 2013-12-11 23:39

Sorry, I'm very much a newbie as far as PHP is concerned - don't you just hate it when you're considered an expert in certain fields but something goes wrong outside your expertise - I've upgraded the server memory from 128Mb to 1Gb on a 32bit server running SME server v8.1. I've also disabled any other unrequired modules and rebooted.
My php.ini is as follows:

[root@inetsrv html]# pwd
/home/e-smith/files/ibays/photo/html
[root@inetsrv html]# cat php.ini
; Set some reasonable defaults for PHP. Most of these cannot be set
; inside the script itself. These settings are mirrored in the
; .htaccess file for hosts that support .htaccess but not per-dir
; php.ini files.
;
[PHP]
short_open_tag = On
magic_quotes_gpc = Off
magic_quotes_sybase = Off
magic_quotes_runtime = Off
register_globals = Off
upload_max_filesize = 20M
post_max_size = 100M

php_value memory_limit 32M

[Session]
session.auto_start = Off

[suhosin]
suhosin.session.encrypt = Off
[root@inetsrv html]#

Does that look OK, or am I looking at the wrong PHP.INI file? This is from the root of my gallery. There are others including in /root/gallery3 of which the other is a subset.

Changing to ImageMagic seems to have fixed the problem, though
.

Thanks from a dim old man.
- Dusty