thumbnails misbehaving after move to new server

pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Fri, 2013-09-06 22:05

I've just moved my Gallery to a new server, and it's gone fairly well except that the thumbnails are sometimes not appearing. If I reload the page, they sometimes appear, but others disappear!

I've tried running 'Build all thumbnails/resizes' but that doesn't help.

I've searched the forum, and others have apparently had the same problem, but the fixes didn't work for me. One suggested deinstalling/reinstalling imagemagick, which I did - problem still exists.

Any help would be most appreciated.

Gallery URL = http://www.pixelmap.ca/gallery2/main.php
Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.26 cgi-fcgi
Webserver = Apache
Database = mysqli 5.5.25-cll, lock.system=flock
Toolkits = ArchiveUpload, ImageMagick, Exif
Acceleration = none/0, none/0
Operating system = Linux hp110.hostpapa.com 2.6.32-458.6.2.lve1.2.28.el6.x86_64 #1 SMP Wed Jul 3 13:39:48 EEST 2013 x86_64
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; PPC Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6 Safari/533.22.3
Rows in GalleryAccessMap table = 83
Rows in GalleryAccessSubscriberMap table = 8178
Rows in GalleryUser table = 14
Rows in GalleryItem table = 8167
Rows in GalleryAlbumItem table = 183
Rows in GalleryCacheMap table = 0

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2013-09-06 22:47

likely a lack of enough resources on your server

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Fri, 2013-09-06 23:02

Not sure what that means - the server is too busy?

Is there anything I can do to change that?

Thanks for replying.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2013-09-06 23:45

Some shared hosting barely gives you enough memory, cpu, bandwidth... to run a site.
you could post a phpinfo link.
FAQ: What information is required when I ask for help in the forums? <- phpinfo instructions

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Sat, 2013-09-07 00:38
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-09-07 05:52

that actually looks pretty good.
make sure your g2data is 777 recursively
chmod -R 0777 /full/system/path/to/g2data/

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Sat, 2013-09-07 17:49

Just set that - problem persists...

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-09-07 17:57

the good report from phpinfo does not mean your host is not enforcing some other restriction(s)

You should also make sure your gallery passes system checks try:
FAQ: How can I make sure that my installation files are all intact?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Sat, 2013-09-07 18:12

Just ran the system check as specified in that FAQ, and it gave a warning of one missing file: 'images/gulftech.png' (from the theme images folder)

which can't matter,

and one modified file: the 'theme.css' from the carbon theme folder, which is true, I've modified it as my own customization,

but I don't think that can matter either.

I think more likely the host is enforcing some other restriction... but what?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-09-07 18:17

it could be a limit to the number of DB connections, or cpu limitations.

Last thing you can check is server error logs for your site specifically php error logs. you may have to ask your host if they are not already available to you.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Mon, 2013-09-09 20:04

Got some of the error logs from the provider:

[Sun Sep 08 02:12:21 2013] [error] [client ] (12)Cannot allocate memory:
couldn't create child process: /opt/suphp/sbin/suphp for
/home/pixel723/public_html/gallery2/main.php, referer:
http://www.pixelmap.ca/gallery2/sailing_2006/
[Sun Sep 08 02:12:21 2013] [error] [client ] (12)Cannot allocate memory:
couldn't create child process: /opt/suphp/sbin/suphp for
/home/pixel723/public_html/gallery2/main.php, referer:
http://www.pixelmap.ca/gallery2/sailing_2006/
[Sun Sep 08 02:12:21 2013] [error] [client ] (12)Cannot allocate memory:
couldn't create child process: /opt/suphp/sbin/suphp for
/home/pixel723/public_html/gallery2/main.php, referer:
http://www.pixelmap.ca/gallery2/sailing_2006/
[Sun Sep 08 02:12:22 2013] [error] [client 2] (12)Cannot allocate memory:
couldn't create child process: /opt/suphp/sbin/suphp for
/home/pixel723/public_html/gallery2/main.php, referer:
http://www.pixelmap.ca/gallery2/sailing_2006/

They are saying that it seems that the application is using more than 128Mb of memory, and they cannot provide any more.

This seems strange: it worked perfectly for years on another server, and now fails on this one. I'd rather not have to move to another server again, but I really do want to get this working.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-09-09 23:19

your new host sucks

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Tue, 2013-09-10 02:26

So I'm thinking.

 
pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Tue, 2013-09-10 22:24

Just for the record, the hosting service is hostpapa.ca, and they are NOT RECOMMENDED, especially if you'd like to install Gallery.

 
pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Wed, 2013-09-11 19:58

Hostpapa has suggested that the problems I'm experiencing may be due to the fact that the images are too large, though they are never larger than 1000pixels at their largest dimension, with no single image exceeding 200Kb in size.

I was skeptical that this really is the probelm, but to be sure, I Jjust reinstalled Gallery from scratch on hostpapa, and then put up three albums, one with the images at 1000 pixels, another with the images at 640 pixels, and a third with the images at 240 pixels.

All three experienced the same problem, leading to me to conclude that image size - and memory allocation - is not really the problem.

It's not looking like I'll be able to get this sorted out on Hostpapa - can anybody suggest a better shared hosting service for Gallery?