[00:09:35] Hey, I have a question that pertains to slow saving. When I click save it gets stuck for 30 seconds on "LoadBalance ... " please check https://dpaste.de/5qJZ and let me know what you think [00:22:35] Anyone have any ideas? [00:24:30] king_nero: i'd guess that the LoadBalancer stuff is a red herring, and you actually have accidentally misconfigured MediaWiki to use some service (like Memcached) that you don't actually have set up [00:24:47] so it waits for 30 seconds trying to contact it, then gives up and goes on [00:26:06] "[runJobs] Failed to start cron API (socket error 0): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution" this looks like the interesting part [00:27:01] hmm [00:27:54] I don't believe I set up the memcache service [00:28:01] Where would I look to see that? [00:28:09] And, first off, thank you for helping. [00:28:37] ## Shared memory settings | $wgMainCacheType = CACHE_NONE; | $wgMemCachedServers = array(); [00:28:45] That is my LocalSettings [00:29:57] One more thing, is there anyway to circumvent this 30 second contact? [00:30:28] memcached was just an example, it might be something else. i don't really know how to find out what. it's just something i've seen in the past [00:31:19] king_nero: looking at the code around where that warning is generated, it seems that your $wgCanonicalServer is set to something else than where your wiki actually runs [00:31:32] so it can't contact itself [00:31:46] there's supposed to be a 0.1s timeout there though… [00:33:18] ahh [00:33:29] Let me look at the setting [00:34:51] ignorant question --- what if I don't have a $wgCanonicalServer in my LocalSettings? [00:37:20] ## The protocol and server name to use in fully-qualified URLs | $wgServer = "//kb.website.ca"; | $wgCanonicalServer = "https://kb.website.ca"; [00:37:26] i think it defaults to $wgServer [00:39:30] Do you think it could be the SSL handshake? [00:41:16] i honestly have no idea. sorry [00:42:53] So to sum it up, what you believe is that it can't locate itself, so where does it try to go after the 30 seconds? [00:43:20] [runJobs] Failed to start cron API (socket error 0): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution [00:44:21] Is there a way to bypass the loadbalancer? [00:44:25] this is part of the default job runner. i'm not really familiar with the code [00:44:50] i think it tries to contact itself to ask itself to run some jobs, effectively running them asynchronously [00:45:17] when that fails, it runs them synchronously, within the current request [00:45:45] i'm not really sure if this is the cause of the 30 second delay. but it's the only thing i could see in your log :) [00:46:17] Yes, it definately is the 30 second delay, because when I am saving, I refresh the log and its sitting on the LoadBalancer:: part [00:46:42] It always gets stuck on the php_network_getaddress [00:47:21] king_nero: if you have shell access, you could disable the default job runner (which runs some jobs when users view your site) and set up a proper one (in a cronjob or something): https://www.mediawiki.org/wiki/Manual:Job_queue [00:47:52] king_nero: you can also apparently set $wgRunJobsAsync=false; to skip the problematic optomization [00:48:39] So possible doing $wgRunJobsAsync [00:48:47] Ahh yes, nice catch, let me test [00:49:37] that worked [00:49:39] Lol [00:49:49] Is there any fatal side effects of that? [00:51:06] of $wgRunJobsAsync=false? probably not. i guess your site will be a tiny bit slower for your users than if you had set $wgRunJobsAsync=true (and if that worked correctly). [00:51:36] It works very fast, since it is a private wiki that is only internal [00:51:46] Very nice catch MatmaRex :) [00:52:03] I couldn't be more excited haha [00:54:31] :) [10:35:36] ! [10:35:36] Hello, I'm wm-bot. The database for this channel is published at http://wm-bot.wmflabs.org/db/%23mediawiki.htm More about WM-Bot: https://meta.wikimedia.org/wiki/wm-bot [18:19:06] Dereckson [18:20:28] hello [18:20:46] any buddy more expain me about this gsoc project People who tweet an emoji to @NYPLEmoji get a similar image from the collections in response. The code for the project lives here: https://github.com/lolibrarian/NYPL-Emoji-Bot [18:23:27] Hi. [18:23:44] harshcrop: what would you like to know? [18:24:12] basically, it's an automated client who reads twitter mentions [18:24:14] scans the emoji [18:24:28] maps it to some image available on Wikimedia Commons [18:24:37] and replies to the person with the image URL [18:25:42] okay i am making draft proposal for that [18:25:58] "PHP Notice: Uncommitted DB writes (transaction from DatabaseBase::query (LCStoreDB::get)). in [...]" - any ideas on how to fix this? [18:26:21] harshcrop: nice :) [18:26:59] can you give me the details for that [18:27:55] Yes: you can follow https://developers.google.com/open-source/gsoc/resources/manual and https://www.mediawiki.org/wiki/Outreach_programs/Life_of_a_successful_project [18:28:08] let me know if you've a precise question [18:37:32] hello sry some net issue [18:37:55] I fixed the error by running update.php --' [18:37:57] Thanks. [18:38:09] Dereckson : can you guide me that what is goal of project?? [18:41:30] harshcrop: sure, what do you have understood and what areas of the project should I cover? [18:41:55] in a nutshell, the idea is to provide a fun way to promote our Wikimedia Commons media catalogue, all under free licences like CC BY or CC BY SA, or public domain [18:42:07] you send a flower emoji, you get a rose photo [18:42:21] you send a smile emoji, you get someone smiling in reply [18:42:22] etc. [18:43:48] okY.. [18:47:12] can i share the draft link with you on u r mail id [18:47:19] can you help me out in that [18:47:21] ? [19:01:44] harshcrop: sure, dereckson@espace-win.org my mail [19:02:30] ohk [21:06:42] Hey all, I hope this is simple, but how do I get a list of categories to automatically display on Main_Page? [21:15:01] Or maybe it does show categories automatically and I messed up in creating mine? [21:21:08] nelgin: You mean show the categories that Main_Page is categorized as, or show a general list of all categories defined on the wiki? [21:24:46] Show all the categories in the wiki on the main page [21:25:05] Ithink I might have figured it. [21:25:30] But not, I added a page to a category now I can't see that either. I'm obviously doing something stupid :) [21:28:00] If I go to Special:Categories I see the three I created, Linux, Windows, and Misc [21:28:31] So I created a page Linux:Grub2 which I thought I read was how I got my Grub2 article in the Linux category [21:32:04] I need to look at the docs in more detail. I must have screwed something up. And I thought this was going to be quick and easy lol [21:33:37] nelgin: Putting {{special:allpages/Category:}} in a page will list all the categories [21:33:50] nelgin: Some people also really like the CategoryTree extension [21:33:53] !e CategoryTree [21:33:54] https://www.mediawiki.org/wiki/Extension:CategoryTree [21:34:47] nelgin: To add Grub2 to the linux category, put the text [[Category:Linux]] on the page Grub2 [21:35:03] Creating a page named Linux:Grub2 is how you create a page in the Linux namespace [21:35:06] More docs at [21:35:08] !category [21:35:08] http://www.mediawiki.org/wiki/Help:Categories [21:35:12] !namespace [21:35:12] See http://www.mediawiki.org/wiki/Help:Namespaces for user help and documentation, and http://www.mediawiki.org/wiki/Manual:Namespace for administration. For adding namespaces, see !extranamespace [21:38:49] Yes, that's what I did. [21:39:45] Created the Linux:Grub2 page. The main thing, I guess, is how to display the categories on the Main_Page. I thought it wouldn't show if there was no article/page in the category but that doesn't seem to be the case. [21:41:17] The {{special:allpages/Category:}} will generally show things if the a the category has a description page, and it ignores whether or not the category has any members [21:44:43] When I created the category I just went to a page and did [[Category:Linux]] Did I screw up? [21:45:25] I thought I could then go to that category, create a page there and it'd be automatically to the category. [21:45:41] Yes, that's the way it should work [21:46:35] When I go to Category:Linux it shows me Linux and Linux:Grub2 [21:46:47] So I'm sorta confused lol [21:47:15] Ok. So the page named Category:Linux should list any page that has the text [[Category:Linux]] on it [21:48:11] And any page with [[Category:Linux]] on it, should link to the page named Category:Linux near the bottom in the list of categories [21:48:44] Ah [21:49:05] Additionally, you can add a description to the page named Category:Linux. If you do that, it will show up when you add {{Special:AllPages/Category:}} to a page, and it will make the link to the page named Category:Linux be blue instead of red [21:51:43] So if I add {{Special:AllPages/Category:}} to Main_Page [21:52:08] It should show all my categories? [21:52:20] It will show all the categories that have descriptions [21:53:47] Ok, now I get it. [21:55:52] They don't make it easy, do then :) But I have it working now. Thanks bawolff. [21:56:22] Yeah, unfortunately, the page Special:Categories is not allowed to be included in other pages for some reason [21:56:42] Most wikis end up getting big enough that they have too many categories to put them all on a page [21:58:08] Mine is for personal use. Al that stuff I don't use often but it's always useful to have handy. It's easier than just keeping notes and allows me to searhc. [21:58:10] search [21:58:48] Bigger wikis like using the categorytree extension - for example the thing on the right with dropdown arrows at https://commons.wikimedia.org/wiki/Indonesia#Kota_.26_Daerah_.7C_Cities_.26_Regions [21:59:38] Yes, I saw that while I was looking for help before coming here. A bit overkill for what I need. I'm only going to have less than a dozen categories. [22:00:22] nelgin: You can link to special:Categories by putting the text [[Special:Categories]] on a page - that page will list all categories included one's without a description (but you can only link, you can't include) [22:01:19] Useful to know but I probably won't need it. As long as I get the categories on the main page, I'm fine, and I'm not likely to create a new one without the need for an article to go with it. [22:01:32] So, I think I'm all set.