[01:06:11] i recently moved my mediawiki instance to a vps (it was hosted internaly before). it's mostly working fine but i'm getting fairly frequent parsoid timeouts when trying to edit a page or save a page after edit [01:07:09] any idea how to diagnose what the issue is? [07:25:19] k-man: which MW version are you running by the way? [12:58:58] Hi folks! I'm having a problem with VisualEditor in a wiki i'm maintaining. It works fine most of the time, except when you try to edit pages that have rather large tables in them. Then you get an "Error contacting the Parsoid/RESTBase server (HTTP 500)". Any idea what the cause (and more importantly, fix) is? [12:59:42] ping tgr|away who i saw answering a similar question in StackOverflow :) [13:01:50] Jhs: you may be hitting PHP's memory_limit setting [13:02:39] yeah, i tried adding ini_set( 'memory_limit', '1400M' ); (which is the same as Wikimedia uses) to LocalSettings.php, but it had no effect (but that may be the wrong way to do it? idk) [13:02:48] the normal memory_limit is 512M [13:04:17] If you've set php error_log to log errors to a file, it should list there a descriptive error message if it crashes because of memory or other fatal condition [13:06:52] aight, i'll check it out… it's all made more complicated by me not having direct access to the server, so i have to go through someone else to check those kinds of things (or install packages or w/e), but luckily he's a pretty responsive guy :) [14:22:16] anybody experience in getting VE/parsoid working under docker? [14:24:33] akoopal: Since REL1_35 it just works b/c parsoid is in PHP. There is no service to run. [14:25:03] I know, but docker makes it complicated, it doesn't work. [14:26:06] I have the default dockerhub image, with some extra's, and nginx in front for rewrite for shorturls [14:26:11] akoopal: Do you have an error message, or more information on your setup? It works for me. [14:27:26] I tested a lot, sometimes I get an error it can't connect, I now get an empty error box :_( [14:28:11] setup is nginx is redirecting /ssmw2 to the docker container, and /ssmwiki2 to /ssmw2 for the normal shorturl stuff [14:28:49] I had noticed in early tests it tried to reach /ssmw2/rest.php in the mediawiki container [14:29:53] I have configured: [14:29:58] wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' ); [14:29:58] $wgVirtualRestConfig['modules']['parsoid'] = array( 'url' => $wgServer . $wgScriptPath . '/rest.php', [14:30:01] ); [14:30:29] (hmm, didn't paste well) [14:31:33] "I have the default dockerhub..." <- I'm guessing that the shorturl rewrites are interferring. I use nginx to simply manage the domain mapping to ports on the host for multiple docker instances. I handle my ShortURLS in .htaccess in each container / MediaWiki instance [14:33:24] hmm, everything for that is working just not VE [14:34:19] but the docker image is running on / [14:35:09] so difficult to do the rewrites there? [14:37:03] I would try commenting out the whole `wgVirtualRestConfig` (use the default) I don't set that anywhere in my setup. [14:39:40] I started without, I found somewhere to do it like this [14:40:35] similarly, you don't need to `wfLoadExtension('Parsoid')`, unless you are a developer https://www.mediawiki.org/wiki/Parsoid#Installation [14:41:26] yeah, I understood you need to load it if you get the config [14:46:23] rundg[m]: are you using the docker-hub image? [14:47:56] You can test your parsoid configuration by visiting... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/746efa989a41027f160f6450779c3217dc3f1853) [14:48:31] akoopal: I'm using it as the base for my custom image. [14:53:42] hmm, with eval.php I see [14:53:46] https://wwwint.emea.vzbi.com [14:53:49] I get [14:53:59] {"messageTranslations":{"en":"The requested path (/rest.php/wwwint.emea.vzbi.com/v3/page/html/Main%20Page) was not inside the REST API root path (/ssmw2/rest.php)"},"httpCode":404,"httpReason":"Not Found"} [14:59:15] same error if I comment out the load and setting of the config [15:08:57] hmm, and I tried the nginx config you suggested, doesnt' help [17:43:39] akoopal: what is your script path? [18:03:23] tgr: /ssmw2 [18:08:39] akoopal: it just works for me [18:08:59] but I'm not doing url rewrites in front of mediawiki [18:09:19] not using pretty url's? [18:09:39] short url's I mean [18:09:43] not doing that in front of mediawiki [18:09:54] so doing it in the container [18:10:21] yes [18:10:37] will spend some time next week to redo it then. [18:10:48] it is work, and workweek is over :-) [18:11:00] the proxy simply sends it with the same path [18:11:22] that's easier since you don't need to teach MediaWiki to provide links to somewhere else than where it feels to be [18:11:49] akoopal: what is $wgRestPath set to? [18:13:04] not setting it myself, let me look [18:15:01] /ssmw2/rest.php [18:17:56] so apparently you are rewriting URLs in such a way that MediaWiki doesn't see the /ssmw2 prefix anymore, and rest.php has a security check (I guess?) where it disallows URLs which do not match the expected prefix [18:18:36] the rewrites are now in the ngnix container, the mediawikicontainer everything is in / [18:19:12] so it seems that was a bad idea and I need to bring the rewrites in the mediawiki container indeed [18:19:43] thanks for confirming, to redesign then [18:21:06] you could change $wgRestPath and it would probably work. But not doing it in the first place is certainly the better approach. [18:24:58] I could just try first, but better to move the rewrites. Will try it, but as I said, after the weekend. Difficult to test from my private laptop, and switch the worklaptop of in the weekend