(70007) The timeout specified has expired: AH01075: Error dispatching request to : (reading input brigade)

Keywords: WordPress - AWS - Technical issue - Other
bnsupport ID: bc7c08ab-1a3f-de7e-f527-eee6589599fc
Description:
I have a lightsail instance running bitnami wordpress.
I need to upload big files to the CMS.
so I changed /opt/bitnami/php/etc/php.ini to allow posts as big as 200MB uploads

post_max_size = 200M
upload_max_filesize = 200M

; increased the memory just in case it's needed
memory_limit = 256M

the problem is that when uploading a big file, the request always fails (408 Request Timeout)

https://xxxx/wp-admin/async-upload.php -> 408
The interesting part is that it always fails after 20 seconds.

The apache error logs (/opt/bitnami/apache2/logs/error_log) shows the following

[proxy_fcgi:error] [pid 23211:tid 139741349488384] (70007)The timeout specified has expired: [client 213.61.101.50:61132] AH01075: Error dispatching request to : (reading input brigade), referer: https://XXXX/wp-admin/media-new.php
[proxy_fcgi:error] [pid 31121:tid 140523029833472] (70007)The timeout specified has expired: [client 213.61.101.50:53685] AH01075: Error dispatching request to : (reading input brigade), referer: https://XXXX/wp-admin/upload.php

I’ve tried to find where this timeout defined or can be configured but didn’t manage to.
Is it possible to configure the async-upload timeout to be 60 seconds (or more)?

image

attached 2 screenshots of the timing tab (for the failed async-upload.php request

Hi @abdelrazzak.ahmed,

We solved similar issues recently by adding a missing configuration to the Apache service. Can you please check if the post below helps you to fix your issue?

Remember to restart the Apache service after doing modifications for changes to take effect

sudo /opt/bitnami/ctlscript.sh restart apache

Hope it helps,
Gonzalo

Thanks a lot, this is working.
just for reference the configuration that I used is

# file /opt/bitnami/apache2/conf/httpd.conf
<IfModule reqtimeout_module>
  RequestReadTimeout header=20-40,MinRate=500 body=20-60,MinRate=500
</IfModule>

which also adds a maximum 60 seconds on the upload of the body (thanks for the documentation reference)

I tried to change the update the same configuration that was shipped with bitnami in those files

/opt/bitnami/apache2/conf/original/extra/httpd-default.conf
/opt/bitnami/apache2/conf/extra/httpd-default.conf

they have the same configuration but apparently they don’t have any effect (since they are not included).

Hi @abdelrazzak.ahmed,

Thanks for the info. I’m glad you fixed your issue! We will close this thread as solved. Please do not hesitate to open a new one with any other question you may have.

Best regards,
Gonzalo