[01:00:03] Hello [01:30:52] ... [02:15:28] when i'm adding multiple replicas do I need to keep it at 0, 1, 1, etc or how can I split up the load? the documentation is not great for this [02:55:25] having all the replicas at 1 presumably shares the read query load, but I wasn't sure how else it could be dispersed. occasionally one replica will be a LOT higher load than the other...and vice versa. somethings both are completely normal. I am trying to keep everything as even as possible but the randomly dispersed load makes little sense sometimes [02:56:52] s/somethings/sometimes/ [03:15:57] c: MediaWiki code-style doesn't put () for require_once to ensure it isn't confused with a function call [03:22:38] legoktm: what [03:23:01] https://www.mediawiki.org/w/index.php?title=Template:ExtensionInstall&curid=86529&action=history showed up on my watchlist [03:23:31] oh that was from like a month ago. I was like what does that have to do with replica dbs <_< [03:27:07] legoktm: we will pretend to ignore the fact that every manual known to man uses parentheticals, therefore I will divert your change of subject and point you back to my question about replica dbs :) [03:27:49] I have no idea how MW replica configuration works, lets see [03:28:30] the example config on the $wgDBservers page uses 2 replicas and a 0, 1, 1 split but it doesn't really delve deeper than that [03:31:40] // Pick a server to use, accounting for weights, load, lag, and "waitForPos" [03:32:11] load is calculated by LoadMonitorMysql and then it also looks at replag I think [03:32:22] so...I don't have a good answer on how to tune it [03:32:30] make sure you're using LoadMonitorMysql and not a generic implementation? [03:34:36] all our instances are on AWS RDS and they have their own monitoring thing so I'm not sure if that's what they're using? I just wasn't sure how the numbers on the replicas could be manipulated other than needing to have a SUM of greater than 1 [03:37:29] LoadMonitorMysql is just calculating the load on the db server, and then giving to the loadbalancer as another number to factor in when picking a replica [03:37:56] I think tweaking the numbers is kind of your best bet in shifting the load around [03:38:05] but that's not absolute, MW is also looking at other things too [03:40:37] how are they tweaked though? if I have one master and five replicas that is a SUM of 6 with all replicas set to 1 [03:40:45] er SUM of 5 [03:41:28] I think it's just all proportional? [03:41:33] I'd check the Wikimedia config as well [03:42:01] https://noc.wikimedia.org/conf/highlight.php?file=db-eqiad.php [03:42:08] using stuff like 100, 500, etc [03:43:53] that's a bit more complex obviously but I'm a bit confused on what these numbers signify [03:55:21] they're just ratios I think [04:02:08] :thonk: [04:31:05] Hi. I have installed a brand new MW 1.33, brand new database, no extensions installed yet. I am trying to run the update.php from the command line and am getting an error [04:31:21] what's the error? [04:31:25] Parse error: syntax error, unexpected '?' in /home/smiliepe/public_html/t2/maintenance/update.php on line 254 [04:32:42] have you validated your LocalSettings.php for an unexpected '?' [04:34:08] How do I do that? [04:34:16] Sorry, I am fairly new to this [04:34:37] did you do any custom editing to LocalSettings.php after using the web installer? [04:35:06] No, not yet [04:36:43] I have included a single extension down the bottom of my LocalSettings.php which I wish to install but not got it working yet [04:37:01] I tried commenting it out, to see if that was causing the problem [04:37:09] but I still get the error message [04:39:46] BradLee: what PHP version are you using? [04:40:22] I think you're using a version that's too old. We require basically 7.0 or higher [04:42:11] I am using 7.1.30 [04:42:36] my web host allows for different php versions to run [04:43:01] so I have also tried 7.2.20 [04:43:13] and 7.3.7 [04:44:10] I don't think that is the problem as the wiki seemsm to have installed properly [04:44:32] i get the wiki default look, can log in, can also edit and save pages [04:45:24] for ome reason though i cant run the update.php, which i need to be able to do to start installing some extensions [05:13:44] Any other ideas of things to check? try? [05:53:47] BradLee: did you try commenting out or removing the extension line from LocalSettings.php and then running the update script again? [05:55:25] Yes [05:55:41] It didn't make a diffenece unfortunately [05:57:01] Thanks for the suggestion though [05:58:44] Generally, if you took the localsettings.php the web installer generated for you and made no modifications whatsoever but you're still getting an error, that would be rather odd [06:01:37] I know. I'm completely lost as to why. When I went to install it there were no problems listed in the pre-checks. And after it had completed installing, I got all the usual green ticks about the database tables being updated successfully. [06:23:04] .2 [07:00:43] I've just deleted the wiki done a fresh install and I'm getting exactly the same error message *facepalm* [07:00:49] Parse error: syntax error, unexpected '?' in /home/smiliepe/public_html/t2/maintenance/update.php on line 254 [07:40:29] BradLee: sounds like you are using php 5.6 with a MediaWiki version that requires php 7.0 or higher [07:41:02] BradLee: run php -v [07:41:19] sometimes your commandline version of php differs from your webserver's version. [08:33:11] @thedj it seems that you are correct [08:35:20] command line version is in fact 5.6.40, whilst the web version is 7.1.30 [08:40:22] i guess that means that I will not be able to run it until my web host updates, correct? [09:12:38] BradLee: usually there is a php7 commandline variant or something. [09:13:31] or look inside /usr/local/ for the binaries of the other versions of php [09:13:36] then simply run them by path [09:13:55] or php72 php73 etc.. [09:23:10] Ok thanks. If I have any more trouble I will contact my webhost provider. At least I know why it's not working now, so I have something to go on. [09:23:40] Kind regards to everyone else who helped me out too [09:23:48] BradLee: no problem. good luck [09:25:15] interesting point btw.. we have a version check on the webhost, but not on the maintenance tools.. yet the update maintenance is the very first most people will run... we should probably fix that... [09:31:35] Yeah, I was not even aware that different Web and CLI PHP versions could simultaneously exist. I suppose people who do this sort of thing regularly would be aware of such a potential issue though. [14:01:18] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @amir1 & @ottomata - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [14:38:26] Hey everyone, i'm trying to connect to the mediawiki api but it always redirect me to the api help page, the response contains the "bodyUsed: false" tag, i cannot figure out how to actually resolving this bug, i did put the code in the helpdesk, thanks for your help [14:51:17] Technical Advice IRC meeting starting in 10 minutes in channel #wikimedia-tech, hosts: @amir1 & @ottomata - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:36:39] anyone here? I can't create new task on phab, where I can report this? [15:39:44] Try #wikimedia-tech [16:25:29] Hi [16:25:34] Quick enquiry [16:25:49] What d and Generate? [16:26:07] Because I've got a warning about DIV SPAN swaps from lint [16:26:41] in respect of some transcluded pages, but the only things on those pages are Reference tags that wrap a DIV based element [16:27:15] https://en.wikisource.org/wiki/Special:WhatLinksHere/Page:King_Solomon%27s_Mines_(1907).djvu/234 [16:27:27] I can't figure out where the bad nesting is [16:27:39] because there is NOTHING present that should be causing it [16:29:53] Unless the references themselves are span based? [16:31:49] that actually seems likely [16:32:09] i don't think you can have block level elements in references [16:32:24] but then, i'm by no means an expert for this stuff [16:34:48] duesen: Worth raising a phabricator ticket? [16:35:09] Because if that's correct then a LOT of pages at English Wikisource are broken [16:35:25] because Extension:Cite is used extensively [16:35:28] to do footnotes [16:36:56] Congratulations: https://en.wikisource.org/wiki/Page:King_Solomon%27s_Mines_(1907).djvu/234 [16:37:05] You just broke Wikisource :lol: [16:37:24] Given that it shows EXACTLY the problem [16:37:38] but doesn't generate any warning [16:45:29] Back in a bit - Need to update something on my computer [17:13:39] Is phrabrictor having issues? [17:13:40] https://phabricator.wikimedia.org/T49544 [17:13:48] This generates an error... [17:15:30] Also how do I change the task type? [17:15:31] https://phabricator.wikimedia.org/T226400 [17:15:38] This should be a Feature request? [17:22:23] there is no way to change task type [17:27:03] How do I create A Feature request instead of Bug then> [17:27:05] ? [17:27:17] Given that task types were recently expanded to enable this? [17:30:45] MatmaRex: Yes there is. Choose "Change subtype" from the drop-down of actions on a given task. [17:31:28] oh. that's new [17:31:36] i remember complaining that this feature didn't exist [17:32:08] Yeah, it was added when we upgraded a couple of months ago. [17:32:13] https://phabricator.wikimedia.org/T176354#3623136 [17:32:21] Never let people say that whining achieves nothing. ;-) [17:33:27] James_F: Only for admins? Because I don't see a Change task type on a normal login [17:33:50] I have a few things that should be Feature requests [17:35:42] https://phabricator.wikimedia.org/maniphest/task/edit/185412/ is another that should be Feature request type