#wordpress 2024-08-24

2024-08-24 UTC
drifty, chee, wagle and capjamesg joined the channel
#
GWG
ben: https://github.com/indieweb/wordpress-indieauth/pull/276 - This takes out the repeating client discovery.
#
Loqi
[preview] [dshanske] #276 Remove discovery on each load if Client is Already Cached
#
ben
trying now
#
ben
patch applied, testing with quill
#
ben
still hanging, got a 504 gateway timeout again
#
GWG
Interesting.
#
ben
would there be any helpful logs with WP_DEBUG on?
#
GWG
I would hope so
#
GWG
Can you go over exactly what you are doing?
#
GWG
Just logging into Quill?
#
ben
yeap just logging into quill
#
ben
turning on debug
#
ben
i believe it also happened when snarfed tried to do indieauth signin _to_ my qp
#
ben
if you'd like to give that a try, idk if you'd be able to get anything on your end
#
GWG
Well, there's no user account on your site for snarfed, is there?
#
GWG
There is definitely something happening with websignin
#
GWG
But not on my test site.
#
GWG
Of course, I've never tried to log into a site where I had no account.
wagle joined the channel
#
ben
hm i have the setting to allow people to sign in with it
#
ben
there's no option to connect it to an existing account though
#
ben
idk
#
ben
2024/08/24 01:34:34 [error] 3130851#3130851: *412326 upstream sent too big header while reading response header from upstream, client: 192.168.1.22, server: be
#
ben
lback%26reauth%3D1%26action%3Dindieauth%26_wpnonce%3De358606e28%26response_type%3Dcode%26client_id%3Dhttps%253A%252F%252Fquill.p3k.io%252F%26me%3Dhttp%253A%252
#
ben
F%252Fbenharri.org%252F%26state%3D5dbf798e79060434%26code_challenge%3D3Aoa7ZUnbq1DgnvzWLOHLEEOm247uCKvmdYX4RHDnKU%26code_challenge_method%3DS256%26scope%3Dprof
#
ben
ile%2Bcreate%2Bupdate%2Bmedia&reauth=1 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "benharri.org", referrer: "https://quill.p3k.io/"
#
ben
oop my bad idk why it split like that
#
GWG
Well, that means the buffer on your nginx server is smaller than it probably should be.
#
ben
oh hm ok i will have to check what they're at
#
GWG
Either way, not polling for client discovery every time is a good fix.
#
ben
yeah makes sense
#
ben
mm i bumped the proxy buffer and that issue is fixed but we're still hanging after that
#
GWG
Just when you try to log in to Quill or otherwise?
#
ben
just when i try to log in yeah
#
GWG
So...you go to quill.p3k.io and then enter https://benharri.org in the box, then log into your site?
#
GWG
At which point is it hanging?
#
ben
in an incognito window, right after i logged in normally to wp-admin
#
ben
in a logged-in window, right when i press sign in
#
GWG
Interesting.
#
ben
authorize on quill
#
GWG
Hmm...going to have to think
#
ben
also testing on https://webmention.rocks/receive/1 and it hangs right on sign in
#
ben
sits 30 seconds and gives 504
#
Loqi
[preview] [Webmention Rocks!] Receiver Test #1
#
GWG
And nothing in the logs?
#
ben
2024/08/24 01:56:18 [error] 1924336#1924336: *414080 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.16
#
ben
upstream timed out
#
GWG
I'm just wondering what it is trying to do at the same time that it is timing out on
#
ben
same
#
ben
idk how to get more info
#
GWG
I have three sites using it, and am not experiencing the same.
#
ben
nginx or apache
#
GWG
All nginx, all PHP-FPM
#
GWG
And this is the first report from someone on this.
#
GWG
I thought maybe it was timing out querying the other site, but I can't reproduce it
#
ben
both sites i have indieauth on are timing out here
#
GWG
Same server?
#
ben
yeah
#
GWG
How is the server configured?
#
ben
same, nginx php-fpm
#
GWG
I meant the configuration files.
#
ben
the nginx/
#
GWG
Yes. Possibly the php-fpm ones. Might have a clue
#
GWG
I'd add wp-json to the skip_cache config so it won't cache the REST API endpoint.
#
ben
the only thin i remember adjusting in the php.ini was post_max_body_size
#
GWG
if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|^/feed/*|/tag/.*/feed/*|index.php|/.*sitemap.*\.(xml|xsl)") { - add in /wp-json/|
#
ben
oh good call
#
ben
added
#
GWG
Does that help?
#
ben
nope
#
GWG
Worth a shot
#
ben
for sure
#
GWG
It is still noting x-fastcgi-cache when I go to benharri.org/wp-json
#
ben
hmm
#
ben
gonna try disabling fastcgi_cache
#
GWG
At least as a test
#
ben
could it be a self-ping type thing?
#
GWG
It shouldn't be.
#
ben
still getting the upstream timed out thing
[snarfed] joined the channel
#
ben
i will have another look tomorrow
Lars-Christian, regal, pakhrom, [tantek] and [KevinMarks] joined the channel