Post ASP78u0OP04DF3MFn6 by based_retard@poa.st
(DIR) More posts by based_retard@poa.st
(DIR) Post #ASOuGaw7suaj0thT0q by josh@poa.st
2023-02-06T11:05:08.233088Z
1 likes, 0 repeats
I am observing NGINX (OpenResty) returning a 200 0B response very frequently (a null response every few seconds), but very sporadically (a very small percentage of all total requests). It happens with both PHP requests and static requests. I'm at a total loss as to what could be causing this. Anyone want to spitball ideas?
(DIR) Post #ASOuLjIoCxgYPKl4W8 by josh@poa.st
2023-02-06T11:06:04.179901Z
0 likes, 0 repeats
What's really obnoxious about this, by the way, it is seems to be supplying the correct headers! So it's passing cache headers on a 0B response and fucking up everything, especially when it happens to important JavaScript files which are static and present on the disk.
(DIR) Post #ASOvBLpOjL8af4cHaK by imhuhwhite@poa.st
2023-02-06T11:12:14.056313Z
0 likes, 0 repeats
@josh any specific type of request? get/post etc, like its not someone trying to do something weird with request types i guess
(DIR) Post #ASOvBMfraH6ZHnABMW by josh@poa.st
2023-02-06T11:15:23.526054Z
1 likes, 0 repeats
@imhuhwhite Not really. It happens pulling from S3, for PHP-FPM requests, and for static files on disk. It just randomly decides to response 200 with no content about once per 10 seconds, leaving thousands of other requests unmolested. I don't see any POSTs failing, but POSTs are very infrequent. I am pretty sure they happen because there's a huge uptick in doubleposting, but which makes sense if a post is completed but no response is returned.
(DIR) Post #ASOyZUKj3jCrqvTG9g by fatchan@shitposter.club
2023-02-06T11:53:23.105480Z
0 likes, 0 repeats
@josh Sounds like a fun game of "comment out nginx config directives one at a time" until you find the culprit. Any odd logs?
(DIR) Post #ASOzOLBsoKagGYaDcO by josh@poa.st
2023-02-06T12:02:33.768477Z
0 likes, 0 repeats
@fatchan Besides shit like this, no.[06/Feb/2023:12:01:29 +0000] "GET kiwifarms.net/threads/sjw-art-and-extremes.8410/"; 200 0 "-" "Mozilla/5.0
(DIR) Post #ASP78u0OP04DF3MFn6 by based_retard@poa.st
2023-02-06T13:29:25.619397Z
2 likes, 0 repeats
@josh It's returning a null response because you are Null :D
(DIR) Post #ASP8IqjdW2JNwupMW0 by aboow@poa.st
2023-02-06T12:55:49.874222Z
0 likes, 0 repeats
@josh @fatchan Enable debug logging and look again.
(DIR) Post #ASP8ItHk2CmTrGncx6 by fatchan@shitposter.club
2023-02-06T13:42:25.940775Z
0 likes, 0 repeats
@aboow @josh ^ this, or if you really want spitballing, try disabling gzip and/or gzip_proxied temporarily and see if it clears up.
(DIR) Post #ASP9G6kNcvvuh9Qpkm by OceanRedux@poa.st
2023-02-06T13:53:08.499859Z
0 likes, 0 repeats
@josh observe these nuts
(DIR) Post #ASPD3htIcDI7wkwi7E by eriner@noagendasocial.com
2023-02-06T14:35:43Z
0 likes, 0 repeats
@josh maybe HTTP2 conn directive? This person seems to have run into a similar problem: https://serverfault.com/questions/1090470/nginx-http-2-zero-length-filesIt may be a shot in the dark, but see if it resolves if you increase the http2_max_requests directive.
(DIR) Post #ASPJp3tzCCaNY3ENtI by eriner@noagendasocial.com
2023-02-06T15:51:30Z
0 likes, 0 repeats
@josh and like the OP there, change your log line to display the number of body bytes written. Maybe a TCP connection is being killed somewhere in the chain and it starts to write the body but is interrupted and never finishes.From the client (browser) log I don’t know if you’d be able to tell, and hopefully nginx doesn’t lie as was suggested in the serverfault OP.
(DIR) Post #ASPMIBEnCWnsbayXmS by josh@poa.st
2023-02-06T16:19:10.089216Z
1 likes, 0 repeats
@eriner The issue is a little different. $body_bytes_sent is actually 0.
(DIR) Post #ASPMJjpe47K8BgxKYC by josh@poa.st
2023-02-06T16:19:26.507947Z
0 likes, 0 repeats
@eriner I have tested http2 off, btw. It doesn't seem to make a difference.
(DIR) Post #ASPOOma1TXsi4CBKW8 by eriner@noagendasocial.com
2023-02-06T16:42:46Z
0 likes, 0 repeats
@josh and when you mentioned that responds with all the expected (correct) headers, does it also return a non-zero Content-Length?
(DIR) Post #ASPPLZpIXKtZb6MUsa by josh@poa.st
2023-02-06T16:53:23.792348Z
0 likes, 0 repeats
@eriner Good question. This user posted logs and it appears so.kiwifarms.net/threads/technical-grievances.16928/post-14613168
(DIR) Post #ASPPmigHiuh8sW5YzQ by eriner@noagendasocial.com
2023-02-06T16:58:18Z
0 likes, 0 repeats
@josh On the "curl http/1.1" spoiler I don't see a Content-Length header at all in the response.Also, are these headers contradictory?< cache-control: private, no-cache, max-age=0< x-xf-cache-status: HIT
(DIR) Post #ASPQRPk52fqy0uGiga by eriner@noagendasocial.com
2023-02-06T17:05:40Z
0 likes, 0 repeats
@josh Don't know how else to help other than to note that the http2 (broken) log returns an explicit 0 content length and doesn't provide a cache hitThe second log (http 1.1) appears to not return a CL header before writing the body and does have a cache hit.Not much else I can help with without seeing the full config and flipping bits.Good luck friend
(DIR) Post #ASPRS73e605iJCJjKi by eriner@noagendasocial.com
2023-02-06T17:16:59Z
0 likes, 0 repeats
@josh oh, one thing you could try, in case it's being caught on another virtual host due to another proxy messing up the Host header or something:change/create a catchall directive (default_server) and temporarily have it return a 418 status code or something. That way you can tell if it's just being routed incorrectly. If it is, you'll see it start returning 418s instead of 200s.
(DIR) Post #ASPisU7Cgq40ZO8swy by circuSphere@poa.st
2023-02-06T19:54:49.346019Z
0 likes, 0 repeats
@josh Stickers, Uploads and Reply/Quote AJAX requests keep failing until I refresh the page. Something to do with the new DDOS Retarder?
(DIR) Post #ASPisUjqNAyKVEDkB6 by josh@poa.st
2023-02-06T20:32:14.227127Z
0 likes, 0 repeats
@circuSphere I don't know how you're making so many requests to trip the system mate. It lasts for an entire day.
(DIR) Post #ASPkaKBh3sgGTYi7yy by node@poa.st
2023-02-06T20:51:22.950986Z
0 likes, 0 repeats
@josh @circuSphere likes are broken until refresh for me as well Josh. I'm on Brave
(DIR) Post #ASPkvz689ZDZRDR9Ga by josh@poa.st
2023-02-06T20:55:16.705341Z
0 likes, 0 repeats
@node @circuSphere Are you both on mobile?