Large file upload issues (>10MB)

iDEV d.o.o. info at idev.si
Wed Jun 18 05:09:39 MSD 2008


Might be something with the FreeBSD implementation of unix sockets,
if I recall correcly I had some problems with memcache on unix socket,
and they went away as soon as I changed to TCP.

On Tue, 17 Jun 2008 18:01:29 -0700, mike <mike503 at gmail.com> wrote:
> ahh - i've seen a lot of issues with people and fastcgi via socket.
> i've always ran TCP even on localhost, too many random issues and
> complaints from people.
> 
> glad it's solved!
> 
> On 6/17/08, iDEV d. o. o. <info at idev.si> wrote:
>> I solved the problem by binding php-fcgi to 127.0.0.1 port 7777,
>> I have no idea why it didn't work on unix socket.
>>
>> On Wed, 18 Jun 2008 02:01:01 +0200, iDEV d.o.o. <info at idev.si> wrote:
>> > The files I'm trying to upload are 12MB and 19MB.
>> > And I tried setting it to 350m, and uploading is still not working.
>> > I tried adding:
>> >         proxy_read_timeout    1600;
>> >         fastcgi_read_timeout  30m;
>> > to the confing file, but unfortunately it has not solved my problem.
>> >
>> > On Tue, 17 Jun 2008 16:44:37 -0700, mike <mike503 at gmail.com> wrote:
>> >> maybe try setting it to 350m?
>> >>
>> >> maybe -exactly- 300m is cutting it too close with header info/etc.
>> >>
>> >>
>> >>
>> >> On 6/17/08, iDEV d. o. o. <info at idev.si> wrote:
>> >>> Its quite strange... sometimes the uploading is complete, and
> sometimes
>> >> I
>> >>> get the previosly mentioned message:
>> >>> The page you are looking for is temporarily unavailable.
>> >>> Please try again later.
>> >>>
>> >>> But if everything goes OK, I print out the $_POST and $_FIlES:
>> >>> Array ( [catID] => 1 [MAX_FILE_SIZE] => 314572800 [title] =>
> Futurama
>> >> 05x01
>> >>> Sample [tags] => futurama, risanka, vesolje, znanstvena
>> >>>  fantastika ) Array ( [file] => Array ( [name] =>
>> >>> futurama.5x01.crimes_of_the_hot.dvdrip_xvid-sample-fov.avi [type] =>
>> >>> video/x-msvi
>> >>> deo [tmp_name] => /tmp/phpp0HXT5 [error] => 0 [size] => 13152256 ) )
>> >>>
>> >>>
>> >>> But in about 90% of all tries, the uploading fails. Any ideas why?
>> >>>
>> >>>
>> >>> On Thu, 12 Jun 2008 12:27:00 +0200, Aleksandar Lazic
> <al-nginx at none.at>
>> >>> wrote:
>> >>> > On Don 12.06.2008 12:06, iDEV d.o.o. wrote:
>> >>> >>Hello,
>> >>> >>
>> >>> >>we are having trouble with "large" file uploads...
>> >>> >>The issues occour when uploading files larger than 10MB.
>> >>> >>
>> >>> >>The uploading takes place, but when the uploading is complete I
> get
>> >> the
>> >>> >>message:
>> >>> >>- The page you are looking for is temporarily unavailable.
>> >>> >>- Please try again later.
>> >>> >>
>> >>> >>And the entry in the log file:
>> >>> >>- 2008/06/08 00:13:14 [error] 13013#0: *19 upstream timed out (60:
>> >>> >>Operation timed out) while sending request to upstream, client:
>> >>> >>193.95.238.59, server: new.smej.se, request: "POST /savefile.i - -
>> >>> >>HTTP/1.1", upstream: "fastcgi://unix:/tmp/ng.php:", host:
>> >> "new.smej.se",
>> >>> >>referrer: "http://new.smej.se/dodaj.i"
>> >>> >
>> >>> > what are the values of the variables?
>> >>> >
>> >>> > http://www.php.net/manual/en/features.file-upload.php
>> >>> >
>> >>> > Have you a error massege in the backend?
>> >>> >
>> >>> > Hth
>> >>> >
>> >>> > Aleks



--
bMail.si - Storitev portala mojblink.com (avtor: iDEV d.o.o.)







More information about the nginx mailing list