batch uploads get stuck

vb1971

Joined: 2002-09-23
Posts: 7
Posted: Mon, 2002-09-23 06:06

I have using Gallery for a few months now. I tried to debug this earlier but could not figure out a solution was
wondering if anybody else has the same problem. I have been dealing with it by uploading in batches. but i am getting tired of it.

My Setup : Mandrake Linux 8.2 clean setup , PHP v 4.1.2 , gallery as postnuke module

Single uploads always work . Most of the time a few pictures (3-4) will work but anything more will get stuck mid way. This happens with both GalleryRemote and when I upload a bunch of ftp'ed files from "add photos"

With debug mode on i can't find anything unusual - no errors. The last operation always returns fine.

On the server the apache processes for uploads (pnmscale. jpegtopnm) etc just stops.

I check apache error_log, access log, turn on php error loggin and /var/log/messages. I don't see any unusual messages. I have increased timeout restrictions on http server config and the upload_max_filesize, and post_max_size in the php.ini but these don;t seem to be the problem.

any ideas as to what to look for.

thanks
vb

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-09-23 07:48

I've seen this happen a few times before. Generally the main cause for it is that PHP causes Apache to segfault under certain kinds of load. You might try upgrading to PHP 4.2.3 and see if the problem goes away.

When this has happened before and the user has given me access to their box, I've tried putting in print statements everywhere and generally what I found was that the process would abort in random locations, sometimes between two print statements (!). I also found that there will typically be a "segmentation fault" message in the *master* Apache error log (not the one for your virtual host). Did you check there also?

 
vb1971

Joined: 2002-09-23
Posts: 7
Posted: Mon, 2002-09-23 16:19

I am running my own server and one site. I think I have only one error apache error log file.

One more point the "adddir.pl" script seems to be able to upload just fine.

-vb

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-24 02:26

Hmm. Ok, several options.

1. Try putting print statements everywhere along the code flow to see if you can narrow down where it's failing

2. Try upgrading PHP

3. Try the <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpWiki&amp;file=index&amp;pagename=Donation%20Based%20Support" TARGET="_blank">Donation Based Support</A><!-- BBCode End --> option.