"Internal Server Error" - I have no idea where to start.

metphoto.us

Joined: 2006-08-15
Posts: 10
Posted: Tue, 2006-08-15 22:45


Gallery version = 2.1 core 1.1.0
PHP version = 4.3.10 cgi
Webserver = Apache/1.3.37
Database = mysql 4.1.20-log, lock.system=flock
Toolkits = Exif, Getid3, NetPBM, Thumbnail, Gd
Acceleration = none, none
Operating system = FreeBSD aerre.pair.com 4.8-STABLE FreeBSD 4.8-STABLE #0: Sun Apr i386
Default theme = carbon
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Gallery Address: http://www.metphoto.us/

Here's the error I get:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator,  and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I have no idea where to start. I've installed gallery2 ~5 times trying to get it sorted, I've used two different mySQL servers... I'm at a loss. It doesn't happen always, but it can happen when loading any page.

For Example: I tried to add an album, and it apparently got halfway through setting up the album and quit due to this error. The album doesn't show, but it won't let me create another one with the same name, as name already exists in the database.

This is my first time using gallery2, and needless to say I'm completely lost. Anyone have any ideas?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-08-16 01:04

please look at your webserver's error log. it should yield more information about the error.

your webhost can provide the error log if you don't know how to get it.

 
metphoto.us

Joined: 2006-08-15
Posts: 10
Posted: Wed, 2006-08-16 11:45
Quote:
Hello,

The following is the log information requested.

From the error log:

www.apexmanagementsolutions.com [Wed Aug 16 05:17:22 2006] [error] [client
64.84.39.226] client sent HTTP/1.1 request without hostname (see RFC2616 sect
ion 14.23): /w00tw00t.at.ISC.SANS.DFind:)

From the resource logs:

Tue Aug 15 18:39:08 EDT 2006 :: (Memory hog PHP) KILL -9: PID 4159, USER apexman,
CMD 'php4.cgi'/'php4.cgi'
Tue Aug 15 18:40:11 EDT 2006 :: (Memory hog PHP) KILL -9: PID 4378, USER apexman,
CMD 'php4.cgi'/'php4.cgi'
Tue Aug 15 22:32:18 EDT 2006 :: (Memory hog PHP) KILL -9: PID 48498, USER
apexman, CMD 'php4.cgi'/'php4.cgi'
Tue Aug 15 22:32:18 EDT 2006 :: (Memory hog PHP) KILL -9: PID 48499, USER
apexman, CMD 'php4.cgi'/'php4.cgi'

If you have any further questions feel free to ask.

Does that help at all? apexmanagementsolutions.com is a separate domain on my account, but it doesn't use php.cgi at all. Not sure why it's listed at the top of the log.

 
metphoto.us

Joined: 2006-08-15
Posts: 10
Posted: Thu, 2006-08-17 13:01

Here's a further problem that I'm having, not sure if it's related or not. This happens when I tried to load my gallery today:

Database Error

An error has occurred while interacting with the database.
The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.

Back to the Gallery
Error Detail -
Error (ERROR_STORAGE_FAILURE)

    * in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 988 (gallerycoreapi::error)
    * in modules/core/classes/GalleryStorage.class at line 501 (gallerystorageextras::addmapentry)
    * in modules/core/classes/GalleryCoreApi.class at line 2921 (mysqlstorage::addmapentry)
    * in modules/core/classes/helpers/GalleryItemHelper_simple.class at line 218 (gallerycoreapi::addmapentry)
    * in modules/core/classes/GalleryCoreApi.class at line 1500 (galleryitemhelper_simple::fetchdescendentcounts)
    * in modules/core/classes/GalleryTheme.class at line 1318 (gallerycoreapi::fetchdescendentcounts)
    * in themes/carbon/theme.inc at line 475 (carbontheme::loadcommontemplatedata)
    * in themes/carbon/theme.inc at line 378 (carbontheme::showalbumpage)
    * in modules/core/classes/GalleryView.class at line 325 (carbontheme::loadtemplate)
    * in main.php at line 386 (showitemview::doloadtemplate)
    * in main.php at line 87
    * in main.php at line 80

System Information
Gallery version 	2.1
PHP version 	4.3.10 cgi
Webserver 	Apache/1.3.37
Database 	mysql 4.1.20-log
Toolkits 	NetPBM, Gd
Operating system 	FreeBSD aerre.pair.com 4.8-STABLE FreeBSD 4.8-STABLE #0: Sun Apr i386
Browser 	Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-08-17 18:42

seems like they have a monitoring script that kills your processes (e.g. it kills gallery) when the memory usage gets above a certain value.

please ask them what memory limit they're enforcing. g2 requires at least 16 MB.
you should disable the GD module in g2, because it requires much more memory than a G2 installation without the GD module.