Hi, I am having a weird issue. It seems I have everything up and working
with the NginxHttpUploadProgressModule, however, when I upload a file
and attempt to track the progress I get the expected response but the
received is the same as the size:
On Fri, 2010-02-26 at 08:53 -0500, fredanthony wrote:
Notice its does send back done when completed. Any ideas on a possible cause? Thanks.
The usual issue when having those symptoms is that your upload actually
finished before the first upload progress probe could even reach the
server.
People usually test the upload on localhost, but nowadays localhost is
so fast that 4MiB are uploaded in less than 1 second…
To actually see something:
either throttle your upload
or
upload something really large (ie > 1GiB).
Compile nginx --with-debug and look to the debug log, you’ll certainly
see that the upload was finished before your client sent the upload
progress probe.
I have tried some pretty large files and still the same output, the
funny thing is I do the fetch progress every 1000 mili seconds and I get
back more responses for larger files until I ultimately get the ‘done’.
It does seem to know when the file is done, its just the total uploaded
that appears to be failing…
On Mon, 2010-03-01 at 11:46 -0500, fredanthony wrote:
I have tried some pretty large files and still the same output, the
funny thing is I do the fetch progress every 1000 mili seconds and I
get back more responses for larger files until I ultimately get the
‘done’. It does seem to know when the file is done, its just the total
uploaded that appears to be failing…
As I said in my previous e-mail, please compile nginx in debug mode (and
activate debug error_log), then try again.
Send me (privately) the debug log, I’ll analyze it and see what can be
wrong.
I still suspect your probes get checked by nginx only after the upload
has been finished (and while it is transmitting the uploaded file to
your upstream).
Forgive my ignorance but Im not sure how to contact you privately. As a
side not the logs show nothing but a a warn for
27632#0: *416839 a client request body is buffered to a temporary file
/var/tmp/nginx/client_body_temp/000000056x
the access logs simply show the following on each get progress request: