[00:01:37] GEOFBOT: http://pastebin.com/ZnNTK4CY now says "mw.Api error: " "mustposttoken" [00:02:24] action=edit has to be a post request [00:03:13] * huji should've guessed [00:05:00] huji: there is a funciton called postWithEditToken that auto-gets the token for you [00:05:03] looks useful [00:06:03] GEOFBOT: thanks I'll take a look :) [03:26:26] Have any created a collection of commons license literature? [06:32:56] good morning everyone [06:33:16] I've got a question and hope someone here can help me [06:34:13] is it possible to prevent changing password or e-mail by users? [06:35:16] or possibly fade out the "settings" button for a special usergroup? [06:46:43] you can disable emailing users (via the special page) [06:47:02] why do you want to prevent password changes Hans__? [06:49:35] i want to set one account for a number of users [06:50:01] the problem is, that i have to give all of them the username and password any all of them can change it [06:50:17] so the other would not be able to login anymore [06:51:45] the narrow sense is to manage a group of users by one username [06:52:45] why not just let them create their own user accounts [06:53:45] because of the number of users it would be too much work for me ;) [06:54:17] cause it's not my main profession [06:54:29] creating accounts isn't hard, users can even be enabled to do it themselves [06:54:59] in my wiki they are not because it schouldn't be open for everyone [06:57:18] !e ConfirmAccount | Hans__ [06:57:19] Hans__: https://www.mediawiki.org/wiki/Extension:ConfirmAccount_ [06:57:36] tldr; users sharing accounts is always a bad idea, and look at ways to prevent it [06:58:30] I know ... :( [07:10:42] allright, thank you so far [07:10:43] bye bye [07:41:10] Hi, guys! I had a problem. I installed mediawiki, but it works so slow. My server is CPU: 1 core, 2.4GHz, Mem: 1G, load average is 0,0,0. Anyone knows why it is so slow? [08:08:35] Hi guys [08:08:51] Is it possible to install Parsoid (& use VisualEditor) on a CentOS server ? [08:09:07] The setup parsoid doc only describe Ubuntu-Debian & Vagrant [08:11:20] Ok, found a procedure in the talk, gonna try that [08:38:06] Hey guys, I got a database error when opening a site in mediawiki. When I look at the database -> table page, the page appears twice. Does somebody know how to fix this? [08:43:49] Ok, was an error of my own plugin, fixed [09:51:51] hello [09:52:09] Im looking for a way to enable mediawiki through php-fpm fastcgi [11:47:11] anyone here using php5-fpm with their mediawiki? [11:47:17] instead of regular php? [12:01:44] aelevadoan: Like any other php application. What httpd are you using? [12:09:56] Anyone can help me finding what's wrong with my parsoid ? [12:10:18] I got nothing with the url https://wiki01:8000/diff/_wikitext/ [13:01:55] any api-ninjas here? [13:02:49] I'm trying to get articles based on a combination of location (using list=geosearch) and category (using categorymembers) [13:03:24] but I'm struggeling to combine the two queries, from what I understand a generator could be a solution, but I'm at a loss [13:03:30] this is what I have so far: https://gist.github.com/atlefren/59e20d6a6bda16e4c7e6#file-queries-js [13:40:04] Lcawte: apache [13:41:05] And your issue is? [13:42:13] Still no one knowledeageble about parsoid ? [13:42:33] Lcawte: http://wiki.lab-interconectividades.net/w/ [13:42:34] this [13:43:15] rgarrigue: #mediawiki-parsoid [13:43:38] thanks andre__ ! [13:43:48] rgarrigue, some of the Parsoid folks are not awake yet though, probably in 3 or 4 hours [13:44:35] Your rewrites look a little broken, aelevadoan. [13:44:37] West coast ? ^^ [13:45:01] Lcawte: you saw the virtual host I posted before? [13:45:06] No. [13:45:19] wait, I'll show you them [13:46:21] rgarrigue, yeah [13:47:22] Lcawte: thats my virtual host http://paste.ubuntu.com/12061774/ [13:50:12] aelevadoan: And what is the file path for your MediaWiki files? [13:50:14] Lcawte: and these are my last errors in wiki.error.log http://pastie.org/10346293 [13:50:29] Lcawte: I have a mediawiki farm [13:50:39] so all files are in /var/www/mediawiki_farm [13:50:48] but the code is in /var/www/mediawiki_farm/w [13:51:00] I have the general LocalSettings there [13:51:04] and then each subfolder [13:51:08] has its own localsettings [13:54:54] Lcawte: is that problematic? [13:54:58] So I've not done PHP-FPM with apache (I've done it far too many times with Nginx), but from what I'm reading, you're not telling it where PHP-FPM is... [13:55:10] aha [13:55:16] I have it configured at a general level [13:55:17] in [13:55:27] /etc/apache2/conf-available/php5-fpm.conf [13:55:44] http://paste.ubuntu.com/12061828/ [13:57:24] Lcawte: what I dont understand much is that supposedly its working on the rest of the sites on my vps [13:58:33] You have that same virtual host for other sites? [13:59:03] http://paste.ubuntu.com/12061852/ [13:59:08] thats my wordpress virtual host [14:00:03] hi everyone [14:00:34] Lcawte: it isnt exactly the same [14:02:50] i have one question, maybe someone can help me?! I am using mediawiki for my wiki and want to use one username for a number of people to use it. the problem is, that every user who has the username and password can change the mail-address and the password [14:03:50] aelevadoan: I don't see any PHP handling in your WordPress vhost, I think the action in your MW is overwriting the global, it's trying to send PHP requests to /var/www/mediawiki_farm instead of the correct path (/usr/lib/cgi-bin/php5-fcgi) [14:03:55] is there any way to prevent user doing this or to let the "settings" button disappear for these users? [14:04:32] Hans__: maybe you could use groups instead of a single user [14:05:09] Lcawte: what I read in several documentation tutorials is that you can configure php-fpm globally in the conf file [14:05:14] or you could do it in the virtual hosts [14:05:17] for individual sites [14:05:22] i thought it was one or another [14:05:37] Hans__: why do you want to use just one user¡ [14:05:38] ? [14:06:03] aelevadoan: If you thought that, why are you doing both? [14:06:16] I was just trying [14:06:38] but this error appeared before I put those lines in the vhost [14:06:44] So what happens when you comment out lines 10 and 11 of your mediawiki vhost? [14:06:47] well the wiki is not my day job and the users are too many for me to handle the administration [14:07:09] Hans__: why would it be much more work to handle users? [14:08:08] the wiki should be non-public so I deactivated the aelevadoan registration by user [14:08:34] Lcawte: nothing has changed [14:08:42] Is it commented out now? [14:08:51] yes [14:08:52] so i'ld have to register every user by hand [14:09:03] And I assume you've restarted, or at the very least, reloaded apache? [14:09:11] restarted apache2 [14:09:12] yes [14:09:42] Lcawte: and php-fpm [14:10:27] Hans__: maybe this helps https://www.mediawiki.org/wiki/Extension:Restrict_access_by_category_and_group [14:13:04] well thanks but this is not what i am looking for :( [14:13:13] Anyone can help me with Your wiki requires a logged-in account to access the API ? [14:15:16] Lcawte: what did you do to enable php-fpm in your mediawiki? [14:16:26] There's nothing in MediaWiki that causes a problem with FPM, it's all web server config. [14:16:37] ahá [14:16:47] Lcawte: but where do you think I could start solving the problem? [14:20:01] Lcawte: perhaps my virtual host is incorrect? [14:21:01] aelevadoan: Put lines 2 to 5 of your global apache fpm handling into your vhost, try that. I'm still not really sure how your wordpress is working. [14:21:19] Lcawte: but what is not working is my mediawiki [14:22:36] Lcawte: you mean line 2 to 5 of my /etc/apache2/conf-available/php5-fpm.conf ? [14:23:07] I have no idea, lines 2 to 5 of whatever this is http://paste.ubuntu.com/12061828/ [14:23:39] Lcawte: that in my mw vhost?} [14:25:18] Lcawte: when I test the config before restarting, it says that FastCgiExternalServer: cant be defined twice and its already defined in php-fpm.conf [14:28:02] aelevadoan: I found something ... https://www.mediawiki.org/wiki/Extension:RestrictPasswordChange [14:28:13] Hans__: congrats [14:29:05] thanks for your help anyway ;) [14:29:14] bye bye [14:32:46] Lcawte: should I comment out the ExternalServer line in the vhost? [16:54:17] hi eveyrone, just a short question. My partners would like to use Mediawiki in a distributed way. That several wiki instances on different locations of the world using the same data. Our first thought has been to use something like MongoDb as database which could synchronize the data without further effort on its own. As I read in your FAQ you only support relational databases. As we can't afford an Oracle RAC to distrubute the d [16:55:14] btw the different partners reside in different networks, thats the reason for local instances of the wiki. [17:24:49] Oracle. lol [17:43:16] psst, Reedy. [17:43:24] ohai [17:43:24] be glad we haven't passed the Code of Conduct yet. [17:43:29] :P [17:44:58] say what? [17:45:49] Does MW oracle support even work now? [18:23:01] Hey - so I've got a wiki ( http://iiwiki.com/wiki/Sandbox ) that experiences a 504 Gateway Timed Out error whenever a large edit request is submitted. [18:23:16] Which renders the entire wiki offline briefly. [18:24:59] Is your server overloaded? [18:25:15] Else, increase your timeouts :) [18:27:35] it may also depend on how "large" is the edit (large as in complex parser functions, extensions involved, etc) vs the server capacity (memory, CPU...) [18:28:36] If it's that page, it's far from large [18:28:42] Text and a few images [18:29:32] See, that's the thing. I don't think the server is being overloaded. CPU seems to be fine. [18:30:10] And I can't imagine a page of that size to cause memory issues (it's on a 2GB RAM server) [18:30:53] What I think is interesting is that the changes are still saved to the wiki despite the 504. [18:31:08] And it doesn't happen every time. [18:31:17] what webserver? [18:31:24] nginx [18:34:08] Alright, so I was just monitoring with top when I intentionally broke the wiki by editing http://iiwiki.com/wiki/Solm And it may be CPU usage. There were multiple php5-fpm by www-data using 50-40 % of the CPU each. Is that proper for php5-fpm to be using that much? [18:34:43] depends what they're doing :) [18:34:53] unused cpu time is wasted cpu time [18:35:24] Mhm, but in this case, they are lasting for awhile and breaking the wiki :P [18:35:44] mysql seems to be at a constant 28.7% of memory. Perhaps that is the bottleneck? Some internal limit? [18:36:17] no, mysql needs memory to cache queries and data [18:38:09] also, take a look at the job queue https://www.mediawiki.org/wiki/Manual:Job_queue by default it executes one job per request, so in addition of saving the edit, MediaWiki is probably doing more updates [18:40:32] And the php5-fpm tasks are lasting for a long time, 6-9 seconds per request which seems way too long to me. [18:42:58] yes, that's much time, normal timeout is 30 seconds, so more than that for a webserver process can be problematic [18:43:37] try setting $wgJobRunRate = 0; to discard the Job queue as the problem [18:43:57] Will do [18:44:11] It's hard to test though since it doesn't happen every edit. [18:48:22] Hmm seems to be working now [18:50:16] Yeah seems to be good now [18:50:45] so, blame the job queue [18:51:24] you can't leave jobs turned off, though, so if you can, set a cron job to run all pending jobs periodically [18:51:56] (well, you can leave them off but unwanted things will happen like links not updating when creating pages, etc) [18:52:10] Yeah, I set it at once a day at midnight per the Manual on Mediawiki. Is that frequent enough [18:52:11] ? [18:53:03] hmm, I think that section is now outdated, the job queue is now used for a lot more things now [18:53:16] at least for some extensions [18:53:46] I could set jobrunrate to 0.01 instead of 0? [18:53:55] maybe once per hour at least would be desirable, depending on how many edits your wiki has usually [18:54:23] yes, you can... the server will only hang on average once every 100 page loads lol [18:55:06] Haha, I'll just set it once per hour :P [18:55:28] note that jobrunrate is only for jobs executed as a result of a web request. If you set up a cron job, that's controlled by a parameter on the runJobs.php script [18:56:42] it's better to run them from a cron job, that way you free the web server process to serve web requests instead of spending a lot of time running a large job [18:59:54] Alright, I've set jobrunrate to 0 and set a cronjob to execute runJobs.php every hour. [19:03:11] Everything does seem more speedy [19:07:53] hi [19:07:53] I need to know the date of creating user account for each user who edited a page, how do I know this query? [19:09:17] https://en.wikipedia.org/w/api.php?action=query&list=allusers&auprop=registration&aulimit=max [19:11:24] How do I implement Role based user access on Mediawiki? [19:11:42] I am trying to setup a private wiki for my team. I have already achieved AD based authentication to login into the wiki using LDAPAuthentication extension. But now I want to implement some kind of role based access. To be more precise - 1. I have setup 5 different project pages 2. Now I want that only the people who are part of a particular project can access that page 3. Also any subsequent pages placed within this project page [19:13:51] garvjain: https://www.mediawiki.org/wiki/Extension%3aSimpleSecurity BUT look at the big warning banner on top and the "unstable" [19:14:47] you might want to ask yourself, does it _really_ have to be that private? [19:14:56] yes [19:14:59] and if so, you might just want 2 wikis [19:15:08] i do have implemented simplesecurity extension [19:15:14] ah, ok [19:15:37] the limitation is that how to deal with new pages created by users [19:15:55] how to restrict them to a group automatically [19:16:02] i'm afraid that's part of "almost all hacks or patches promising to add them will likely have flaws somewhere [19:16:13] create 5 different wikis? [19:16:57] actually I plan to scale to 150 - that many teams in my org [19:17:33] creating 150 separate wikis would be administrative overhead [19:17:51] maybe https://www.mediawiki.org/wiki/Extension:Simple_Farm [19:18:12] Glaisher: do you mind submitting a patch for my request at https://meta.wikimedia.org/wiki/Planet_Wikimedia#Not_yet_added ? [19:18:34] I don't want to submit a conflict-of-interest patch :) [19:18:37] there's no other way I can think of, unless you use hooks to make new pages to be placed on their corresponding namespace/category based on their role, and also don't allow normal edits to add a namespace/category that doesn't correspond to their role, etc, but that's a hack [19:22:25] vulpix - in that case can I automatically assign custom namespaces to new pages created on Mediawiki? [19:23:58] well, I'm not sure if you can do this, but at least you can prevent users to create pages in the wrong namespace giving an error message. Or well... you can restrict view/edit directly for that namespace without custom hooks [19:25:00] you can use Extension:Createbox to make easy for your users to create pages without needing to specify the namespace manually (you set the target namespace on the tag) [19:31:47] thanks will check it out [19:35:40] I'm running Mediawiki with docker (with a mysql backend). I'm getting DB timeouts the moment I increase the load a tiny bit [19:35:54] I was wondering if other people experienced that and have suggestions to share [20:21:38] when I'm editing a page there is an option for save or show a preview. Is there a way to have a button that does a "save" but keeps it in edit mode? [20:24:43] BLZbubba: https://www.mediawiki.org/wiki/Extension:Checkpoint (I don't know if works with current MediaWiki versions) [20:26:48] nice, I'll give it a try [22:24:02] Hey - I was here earlier about 504 gateway timeoutting wiki on large page edits. Fixed it (apparently) with jobrunrate set to 0. But, now the same thing is happening whenever I try to delete a page. [22:29:04] I am even using the maintenance/deletebatch script to delete one file and it takes an exceedingly long time (but at least it doesn't shut down the rest of the wiki) [23:31:54] join #wikimedia-dev