Support Forum

File Uploader – on large upload (300MB file), progress bar restarts and upload ultimately fails

LS Les Smith
Les Smith
Member

Client is trying to upload about a 300MB video with the file uploader plugin. It goes for a while, hits about 40%, and then the progress bar starts over. Then it eventually gets a really vague error message (HTTP error: Upload URL might be wrong or doesn’t exist.) and fails. Nothing is written to WordPress’s debug.log.

I noticed the scripts explicitly sets a 5 minute limit. I bumped this to 15 but it doesn’t seem to have affected anything.

Thoughts? Ever seen this?

8 Answers

New Answer

MP Mr Papa
Mr Papa
Member

what do you have set on the server for max upload size?  and max post size?

LS Les Smith
Les Smith
Member

512MB but 128MB for max_post_size. I thought I had updated that but clearly not. Let me get in touch with the host (this shared host instance seems capped at 128 w/o some other help) and update this issue if it’s still a problem.

LS Les Smith
Les Smith
Member

I had updated it, just not where I thought I had. A phpinfo within the upload script shows upload_max_filesize 512M and post_max_size 550M

MP Mr Papa
Mr Papa
Member

And what about the allocated php memory and cpu time settings?  With such a large file, either could be exhausted too… 

Have you checked.the server error log for any more info? 

LS Les Smith
Les Smith
Member

Memory limit 512MB. I’m not familiar with cpu timeout (or at least worded that way), but the upload scripts explicitly puts 5 minutes, and in timing the whole process I haven’t found things to fall consistently.

It’s a shared hosting instance so I don’t have direct access to server error logs, but the GoDaddy folks seem to think things look fine. They did send over an apache log, but I have a feeling it was for the wrong domain…I can give that another try if this isn’t an issue you’re familiar with.

I will say that was my original concern, considering it’s a 500 error and nothing is being written to WordPress’s debug.log.

MP Mr Papa
Mr Papa
Member

I would think 512MB is enough… checked on cpu time because most php installs default to 30 sec…

some 500 errors do get logged in the php error log vice the wp debug log…  apache log wont be much good…  and usually not in our log either on forum – toolbox – error log, but might be worth checking…

LS Les Smith
Les Smith
Member

Nothing in the SimplePress error log. Did find this in environment re: my PHP settings:

Version: 7.1.14
Memory: 512M
Max Upload: 1G
Timeout: 800

So that all seems square, and I’ve tinkered with the timeout to give it longer. I guess I can get on with GoDaddy again to review error logs.

YS Yellow Swordfish
Yellow Swordfish
Member

The server php error log seems like the place to look.
You might want to check out your php /tmp folder as well and make sure there are no restrictions there as commonly plupload will copy the image to the ./tmp folder and then move it to the desired location.