coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: richarn on July 16, 2005, 08:43:27 PM

Title: Batch Upload - Locking Php
Post by: richarn on July 16, 2005, 08:43:27 PM
I have been working on getting my batch upload working and have run into a bit of a problem.  I am using GD 2.x as image converter.  I am an ex windows software dev turned Professional Photographer.  My files are rather large, however, it seems to even have the same issue on smaller files it just takes longer.  This leads me to believe that it has something to do with memory usage.  What occurs is during the SearchNew.php search for new files in the directory it starts showing images that it has resized then at a certain point they become broken links.  The point at which the link becomes broken depends on the sizes of the files it has already processed.  Now the thing that I am having the real issue with is at this point it has hosed the Php process.  If I click on the broken link I get "Service Unavailable".  If I click any other links in Coppermine I get "Service Unavailable".  The only way to clear it is to Navigate out of anything related to php or to cycle the php service on the server.  I realize this is probably something my hosting provider has me configured for but what I need to find out is what it might be.  That way I can figure out if they can remedy this or maybe there is a way in my Coppermine install to fix this.   Below is Debug info from SearchNew.php.  Note... I probably won't have any say in changes on the php configuration since I am on a shared server.  Thanks in advance for any help anyone can give me for this.

********************** Debug Info ********************
USER:
------------------
Array
(
    [ID] => 4038d313aee914fe0ec1b03df8b73acb
    [am] => 1
    [liv] => Array
        (
           
Title: Re: Batch Upload - Locking Php
Post by: richarn on September 23, 2005, 08:01:23 AM
This is still an issue.  It seems to me that what is breaking is the GD image stuff but is happening because the processes in Coppermine are likely not releasing the memory or the GD binaries or library after each use.  That is why it works for a while then breaks and how many files it can process is related to how large the files are.  Please someone help me wth this.
Title: Re: Batch Upload - Locking Php
Post by: Joachim Müller on September 23, 2005, 08:57:22 AM
does indeed sound like improper server setup. Suggested workaround: add less files in one go. If the thumbs get broken, just try refreshing the page by pressing [F5] - the pics the script has processed already should turn up as "DP", while the ones that showed as broken thumbnails should be processed. If your server freezes and needs to be restarted, than that's clearly something your webhost has to figure out. The PHP commands that trigger the GD stuff don't need to be terminated, so there is no other mechanism you could look into (i.e. modify coppermine codes).
Title: Re: Batch Upload - Locking Php
Post by: richarn on September 23, 2005, 05:53:59 PM
For one thing I really cannot add less files at a time or it would make job 10 times longer as I have Galleries of Proofs for my clients that are anywhere from 250-several thousand.  This is giving me trouble after say 10-12 of my regular 800x600 images.  I also cannot keep hitting F5 since in my initial post I stated that it locks the PHP process.  This means every time I navigate or refresh on a PHP page I get a Service Unavailable.  The only way to clear this is to navigate far enough out of the PHP software(to like Yahoo or something like that) or to Cycle the PHP service on the server.  The reason I say it is a memory release issue is that is sort of how it is presenting itself.  If I make the images 640x480 it may process 15-16 before having the same behavior.  If I up it to 1280x1024 Its around 5 of them.  If after each thumb creation from the original file the original image file was released and its memory deallocated I should never hit my memory barrier unless I had one massive file that went over it.  I have seen other posts that have you increase the memory for use in this but that is not possible when being hosted by a large shared hosting service and its only prolonging the inevitable when the limit is reached.  Here is to hoping there may be another answer because I really like Coppermine and would hate to have to change to something else.
Title: Re: Batch Upload - Locking Php
Post by: Joachim Müller on September 24, 2005, 09:09:52 AM
the initial problem is the server setup: if a php script runs into memory outage, the php process mustn't stop and need recycling. As suggested before: contact your webhost for support.
Title: Re: Batch Upload - Locking Php
Post by: artistsinhawaii on September 24, 2005, 10:09:42 AM
Richarn,

It does sound more like a server issue to me as well.  I've batch added 45, 1200x800 pixel, pics at a time without problems on my webhost at Ipower.com.  I've since lowered my res to 1000 x 665 because 1200 just seemed a bit unnecessary.  If your webhost can't get it right, you may want to look around for a different hosting service.


Dennis



 

Title: Re: Batch Upload - Locking Php
Post by: richarn on September 25, 2005, 12:30:36 AM
Yes I know it is some server issue since I too have had it work for me in the past on a different hosting service.  If I had to guess they are limiting the memory or threads on one of the services.  I was hoping there was some way to make sure it didn't happen from the software... Oh well.  Now can anyone point me towards a couple of things they might have configured wrong so I can stear thier tech support?  I am not privy to most of thier settings and I know I am going to get some moronic tech support person that does nothing but look up FAQs and says straight up they dont support 3rd party software.  Thanks for the responses.

Rick
Title: Re: Batch Upload - Locking Php
Post by: kegobeer on September 25, 2005, 06:28:12 AM
Don't bother.  In my experience, webhosts won't respond to any suggestions you may make.  It's their server, they'll run it how they want to.  Just find a better host; it's much easier and you won't be nearly as frustrated.
Title: Re: Batch Upload - Locking Php
Post by: richarn on September 25, 2005, 07:34:37 AM
Yes thats why I was trying other stuff Kego before having to talk to them.  I have already had one run in with the folks at Interland over what they kept telling me was due to a third party software.  It was actually my own code and it wasnt working properly due to thier server setup which I finally proved to them.  Also opened a ticket with them for something that was hanging when you executed it and they closed it with a link to instructions on how to do what I was already doing.  Uggg I just hate to have to move my site yet again as I have some 10,000 pictures on it. 

BTW what is this XP_Publisher thing refered to in some posts?  Is it something in Windows XP?  Is it possible that it can get around my apparent Web Hosting configurations issues? (Nevermind - getting farther into searches I found the explaination and I wont run Windows XP)

Thanks all for the Help
Title: Re: Batch Upload - Locking Php
Post by: richarn on September 27, 2005, 09:37:20 PM
Thanks for all the help - I moved my site to Hostgo who has predefined scripts I can run from thier admin tool to install Coppermine.  Everything installed wonderfully and I was able to process all my pictures without any troubles.