• Resolved dualice

    (@dualice)


    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.

Viewing 15 replies - 1 through 15 (of 37 total)
  • Plugin Author bhaldie

    (@bhaldie)

    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 = 100

    Make 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.

    Thread Starter dualice

    (@dualice)

    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 = 256M

    Plugin Author bhaldie

    (@bhaldie)

    what about the tmp directory ?

    Thread Starter dualice

    (@dualice)

    the tmp dir is 2.3GB total, only 315M free. 86% used.

    The PDF files are small – only about 800k.

    Plugin Author bhaldie

    (@bhaldie)

    try going to Options > Settings > Disable System Settings > and checking Disable Sessions

    Thread Starter dualice

    (@dualice)

    Disable Session is not checked. Should it be?

    Plugin Author bhaldie

    (@bhaldie)

    Yes try checking disable sessions, then test again.

    Thread Starter dualice

    (@dualice)

    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.

    Plugin Author bhaldie

    (@bhaldie)

    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

    Thread Starter dualice

    (@dualice)

    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

    if running php you also must have a httpd.conf.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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.

    Thread Starter dualice

    (@dualice)

    Hello,

    My domain is olivebranchlodge.org

    thank you,
    Peter.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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 headers all over. Would PHP 7 help any?

    Plugin Author bhaldie

    (@bhaldie)

    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.

Viewing 15 replies - 1 through 15 (of 37 total)
  • The topic ‘keep getting timeouts when uploads PDFs’ is closed to new replies.