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
[-- Attachment #1 --] Hi, I have a weird problem on an old machine (FBSD 11.2, Apache 2.4, php 7.1 - please don’t ask): I am trying to upload files via a simple php-script. 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 the file is 1 Byte bigger the following happens: The upload starts and I see the temporary file popping up in /tmp and it is at max ca 40KByte in size. Interestingly it was today a different size in Bytes 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 the 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. I attached truss to the php-fpm-process that handles the upload and you see it start, then nothing happens and php-fpm releases the connection. I did a tcpdump on the loopback-interface on port 9000 and you see that the upload starts and suddenly there is an error uploading the file-message in the dump. 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’t help. The login-class looks good. In /tmp are files bigger than that size and there is no quota. I tried to play around with mod_reqtimeout and it didn’t help. I found something that this might happen when Apache is compiled with AP2FILTER and it isn’t. I checked the involved .htaccess and there are php value-directives. The crazy thing is: I have an Ubuntu 18.04 with pho 7.1, the same php-settings and Apache-configuration (or as close as I could get them) and there it works perfectly fine. 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’t explain why the php suddenly hangs, then dies and unlinks the temporary file. There are no errors in the php_error.log. There is nothing in the php-fpm.log. I see only this in the Apache-log: [Tue Jun 08 14:23:56.744245 2021] [proxy_fcgi:error] [pid 2700:tid 34504518400] (70007)The timeout specified has expired: [client XXX.XXX.XXX.XXX:51340] AH01075: Error dispatching request to : (reading input brigade), referer: https://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’t explain it. Desperate greetings, Niels [-- Attachment #2 --] 0 *H 010 `He 0 *H 00ΠD1ᄊڏ5Bn$0 *H 010 UIT10UBergamo10UPonte San Pietro10U Actalis S.p.A.1,0*U#Actalis Client Authentication CA G30 210122070634Z 220122070634Z0!10Uniels@kobschaetzki.net0"0 *H 0 S= \f]rfA07dIm'/۲]9-bfy穌kKU7SK\jxuB<uEy*wg8Dy=Hh4IiVZcfɶUȱ|`0z{x>CVOn0})֬+S%yk&^ŋa#I>$b!/}-MﺺMt,$<C3_a 00U0 0U#0S} 2.2w0~+r0p0;+0/http://cacert.actalis.it/certs/actalis-autclig301+0%http://ocsp09.actalis.it/VA/AUTHCL-G30!U0niels@kobschaetzki.net0GU @0>0<+0200+$https://www.actalis.it/area-download0U%0++0HUA0?0=;97http://crl09.actalis.it/Repository/AUTHCL-G3/getLastCRL0U }hL!ھv0U0 *H ɘ*te;NfSpX 1K. QB{@69b@|w6o8ͦi6EB68\)!/nڑcsLOTHisvF@"{uvhjH =uB nYxbP-Xj[ޢn,QBR$,z_|? I60ESMpǣ@.ߣF"n Z2g2<WW3ECX1 md&eҶӪu뀬B;6I7sjt)ꑟo*+H; 8ٺ|FM*.[^HFZu 0ފ>aqMf<BN)ڪ/gc*Ro{y"yjE;aa~)cWe1h1 ͯ&""3\Bʎy?a0+Nl^fK,p/iy100010 UIT10UBergamo10UPonte San Pietro10U Actalis S.p.A.1,0*U#Actalis Client Authentication CA G3D1ᄊڏ5Bn$0 `He 0 *H 1 *H 0 *H 1 210609194804Z0/ *H 1" aG1"Omh_#s9G{pl.0 +710010 UIT10UBergamo10UPonte San Pietro10U Actalis S.p.A.1,0*U#Actalis Client Authentication CA G3D1ᄊڏ5Bn$0*H 1010 UIT10UBergamo10UPonte San Pietro10U Actalis S.p.A.1,0*U#Actalis Client Authentication CA G3D1ᄊڏ5Bn$0 *H º$UyEmbցJO#pR$ꌎ[+OgӢVz-&ͣ+kӫؗx^VCה Yr^`'JM 8ccBow[eR|xs eUY:'Я}X=# D(Gݱ _K裫p9|W8 $D'r%&A8YXeA⓷&zL$J8c@~
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FACFB856-BF42-42AE-953F-F801F17EED88>
