[03:26:13] Hello all, I'm trying to set up my own local instance of wikibase repository and WDQS. I've managed to get everything all running, however, when I try to load data from my wikidata instance into wdqs I'm having issues, and I'm wondering if anyone could help? [03:26:54] When I run the munge.sh script with my rdf dump, I get the following error: 'Expected only sitelinks and subjects starting with http://www.wikidata.org/wiki/Special:EntityData/ and http://www.wikidata.org/entity/" [03:27:19] I think I'm supposed to change "wikibaseHost" (according to https://www.mediawiki.org/wiki/Wikidata_query_service/User_Manual#Standalone_service) but I have no idea where to change it [11:06:35] Anyone have any experience moving from SQLite to MySQL? [15:49:02] Is there a chart somewhere of what mw versions are compatible with what php versions? [15:49:19] yes, ish [15:49:26] Isarra: https://www.mediawiki.org/wiki/Compatibility#PHP [15:49:27] https://www.mediawiki.org/wiki/Compatibility#PHP [15:50:13] Hmm. [15:50:22] Thanks. [15:50:24] Er. [15:50:40] Do either of you lovely people know how to downgrade php? >.> [15:51:29] D: [15:53:38] Depends on your OS [15:54:09] What version are you needing to downgrade from? [15:57:18] It's ubuntu, and 7.0, apparently. [15:58:00] why do you need to downgrade? [15:58:34] Because we're on mw 1.23, and legoktm is the only one who knows how to run the db updates because the db is too big to use the usual scripts. >.> [16:04:41] Also something something DPL. [16:06:22] Wikia are making MW 1.19 PHP 7.1 compliant [16:06:24] * Reedy facepalsm [16:06:28] * Reedy facepalms too [16:06:52] Isarra: I guess reinstalling the OS isn't an option? [16:08:12] Snrrrk. [16:08:39] Not any time soon. [16:08:47] Man, I just wanted to get ssl working. [16:10:53] You need to either find a PPA for PHP 5.6 or similar for your version of ubuntu [16:11:06] Or try and force install the old php packages from the last php 5 version of ubuntu [16:12:20] Oh, it's all *there*. It's just everything got renamed. How do I make all the other stuff actually use it? [16:12:35] Everything got renamed? [16:12:54] Paths and such are totally different. [16:13:30] Egh, wait... I don't even know what I'm talking about. [16:14:47] ...yeah. It actually already is installed. >.> [16:14:56] I just don't know how to make things use it. [16:16:42] things? [16:16:42] it? [16:16:46] much technical [16:17:02] I don't know! [16:17:08] I'm not a real sysadmin! [16:17:36] Chances are you just need to change the version of PHP the webserver is using [16:17:42] Uh, apache is using php7. Do I just edit some config to tell it to use php5 instead? [16:18:02] > I have MediaWiki version 1.16.0.0 running on Ubuntu 16.04 with PHP7.0. [16:18:04] ...and I thought I was being bad. >.> [16:18:30] Do you have the php5 version of libapache2-mod-php7.0 installed? [16:18:37] libapache2-mod-php5 or libapache2-mod-php or something [16:20:50] Do now. [16:21:19] Do you need PHP7 support in apache still? [16:21:39] Nope. [16:22:58] I'd probably suggest uninstalling libapache2-mod-php7.0 then [16:23:04] A restart of apache... [16:23:10] And it should just automagically use php5 again [16:24:25] Oh. [16:24:39] Apparently this apache just wants php7. [16:24:50] just wants? [16:25:06] libapache2-mod-php requires libapache2-mod-php7.0. [16:25:31] https://packages.ubuntu.com/zesty/libapache2-mod-php [16:25:32] Yeah [16:25:42] You need to find the php 5 version... Possibly from wherever your php5 came from [16:45:24] Okay, what happens if you do try to use the usual maintenance scripts with a too big database? [16:45:31] Does it just take forever? [16:46:12] update.php? [16:46:18] Yeah. [16:46:45] It'll take a long time, yeah [16:46:58] And possibly cause db issues [16:47:15] Myes... [16:56:25] Okay! I have successfully restored our previous state of broke! [16:56:33] Reedy: Thank you for all your wonderful help. [16:56:38] I give up. [16:57:40] (But at least it doesn't appear to be any more broken than it was, now. >.>) [17:19:26] Isarra: how old is your own MediaWiki ? [17:20:06] saper: We're on 1.23! It's old! [17:22:49] Isarra: eeck time to update mate [17:23:13] We dont even support 1.23 [17:23:28] Zppix: So how're the third-party support scripts coming along for that? [17:23:38] For the projects that are just way too big to use update.php. [17:24:17] Do like WMF does [17:24:18] Isarra: afaik the only way besides fresh reinstall is update.php [17:24:21] DBAs! [17:24:23] Or dbas [17:24:39] You basically just run the update sql files manually [17:25:19] Usually, updating slaves first [17:26:06] how large is that wiki? I'm not sure how to measure that [17:26:09] However i would be careful with usercss and js since 1.29 drops support majorily compared to .23 [17:28:56] Support doesn't change. Just a few global renames/splits [17:29:05] ^ [17:29:09] Thats what i meant [17:29:20] also, a large wiki using apache-mod-php? maybe you want to use php-fpm [17:30:54] In all seriousness, I think we can do that. It's just a bigger task than I'm up for at the moment. [17:31:05] Which pretty much sums up why it's taken us so long in general. [17:31:45] Because yeah, what Reedy said. It's straight-forward enough. [17:32:12] You've got 40-50 sql patches to apply :/ [17:33:06] if wiki editing is not available during... 2-3h? (it should be a very large wiki for that I guess) that may take the update.php script I think it shouldn't be so bad... [17:33:26] DB changes can take weeks on WMF wikis :P [17:33:31] be sure to disable the binary_log in mysql so writes are faster [17:35:02] you could hire a cloud/vps with enough ram to mount the entire database in ram for doing the upgrade. Transfer the wiki there, mount the database in a ramdisk, upgrade, dump the sql and put it back on your original server [17:35:45] a vps hired for a few hours wouldn't cost you much even if it requires lots of RAM [17:39:22] I grabbed 1.083.000 revisions from a wikia wiki (18GB of uncompressed text, transferred to a server through api calls) in 6h15m [17:57:18] Hey, that's about the size of one of our small wikis! [17:57:20] Wait. [17:57:21] Crap. [17:57:28] That's the size of the SMALL wiki. O_o [17:58:25] Of course, that's also part of your problem [17:58:31] it's not just one wiki, it's many ;) [17:58:42] ...yes. [17:58:45] This is why we have legoktm. [17:58:48] * Isarra nods sagely. [19:32:15] Has anyone here needed a schema with a generic link to more than one type of MediaWiki entity? [19:32:42] We’re planning to link to revisions, articles, and then maybe fancy stuff like log entries… https://etherpad.wikimedia.org/p/meta_ores_schema [19:54:16] ;-) [19:56:49] [[Special:Redirect]]?