"Too many open files" error on Go Daddy shared hosting

Peretz

Joined: 2005-09-30
Posts: 4
Posted: Fri, 2005-09-30 15:44

Gallery version: 1.5-pl1
Apache version: Version not found in phpinfo() results
PHP version: 4.3.11
Graphics Toolkit: NetPBM
Operating system: Linux

Gallery has kicked out a "Too many open files" error several times. Each time, I've contacted Go Daddy tech support and their Advanced Tech Support team does something (I have no idea what; I'm assuming it's a simple reset of some kind) and the gallery works again...for a while. The errors are sporadic and persistent until Go Daddy resolves the problem on their end.

First, here is the latest error:

Quote:
Warning:
fopen(/home/content/g/e/n/genua/html/peter/albums/albumdb.dat.0): failed
to open stream: Too many open files in
/home/content/g/e/n/genua/html/peter/modules/gallery/platform/fs_unix.ph
p on line 55

Warning: Unknown(mainfile.php): failed to open stream: No such file or
directory in
/home/content/g/e/n/genua/html/peter/modules/gallery/html_wrap/wrapper.h
eader.default(69) : eval()'d code on line 21

Fatal error: (null)(): Failed opening required 'mainfile.php'
(include_path='.:/usr/local/lib/php') in
/home/content/g/e/n/genua/html/peter/modules/gallery/html_wrap/wrapper.h
eader.default(69) : eval()'d code on line 21

Here's the text of Go Daddy's Advanced Tech Support's most recent reply:

Quote:
It would appear as if the error you are receiving, is due to the script you are running exceeding the limit of file handles available to the script. Unfortunately, shy of rewriting / optimizing the code of the gallery running on your site, there isn\'t much that can be done to resolve this issue.

This problem has persisted through all version of Gallery I've installed on Go Daddy shared hosting. I believe I started with Gallery 1.3.x when I first moved my site to Go Daddy.

I know that I need to upgrade to version 1.5.1 of Gallery, but I don't believe that will solve the problem as it seems to be an issue with server quotas, not code.

So, here's my question: Is there a way to modify the Gallery configuration or code to prevent this error? I know it's a longshot, but changing a few lines of code is going to be much easier than moving the site, complete with hundreds of photos, to a new web host.

And in case you're wondering, I'm waiting to upgrade to Gallery 2.0 until the developers release official code to integrate G2 into PHP-Nuke. I lost at least two hours trying to integrate G2 into PHP-Nuke and it ended in complete confusion and no success.

Any and all help is appreciated. My gallery is the main draw for my site, so when it goes down, it's a complete pain in the rump.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-09-30 17:00

[Moved to G2 Support]

GoDaddy is notorious for this, and there is nothing we can do about it I'm afraid.

h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
Peretz

Joined: 2005-09-30
Posts: 4
Posted: Fri, 2005-09-30 17:22

I noticed this thread was moved to G2 support; my problem relates to Gallery 1.5-pl1.

I realize my original post may not have been very clear. I didn't mean to imply that the Gallery team should fix the code. The problem is not with the code; the problem is with Go Daddy's server configuration. I recognize that. I'm not asking Gallery developers to tackle the problem. I'm asking other programmers and Gallery experts if there's a way to modify the code so I can lower the number of files that are opened, thus avoiding the dreaded "Too many open files" error. Short of modifying the code, are there any configuration changes I can make to lower the number of open files?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-09-30 18:15

[Moved back :)]

Sorry about that. As far as I know, there is nothing that can be done. Someone else might have more insight though, but I doubt it since this issue has been raised several times before.

h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
Peretz

Joined: 2005-09-30
Posts: 4
Posted: Tue, 2005-10-11 20:41

Hm. It seems that accessing the gallery as a standalone script (instead of as a PHP-Nuke module) dodges some errors. Maybe there's a way to reconfigure Gallery or re-write some lines of code dealing with how Gallery integrates with PHP-Nuke?

Oh, and updating to 1.5.1 didn't help. :(

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2005-10-11 20:56

Well, I doubt it. If so, it would have been done a long time ago. The problem is the GoDaddy limitations, and as far as I know thats the only host we've seen this on.

h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
Peretz

Joined: 2005-09-30
Posts: 4
Posted: Wed, 2005-10-12 06:16
h0bbel wrote:
The problem is the GoDaddy limitations, and as far as I know thats the only host we've seen this on.

Only host that freaks Gallery out, eh? Could anyone recommend a good AND cheap web host with multiple MySQL databases and a hefty amount of hard drive space (2GB+)?

On a side note, I tried to install Gallery 2 with nukedgallery.net's PHP-Nuke+G2 integration package...and had no success. :( So it looks like I'll have to move web hosts after all.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-10-12 07:17

Check out http://gallery.menalto.com/wiki/Web_Hosting_Referral_Page

h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org