From owner-freebsd-questions@freebsd.org Wed Jun 9 19:48:15 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 859DF6526DA for ; Wed, 9 Jun 2021 19:48:15 +0000 (UTC) (envelope-from niels@kobschaetzki.net) Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [IPv6:2001:67c:2050::465:102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4G0d255gQ0z3Q4j for ; Wed, 9 Jun 2021 19:48:13 +0000 (UTC) (envelope-from niels@kobschaetzki.net) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4G0d215FKMzQk9M for ; Wed, 9 Jun 2021 21:48:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kobschaetzki.net; s=MBO0001; t=1623268087; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GPRUNoTRw/dhAChi9dCek164leUD+KaJIa1mV2PsTkU=; b=msPK3xXTRoOG15nMybfWInOnHJCDHLx96H+fIMRiGpdyKToD7Nx5jPARCbNEdurjwhmGxT mUEhfq8TJPcxQh3wI1R+RWWiV2O4Xww9FuaIxJOnkCY/LkB3hxfoAMbVdMGOL7T2bD7jth iaMr57/F8mp8ExCO7ZvhJfxyTdWzrQddhqD5TGQQebr2JMQzfF1MTXaTTJv79Z34vWxJlP CdKOGV2nXaaIAD7wQ5TRChsDy0zc1+qs5zrw7yfqWufouAaNvoF+9qPs2PkrgMZQAq/uuY U4E9fKaXXFnpoHRN8nppymfI8Sd5tURENm3EuJC21Hd83+Ws1jzEPooPcWevDw== Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id MNaHd956HV97 for ; Wed, 9 Jun 2021 21:48:05 +0200 (CEST) Content-Type: multipart/signed; boundary=Apple-Mail-24D3E0C6-9E4A-4DE8-91AF-CDBF6104907E; protocol="application/pkcs7-signature"; micalg=sha-256 Content-Transfer-Encoding: 7bit From: =?utf-8?Q?Niels_Kobsch=C3=A4tzki?= Mime-Version: 1.0 (1.0) Date: Wed, 9 Jun 2021 21:48:04 +0200 Subject: Weird problem with Apache and php Message-Id: To: freebsd-questions@freebsd.org X-MBO-SPAM-Probability: X-Rspamd-Score: -6.31 / 15.00 / 15.00 X-Rspamd-UID: 863f3b X-Rspamd-Queue-Id: 4G0d255gQ0z3Q4j X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kobschaetzki.net header.s=MBO0001 header.b=msPK3xXT; dmarc=none; spf=pass (mx1.freebsd.org: domain of niels@kobschaetzki.net designates 2001:67c:2050::465:102 as permitted sender) smtp.mailfrom=niels@kobschaetzki.net X-Spamd-Result: default: False [-1.59 / 15.00]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:67c:2050::/48]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[kobschaetzki.net:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:67c:2050::465:102:from]; ASN(0.00)[asn:199118, ipnet:2001:67c:2050::/48, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2001:67c:2050::465:102:from]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[kobschaetzki.net:s=MBO0001]; FREEFALL_USER(0.00)[niels]; FROM_HAS_DN(0.00)[]; SIGNED_SMIME(-2.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[kobschaetzki.net]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2001:67c:2050::465:102:from:127.0.2.255]; NEURAL_SPAM_SHORT(0.61)[0.607]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2021 19:48:15 -0000 --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 CgwOQWN0YWxpcyBTLnAuQS4xLDAq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