[04:03:20] Some suspiciously outdated responses at https://global-search.toolforge.org/?q=parseJSON&namespaces=2%2C4%2C8&title=%28Gadgets-definition%7C.*%5C.%28js%7Ccss%7Cjson%29%29 [04:03:28] > bug.wikipedia MediaWiki:Gadget-Twinkle.js |;\n*$)/g, "" ); } try { var options = $.parseJSON( optionsText ); // Assuming that our options [04:03:32] https://bug.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Twinkle.js&action=history [04:03:42] This page was modified half a year ago to not contain that string anymore [04:04:21] * Krinkle copies to -cloud [04:04:32] maybe the same cause as https://phabricator.wikimedia.org/T278721 - something being cached and not updating? [05:50:33] Krinkle: T264735 is my report, haha (though I can no longer log in to Phabricator with my old Wikitech account) [05:50:33] T264735: MultiHttpClient has hard-coded deprecated cURL option used by CdnCacheUpdate - https://phabricator.wikimedia.org/T264735 [05:54:30] oh hmm I think it worked, cool [05:56:14] (as expected, I am an idiot) [06:29:58] I just set up bluespice media wiki, (docker) and it looks like the docs on enabling extensions don't apply to the current docker version. Is there somewhere I can look that up? [06:41:09] Hi, I'm trying to install from github branch REL1_35 for development and having issues. Running composer update gives me an error that the php version is not right for package doctrine/dbal, do I have to manually update php inside the container or is there a better image to use with this branch [15:00:36] I'm in serious need of help. When we tried to upgrade our wiki from 1.30.0 to 1.35.0 using a mysql database. If I try using php update.php I get an unknown database error from the loadbalancer. If I try upgrade via mw-config it goes through the entire process and says it good to use  the wiki but when trying it says it can't access that database. [15:00:37] I'm totally confused. [15:04:08] Kanto - May be best to contact the tech team for this [15:04:46] that should be upgrade to 1.35.1  so how do I troubleshoot a connection to the database issue when it gives me nothing to go on. How do I contact the tech team? [15:05:16] kanto: what's the /exact/ error message you're getting? [15:05:29] PotsdamLamb: huh? this is the mediawiki support channel, not sure what you mean by "tech team" [15:05:54] php update.php [15:05:54] MediaWiki 1.35.1 Updater [15:05:55] Your composer.lock file is up to date with current dependencies! [15:05:55] Wikimedia\Rdbms\DBConnectionError from line 1420 of /mgi/software/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error () [15:05:56] #0 /mgi/software/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(934): Wikimedia\Rdbms\LoadBalancer->reportConnectionError() [15:05:56] #1 /mgi/software/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(901): Wikimedia\Rdbms\LoadBalancer->getServerConnection() [15:05:57] #2 /mgi/software/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1046): Wikimedia\Rdbms\LoadBalancer->getConnection() [15:05:57] #3 /mgi/software/mediawiki/maintenance/includes/Maintenance.php(1371): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef() [15:05:58] #4 /mgi/software/mediawiki/maintenance/update.php(141): Maintenance->getDB() [15:05:58] #5 /mgi/software/mediawiki/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute() [15:05:59] #6 /mgi/software/mediawiki/maintenance/update.php(253): require_once('/mgi/software/m...') [15:05:59] #7 {main} [15:06:35] use a pastebin or a similar service next time, the network might kick you off if you send large amounts of text at once [15:07:06] I love the useful error messages of mysql [15:07:24] anything on mysql servers logs? [15:09:40] kanto: MediaWiki supports setting :$wgDBadminuser and $wgDBadminpassword, usually a database user with higher privileges for doing upgrades (creating and altering tables). Check if you have those set and if they're correct. That would explain why it usually works but fails during the upgrade [15:10:13] I do not know where to look  for them. I'll ask my sysad where to find them. [15:12:14] Vulpix. I have both of them in localsettings and I checked to make  sure they are right. They look right. The only change  I had to make was that I used to use localhost and now mediawiki makes you use the server name. [15:14:05] maybe that user needs to be recreated or set permissions accordingly to the host it's connecting from, since mysql users are identified by user name and host [15:18:55] well it looks like it's not allowing the user access according to the mysql log but... we can access phpmyadmin with this user name and password and we can access the database via command line using this user name and password. as for host the mediawiki software and the database are on the same server. [15:23:02] kanto: user@localhost is not the same as user@servername according to mysql [15:25:02] yes, exactly and the new version of mediawiki makes you declare the server name in localsettings $wgDBserver. I used to have this just set to localhost. [15:27:19] That's not MediaWiki, but php. For the mysql driver of php, localhost usually means it connects through a socket instead of tcp/ip, which may not be available to you and force you to use the server name [15:27:30] however, you could use 127.0.0.1 instead of localhost [15:28:20] I don't know if 127.0.0.1 and localhost are equivalent hosts for mysql users, though [15:28:31] ^^ no they are not [15:32:03] well set did this upgrade to a test instance we have on another server and  we did not have this problem once we gave the user@servername the right permissions. So not sure why this instance is having so much trouble. [15:33:09] I should be able to access the database via command line right? does anyone know the syntax for that? [15:34:23] when I tried before even though I user user@servername it balked and put @localhost after it. [15:34:48] mysql -u username -h hostname -p [15:34:55] enter password on the next line [15:35:36] ok got it. I'll try that thanks Reedy [15:39:58] that got  me to the mysql monitor which makes me assume  I'm in but now how  do I access the actual database? [15:41:01] use databasename; [15:46:06] so using mysql monitor I can get to the database just fine as user@servername. so why can't mediawiki? [15:48:35] if you connected using the same host and credentials, I don't know. There should be no difference [15:53:00] maybe the idea of blowing the user away and recreating  it will help. That's the only idea I can think of. On the other server the user id is all privileges but database specific. Does the user need to be database specific or is global fine? [15:53:21] "global" is fine [15:53:47] i.e. you could put the root db user and password into a mw config and it would be happy with it, if you knew them [15:54:39] but mediawiki will access the db from the host where it is, so you need to account for that [16:00:25] majavah I meant this https://meta.wikimedia.org/wiki/Tech/News/2021/14 [16:01:44] if i understand what you are saying the user is going to be from the host server. We have always had it on the host anyway. I do not have access to root user at all [16:15:56] I found the problem! somehow these setting got uncommented: # Postgres specific settings [16:15:56] #$wgDBport           = "5432"; [16:15:57] #$wgDBmwschema       = "mediawiki"; [16:15:57] #$wgDBts2schema      = "public"; [16:16:35] the port one would likely explain it [16:54:59] ah! glad that was an easy fix [18:26:37] Hello I am on this page https://www.mediawiki.org/wiki/Help:Extension:Kartographer [18:26:55] on this section GeoShapes via Wikidata Query [18:27:27] and am interested on how I do this on my own wiki project [18:27:28] "To edit this query, copy the query parameter after the "#" symbol at https://query.wikidata.org/#...:" [18:28:02] I am thinking I do not have enough of the correct extensions installed [18:47:17] What I am trying to do is probably simpler than what this page describes. I just need to create one page, make several polygons and put individual polygons on other different created pages. [22:58:50] When I instantiate an Api object in browser JavaScript with `var api = new mw.Api();`, how do I specify a wiki? [23:01:57] (Is that even possible?) [23:02:45] if you want to have an api for dealing with a foreign wiki, use mw.ForeignApi [23:02:53] https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.ForeignApi [23:03:10] Ooh, cool, thank you [23:03:48] and if CentralAuth is installed the core ForeignApi will be overridden by one from CentralAuth that adds handling for CentralAuth tokens, see https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/CentralAuth/+/refs/heads/master/modules/ext.centralauth.ForeignApi.js [23:04:14] (not listed at https://doc.wikimedia.org/index/ so I don't know if there is any generated documentation)