coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: vlimmere on May 12, 2004, 03:39:03 PM

Title: [Solved]: Upload errors...
Post by: vlimmere on May 12, 2004, 03:39:03 PM
Ok,

after trying to get cpg1.3 working, but receiving strange errors during the file upload (http://forum.coppermine-gallery.net/index.php?topic=6120.0, still sorry about that blunder  ;D), I downgraded to cpg1.2.1. However, I still get the same errors. I realize that this means that it is probably not a problem with coppermine that I am facing, but I am hoping that someone here can point me in the right direction.

This is the error that I get using single file upload on about 80% of my jpg files:

ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://62.195.120.83/cpg121web/db_input.php

The following error was encountered:

Write Error
The system returned:

   (32) Broken pipeAn error condition occurred while writing to the network. Please retry your request.

Any takers?

you can try to upload pictures yourself using at http://62.195.120.83/cpg121web/ using user test and password testing.

My Debug info:
USER:
Array
(
   [ID] => d42b24144f751032db4cf4b2485baf75
   [am] => 1
   [liv] => Array
       (
           
Title: Re: Upload errors...
Post by: hyperion on May 12, 2004, 05:52:46 PM
What are the file sizes on those JPEGS?
Title: Re: Upload errors...
Post by: vlimmere on May 12, 2004, 08:37:18 PM
Quote from: hyperion on May 12, 2004, 05:52:46 PM
What are the file sizes on those JPEGS?
These are typically pictures that I made myself with my 4 megapixel camera: between 1 and 2 MB per file.

These are the settings that I use related to the size of the uploads:

max_execution_time 30 30
max_input_time 60 60
upload_max_filesize 8M 8M
post_max_size 8M 8M
Title: Re: Upload errors...
Post by: Casper on May 12, 2004, 11:48:51 PM
The problem is probably one of the pics being to big.  This is not a coppermine problem, but a one of the image lib program (Imagemagick/GD), which requires huge memory resourses to deal with pics of large pixel size (this is regardless of jpeg quality settings).

Try making them smaller, say 1000 x 750, but with high quality.
Title: Re: Upload errors...
Post by: hyperion on May 13, 2004, 02:35:13 AM
Memory errors usually give a specific error message, but the memory limit could also break uploads in this case if it was unusually low. I'm betting that this is either a truncation issue caused by the setting for PHPLimitRequestBody (usually found in /etc/http/conf.d), or it is a case of an input timeout.  60 seconds may not be enough time for your files to load over your connection, and the script will not parse if you exceed this time limit.
Title: Re: Upload errors...
Post by: vlimmere on May 13, 2004, 02:05:57 PM
Quote from: hyperion on May 13, 2004, 02:35:13 AM
Memory errors usually give a specific error message, but the memory limit could also break uploads in this case if it was unusually low. I'm betting that this is either a truncation issue caused by the setting for PHPLimitRequestBody (usually found in /etc/http/conf.d), or it is a case of an input timeout.  60 seconds may not be enough time for your files to load over your connection, and the script will not parse if you exceed this time limit.

As the error occurs immediatly, I ruled out the time-out option. Then I looked into the settings for LimitRequestBody and found it to be set at 0.5MB. I upped it to 4 and now everything is working just fine!

Thanks!