PDA

View Full Version : Upload timing out


macke
18th of May 2004 (Tue), 14:27
Now that EE has added an http upload facility it's finally won me over and I'm in the process of moving my galleries over to EE.

The first few images I added went through fine, but lately I'm getting more and more timeout errors when executing the upload command from /input/EDITOR_upload.php.

I have not had any problems actually sending the images tot he UPLOAD folder on the server. I usually do two images at a time and each time it goes through smoothly.

However, when I upload the images to the database, the process is timing out with "10060 - Connection timeout" more often than it's not.

I have three sizes setup, 400, 600, 800px, resized with ImageMagick. Even if I just select one of the sizes, it will still timeout. Every now and then I can get a few images in, but lately it's started to get very frustrating as there doesn't seem to be a logic behind why one image won't work one day, and will work another day.

This happens both when executing the upload from a remote browser, as well as executing it from a browser logged in on the server itself. It looks like Apache2 or ImageMagick isn't processing the request in a timely manner.

Previously I used to use Coppermine and GD2 and had no problems with the upload and resizing process. I'll try GD2 with EE as well just to troubleshoot further, but any suggestions are appreciated.

Attached is my server information:

--max

Server signature: Apache/2.0.46 (Win32) mod_perl/1.99_10-dev Perl/v5.8.0 mod_ssl/2.0.46 OpenSSL/0.9.7b PHP/4.3.2 Server at www.maxkaar.com Port 80
Server name: www.maxkaar.com
Server protocol: HTTP/1.0
Http accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Http accept encoding:
MySQL version (reported by MySQL server): 4.0.16-nt
PHP version: 4.3.2
Database in use: ee

macke
18th of May 2004 (Tue), 14:51
Interesting... When I go into my paths setup I can't select a resize method for my microthumbs although the resize method is setup... wonder if this is what's hanging up the process and if so, why can't I select the resize method...

Pekka
18th of May 2004 (Tue), 15:44
The resize method selection on path editor displays only resize methods which are using graphic modules that are "activated". So open graphics modules editor, do the test and approve it. After that you'll see the choices on other parts of EE.

About the upload problem. Basically it is safe to say that if you have not done anything to EE and gradually something is working worse, the reason is in server configuration - either low dis space, heavy traffic, cron jobs booting services etc.

Server admins can even change Imagemagick path without notifying you!

macke
18th of May 2004 (Tue), 17:24
The resize method selection on path editor displays only resize methods which are using graphic modules that are "activated". So open graphics modules editor, do the test and approve it. After that you'll see the choices on other parts of EE.

About the upload problem. Basically it is safe to say that if you have not done anything to EE and gradually something is working worse, the reason is in server configuration - either low dis space, heavy traffic, cron jobs booting services etc.

Server admins can even change Imagemagick path without notifying you!

I have it running on my own box, I hope I don't change things without letting myself know. Although it's been known to happen.

Turned out I had accidentally changed the graphics engine from Image Magick to Imagick Pear. Changed it back but I'm still getting the same results when uploading. The test image resizes fine and doesn't come up with any errors.

I setup GD2 as a resize method and it seems to be a lot more reliable than Image Magick. Or if nothing else, a lot less resource intensive.

Too bad I can't seem to be able to use Image Magick on my box, but I've been happy with what I've gotten out of GD2 in the past.

--max

Pekka
18th of May 2004 (Tue), 17:33
Does the problem with upload/Imagemagick happen when you upload only one photo, or when you upload several photos at one command?

macke
18th of May 2004 (Tue), 23:08
Does the problem with upload/Imagemagick happen when you upload only one photo, or when you upload several photos at one command?

I've tried several combinations. As I'm on a satellite connection, our cionnections leaves something to be desired, so I've relegated myself to uploading only one image at a time. The first couple of images with GD2 went through fine, I will keep an eye on this as I transfer my gallery over and see if it starts to bomb out over time as well.

--max