[SOLVED] can't get thumbnails to rebuild

LindsayN

Joined: 2009-10-19
Posts: 8
Posted: Mon, 2009-10-19 22:12

a few days ago all the thumbnails disappeared. The album structure is still all there but none of the pictures or thumbnails show up. I have tried rebuilding the thumbnails multiple times and each time it hangs at a different point. I tried uninstalling and reinstalling all the graphics toolkits and cleared the database cache with no change. I attached the immediate debug results, but it is huge and doesn't seem to point to anything specific to me. My website is http://www.sailboatfish.com/gallery2/main.php. I don't know what else to do. Thanks for any and all help,
Lindsay


Gallery version = 2.2.5 core 1.2.0.7
PHP version = 5.2.1 cgi
Webserver = Apache
Database = mysqlt 5.0.77-log, lock.system=flock
Toolkits = ArchiveUpload, Getid3, LinkItemToolkit, Thumbnail, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating system = Linux cgi0505.int.bizland.net 2.6.30.6 #1 SMP Mon Sep 14 16:36:43 EDT 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.24 Safari/532.0
Rows in GalleryAccessMap table = 117
Rows in GalleryAccessSubscriberMap table = 3524
Rows in GalleryUser table = 3
Rows in GalleryItem table = 3521
Rows in GalleryAlbumItem table = 64
Rows in GalleryCacheMap table = 0

AttachmentSize
galleryDebug.txt572.04 KB
Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Mon, 2009-10-19 22:34
Quote:
Toolkits = ArchiveUpload, Getid3, LinkItemToolkit, Thumbnail, Exif, NetPBM, Gd, ImageMagick

Uninstall GD and NetPBM and try again with only ImageMagick installed.

Also try clearing your cache:
FAQ: How can I clear cached data?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
LindsayN

Joined: 2009-10-19
Posts: 8
Posted: Mon, 2009-10-19 22:40
Quote:
Uninstall GD and NetPBM and try again with only ImageMagick installed.

Also try clearing your cache:
FAQ: How can I clear cached data?

I already tried that.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Mon, 2009-10-19 22:43

If you PM me (click Write to author) login details and leave it in debug mode I can take a closer look and see if there is any error message that gives more detail.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
LindsayN

Joined: 2009-10-19
Posts: 8
Posted: Mon, 2009-10-19 22:47
nivekiam wrote:
If you PM me (click Write to author) login details and leave it in debug mode I can take a closer look and see if there is any error message that gives more detail.

do you want me to change the debug to immediate? Currently it is buffered, but that doesn't show anything for rebuilding thumbnails.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Mon, 2009-10-19 22:49

Just leave it in buffered.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Mon, 2009-10-19 23:54

hmmmm, I'll see if I can get someone else looking at this, but I'm not seeing anything sticking out at me.

Can you check a few things, though I think we'd be seeing other problems if these were the case:

--Double check permissions on g2data and it's sub-directories and files to make sure the user the web server runs as can write to it.

--Can you post a link to phpinfo:
FAQ: How do I create a phpinfo page?

--Check that the baseUri at the bottom of config.php is the URL for Gallery 2

Right now, I've tried different toolkits, disabled most plugins and I'm still not getting an error that sticks out. Are you able to view the error logs on the server? If so can you see if there are any entries?

Also, let's try immediate debugging to see if that gets any more information.

I'm thinking it's a resource limitation on the server, but can't tell for sure. If you try rebuilding the thumbs on just an album the progress bar just stops and no output is generated, if you upload just a small jpg, no thumbnail is generated, well at least nothing is displayed, but there are no errors. Which tells me Gallery is generating the images, but not displaying them for some reason.

Just curious, have you edited any sort of .htaccess file?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
LindsayN

Joined: 2009-10-19
Posts: 8
Posted: Tue, 2009-10-20 00:45
nivekiam wrote:
hmmmm, I'll see if I can get someone else looking at this, but I'm not seeing anything sticking out at me.

Can you check a few things, though I think we'd be seeing other problems if these were the case:

--Double check permissions on g2data and it's sub-directories and files to make sure the user the web server runs as can write to it.

the creator lmn has rwx, everyone else is just rx. I assume that is okay since I can see that it creates alot of files in the cache directory.

nivekiam wrote:
--Can you post a link to phpinfo:
FAQ: How do I create a phpinfo page?

http://www.sailboatfish.com/gallery2/phpinfo.php

nivekiam wrote:
--Check that the baseUri at the bottom of config.php is the URL for Gallery 2

baseUri was nothing. I changed it to sailboatfish.com/gallery2/ and nothing seems different.

nivekiam wrote:
Right now, I've tried different toolkits, disabled most plugins and I'm still not getting an error that sticks out. Are you able to view the error logs on the server? If so can you see if there are any entries?

sorry no access to the server error logs.

nivekiam wrote:
Also, let's try immediate debugging to see if that gets any more information.

done.

nivekiam wrote:
I'm thinking it's a resource limitation on the server, but can't tell for sure. If you try rebuilding the thumbs on just an album the progress bar just stops and no output is generated, if you upload just a small jpg, no thumbnail is generated, well at least nothing is displayed, but there are no errors. Which tells me Gallery is generating the images, but not displaying them for some reason.

Just curious, have you edited any sort of .htaccess file?

the only htaccess file I edited is the main one to redirect sailboatfish.com to sailboatfish.com/gallery2/main.php

I am glad that I didn't miss anything too obvious and appreciate your help.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Tue, 2009-10-20 01:17
Quote:
the creator lmn has rwx, everyone else is just rx. I assume that is okay since I can see that it creates alot of files in the cache directory.

That seems right since it does appear to be able to create and delete stuff and doesn't toss errors while doing that, but let's just double check something. Change your phpinfo file you create to have this:

<?php print "PHP runs under the user: [" . system('whoami') . "]<br>"; phpinfo(); ?>

That will print the user name that PHP is run under and we can double check that.

Also, browse under g2data/albums and see if there are actually images under those directories.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
LindsayN

Joined: 2009-10-19
Posts: 8
Posted: Tue, 2009-10-20 17:21
nivekiam wrote:
That will print the user name that PHP is run under and we can double check that.

I changed the phpinfo and it seems the user is different than the owner. So should I try to change the permissions to 777 or get my host to change the owner to the one phpinfo is using? I am kinda confused cause how could this have worked at all earlier if the owner is different?

nivekiam wrote:
Also, browse under g2data/albums and see if there are actually images under those directories.

there are definitely images under those directories.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Tue, 2009-10-20 18:58
Quote:
I am kinda confused cause how could this have worked at all earlier if the owner is different?

You host made changes? I don't know. I've seen it time and again, a perfectly working install of Gallery just stop working. The host almost always claims they didn't change anything, yet after fixing permissions things start working again.

I'd contact your host to make sure that how ever they want it setup that the web server MUST be able to change ALL directories and files under your g2data directory. Though if it was not able to write to them, we should be seeing other errors. And if it wasn't able to read from it we should be seeing other errors. Also, if it was able to read from those directories we should still be seeing your photos.

So in short, I'm still confused as to why it's not working. If your host can verify permissions and things are still screwy, if you want you can PM me FTP (or SSH) login details and I can see if there's something else that might be causing this.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
LindsayN

Joined: 2009-10-19
Posts: 8
Posted: Wed, 2009-10-21 17:54
nivekiam wrote:
So in short, I'm still confused as to why it's not working. If your host can verify permissions and things are still screwy, if you want you can PM me FTP (or SSH) login details and I can see if there's something else that might be causing this.

sent you the login details cause nothing is working still. Thanks again,
Lindsay

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Wed, 2009-10-21 18:50

Got it, haven't had a chance to check it out. Will try to get in there tonight.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
LindsayN

Joined: 2009-10-19
Posts: 8
Posted: Fri, 2009-10-23 21:25

I have no idea what is going wrong here. I am almost to the point of completely reinstalling gallery to see if that would fix it. Do you think that would fix it? Thanks,
Lindsay

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Sat, 2009-10-24 17:01

You can try that. I do have time right now and I'm trying to log in via FTP. Except that's now saying invalid password.

I know it's been a few days so I wouldn't blame you if you changed those credentials.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Mon, 2009-10-26 03:42

Got your site working and upgraded. Since your host has obviously oversold your server things run very slowly, but things are working. I pretty much just changed 2 things in config.php

1) Took it out of debug mode

2) changed the storage type from mysqlt to mysqli

Because your server is overloaded (just an educated guess) I am only able to rebuild thumbs & resizes by going to Edit Album > Album (tab). First rebuilding the thumbs, then rebuilding the resizes.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
LindsayN

Joined: 2009-10-19
Posts: 8
Posted: Mon, 2009-10-26 07:41

Wow thanks for doing all that for me! I will definitely have to donate for this, thank you soo much. I have not been very happy with this provider (lack of terminal and generally slow response) do you have any suggestions for a better provider? I guess that is what I get for trying to save some money. Oh well. Thanks again,
Lindsay

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11001
Posted: Mon, 2009-10-26 16:06

For hosts, here's my token answer. It's purely my opinion. :) I make a remark about Dreamhost (I personally wouldn't touch them, but there are others who use them and don't have problems)

http://gallery.menalto.com/node/88391#comment-310594

You do get what you pay for.

I currently use Pair and have been very happy with them. I have grown tired of sharing though and am working on moving to a quality VPS (www.linode.com)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments