[00:09:03] On wikitech? Seriously? [00:10:13] GRP [18:04:40] So on toolforge in php, my url fopen of https://graphite.wikimedia.org seems to fail like half the time, but it seems fine locally [18:05:09] Is there anything special in toolforge that would make this happen? Or do I just need to use something better than url fopen like a grown up? [18:05:30] error in question is "failed to open stream: HTTP request failed!" [18:06:14] isn't graphite.wm.o behind authentication? [18:06:23] so maybe fopen() just doesn't like the redirect [18:06:38] No, its a public endpoint [18:06:59] Actual url is: https://graphite.wikimedia.org/render?target=sortByMaxima(groupByNode(summarize(MediaWiki.extdist.extensions.[0-A]*.*.sum,%221w%22,%22sum%22,true),3,%22sum%22))&format=json&from=-1w&until=now [18:07:56] PHP seems to give an error with a status code if you get a 500 or something, so i think its failing to establish a connection, which feels weird. It fails pretty instantly too, so not a timeout [18:09:04] using curl gives "curl: (3) bad range in URL position 113:", but I might just be failing to escape it correctly in my shell [18:09:16] you probably need the -g option to curl [18:09:38] oh yeah, that works [18:09:39] weird [18:09:48] for me, curl works consistently [18:10:02] Which is maybe a sign I should accept php url fopen is terrible and just use curl [18:14:27] Ohhh [18:14:40] php.ini default_socket_timeout is 1 second. I bet that's the problem [18:16:32] Yes confirmed, that was the problem [18:17:17] thanks for letting me talk this through. Helps the debugging process :) [18:17:40] aha, that explains it [18:19:45] I dunno why we haven't created a wiki[mp]edia rubber duck yet [18:23:59] "you agree to license any code involved with conversations with this duck under an OSI-approved open source license" [18:28:00] huh [18:28:24] That would explain why SLF bot was broken [18:28:58] The fact that it is 1 makes me wonder if someone accidentally set it to true or something like that [18:39:30] You mean like https://gerrit.wikimedia.org/g/operations/puppet/+/ba2083cc3c4b64c1b48f9e60317b40847ecb1aee/modules/php/manifests/init.pp#21 [18:39:51] also [18:39:51] huh [18:39:52] https://gerrit.wikimedia.org/g/operations/puppet/+/ba2083cc3c4b64c1b48f9e60317b40847ecb1aee/modules/profile/manifests/toolforge/grid/exec_environ/buster.pp#87 [18:40:14] I guess its intentional then [18:40:15] but 60 here - https://gerrit.wikimedia.org/g/operations/puppet/+/ba2083cc3c4b64c1b48f9e60317b40847ecb1aee/modules/profile/manifests/mediawiki/php.pp#100 [18:40:24] Intentional, but maybe not purposeful [18:40:34] ie "error carried forward" [18:40:53] I suppose 1 second makes sense for connections within the same data center [18:41:10] maybe they just thought it was used for like opening connections to memcache or something [18:41:27] 60 is the php default btw [18:44:22] 1 does not seem like a reasonable default [19:34:04] Success! https://www.mediawiki.org/wiki/Extension:Scribunto the infobox now includes popularity [19:34:37] oh, i meant to say that in a different channel [22:42:18] How am I properly supposed to downgrade to PHP 7.3? [22:42:32] on a Cloud instance [23:25:28] !log tools.wikibugs Updated channels.yaml to: 3fc8f04d85b953d989704f66c6ff345b127cd614 Enable phab and gerrit notifs for #countervandalism [23:25:30] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.wikibugs/SAL [23:49:58] AmandaNP: Sounds scary