Date: Wed, 9 Jun 2021 21:48:04 +0200 From: =?utf-8?Q?Niels_Kobsch=C3=A4tzki?= <niels@kobschaetzki.net> To: freebsd-questions@freebsd.org Subject: Weird problem with Apache and php Message-ID: <FACFB856-BF42-42AE-953F-F801F17EED88@kobschaetzki.net>
next in thread | raw e-mail | index | archive | help
--Apple-Mail-24D3E0C6-9E4A-4DE8-91AF-CDBF6104907E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I have a weird problem on an old machine (FBSD 11.2, Apache 2.4, php 7.1 - p= lease don=E2=80=99t ask): I am trying to upload files via a simple php-scrip= t. I am using mod_proxy_fcgi for connecting Apache to php-fpm. When I try to= upload a file of a size between 63 and 64 KByte it works fine. As soon as t= he file is 1 Byte bigger the following happens: The upload starts and I see the temporary file popping up in /tmp and it is a= t max ca 40KByte in size. Interestingly it was today a different size in Byt= es then with my tests yesterday but it is over the day always the exact same= size. Then php hangs and suddenly php-fpm disconnects and errors out and th= e browser shows that something went wrong - maybe the server is busy, but no= error code. That suddenly is always around 18 seconds and it is also always= the same time.=20 I attached truss to the php-fpm-process that handles the upload and you see i= t start, then nothing happens and php-fpm releases the connection. I did a t= cpdump on the loopback-interface on port 9000 and you see that the upload st= arts and suddenly there is an error uploading the file-message in the dump.=20= I checked the post_max_size and the upload_max_size, they are at over 100MB.= My request timeout is at 60 seconds. I tried a higher timeout for the proxy= from mod_proxy and it didn=E2=80=99t help. The login-class looks good. In /= tmp are files bigger than that size and there is no quota. I tried to play a= round with mod_reqtimeout and it didn=E2=80=99t help. I found something that= this might happen when Apache is compiled with AP2FILTER and it isn=E2=80=99= t. I checked the involved .htaccess and there are php value-directives.=20 The crazy thing is: I have an Ubuntu 18.04 with pho 7.1, the same php-settin= gs and Apache-configuration (or as close as I could get them) and there it w= orks perfectly fine.=20 Does anybody have any idea what could be the problem or another idea where I= could look? I checked now everything I could imagine and I just can=E2=80=99= t explain why the php suddenly hangs, then dies and unlinks the temporary fi= le. There are no errors in the php_error.log. There is nothing in the php-fp= m.log.=20 I see only this in the Apache-log: [Tue Jun 08 14:23:56.744245 2021] [proxy_fcgi:error] [pid 2700:tid 345045184= 00] (70007)The timeout specified has expired: [client XXX.XXX.XXX.XXX:51340]= AH01075: Error dispatching request to : (reading input brigade), referer: h= ttps://website.TLD/path/to/script.php Any idea would be helpful. Maybe a sysctl that could matter? Some config in /= etc I am overlooking? I just can=E2=80=99t explain it.=20 Desperate greetings, Niels= --Apple-Mail-24D3E0C6-9E4A-4DE8-91AF-CDBF6104907E Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCBeow ggXmMIIDzqADAgECAhBEMe++tvvajzW7Qm6uHiTOMA0GCSqGSIb3DQEBCwUAMIGBMQswCQYDVQQG EwJJVDEQMA4GA1UECAwHQmVyZ2FtbzEZMBcGA1UEBwwQUG9udGUgU2FuIFBpZXRybzEXMBUGA1UE CgwOQWN0YWxpcyBTLnAuQS4xLDAqBgNVBAMMI0FjdGFsaXMgQ2xpZW50IEF1dGhlbnRpY2F0aW9u IENBIEczMB4XDTIxMDEyMjA3MDYzNFoXDTIyMDEyMjA3MDYzNFowITEfMB0GA1UEAwwWbmllbHNA a29ic2NoYWV0emtpLm5ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKGE3VPqrT0N XGZdchPoGGagQTDr7jdkAxKFiKj7BIlJnAVtJxCF/S8R27LcztHrXTnxBC1iBo0Cmr+7ophm6nnn qYz8a7f3S1U3U0sFuFyR6IjvanjlHQN1QvI8uYJ1f5bLRbMMoXkItafCjecqd8AOZzimRHk9SJBo 4zQVSfDQ3GmuVlqivGNmsQHJthbxFVUByLF88mAwenudeB7lPkMEVk9uo7swfYsCKawF1qwrUyV5 sGvE6RQm0+McXhLF4cDFiwthI6UTk8ZJrX8+JLWiiGI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MSwwKgYDVQQDDCNBY3RhbGlzIENsaWVudCBBdXRo ZW50aWNhdGlvbiBDQSBHMwIQRDHvvrb72o81u0Jurh4kzjANBgkqhkiG9w0BAQsFAASCAQAggpOJ wroSJFWAeUVtYtaB95v/suTASk+EhQwI8L3GI3DrjVIbiyTR2OqMju7Ai/lbvrUrH/FPnGfA06Kz HlZ6LeLoJhTNoyunkRtr06vYlx94Xr3cVkMX15Scn4KmAFmuDnIWB+0VXmAnSrlNChbMDDi8YwWW tGPJQm+3o7F3sRXE2OFb2WVSfJR4cxggjmVVmoAShfel41k6wgjiJ9jQrxUYfVjBPSMNRCj4vkfd sacA8V8RS+ijq3A5h3yVVziT1QAkRPoOuiffcvbS1CWSJuBB4RG6Hzikot5ZWGVBu43+HA/ik7fu syZ6lky5gqUkGbqj/koVOANj2uLaQH7LAAAAAAAA --Apple-Mail-24D3E0C6-9E4A-4DE8-91AF-CDBF6104907E--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FACFB856-BF42-42AE-953F-F801F17EED88>