keep getting timeouts when uploads PDFs
-
Hello,
I have been trying to upload PDF documents and about ever 5th attempt seems to work. I keep getting time outs. The files are only about 900k.
There is no other error messages. Is there something I can check?
Thank you,
Peter.
-
there is a couple of areas you can look at first take a look at these settings in your php.ini file:
upload_max_filesize = 100M post_max_size = 100M max_execution_time = 100Make sure you have adequate resource a lot to all variables.
Another thing to check on is you php /tmp directory. Make sure there is enough space on the drive to handle file uploads. Taking a look at my /tmp dir I have about 1.5G of space give or take the amount of tmp files being created.
Let me know if this does’t solve your problem.
Thanks for respoding. I checked my settings and I have the following:
upload_max_filesize = 100M
post_max_size = 105M
max_execution_time = 1000
max_input_time = 1000
memory_limit = 256Mwhat about the tmp directory ?
the tmp dir is 2.3GB total, only 315M free. 86% used.
The PDF files are small – only about 800k.
try going to Options > Settings > Disable System Settings > and checking Disable Sessions
Disable Session is not checked. Should it be?
Yes try checking disable sessions, then test again.
Unfortunately, I was able to upload one file (good) but when I tried uploading a second file, I got this error:
Gateway Time-out
The gateway did not receive a timely response from the upstream server or application.
it maybe an apache setting… take a look at your httpd.conf. check for a setting called Timeout xxx make sure that setting has a number like 1000
I don’t have a httpd.conf… I am running php. my phprc file has this:
1 ; {{{ The following lines were automatically added by DreamHost 2 zend_extension=opcache.so 3 ; }}} That's all from DreamHost 4 5 upload_max_filesize = 100M 6 post_max_size = 105M 7 max_execution_time = 1000 8 max_input_time = 1000 9 memory_limit = 256M-
This reply was modified 9 years, 3 months ago by
Ipstenu (Mika Epstein).
if running php you also must have a httpd.conf.
I work for DreamHost 🙂 He has an httpd.conf. He may not have access to it (only DreamCompute and Dedicated tend to).
@dualice – What’s your domain? If you’d like I can take a look at your server settings.
Hello,
My domain is olivebranchlodge.org
thank you,
Peter.So sorry I didn’t get back to this yesterday. I ended up in meetings all day 🙁
olivebranchlodge.org is on a shared box, so you definitely don’t have access to EDIT httpd.conf 🙂 Timeout is lower than 1000 on shared boxes so you’re not the noisy neighbor.
@bhaldie – How high does your plugin need timeout to be?
The error is definitely timeouts though as I see
Script timed out before returning headersall over. Would PHP 7 help any?Depending on the size of the file. Currently on my test environment I have time out set to 600 I think that would be more than adequate to handle any large sized file. @dualice is uploading small files (900k) which shouldn’t cause any timeouts issue. So maybe the best approach would be to try and upgrade to PHP to 7.
-
This reply was modified 9 years, 3 months ago by
The topic ‘keep getting timeouts when uploads PDFs’ is closed to new replies.