[00:17:11] 1.39 is branched, not tagged [09:21:29] Hi, I have mediawiki running on 1.37 and notice that instantcommons suddenly stopped working. It was working fine till last night but then suddenly stopped showing images. [09:23:54] So can someone please help how I can identify the issue? [09:24:06] I had file cache enabled but I have now disabled it. [09:30:59] Anyone know if this is normal with instantcommons? [09:33:35] It sounds odd, [09:36:27] Yeah because it was working fine and suddenly stopped showing images instead it's showing red link [09:36:45] and when I click on the link it's taking me to local upload page. [09:37:15] !debug [09:37:15] For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms [09:39:28] Sure, I'll try to debug and head back if nothing works. [09:39:33] Thank you [09:39:56] It's definitely odd that it just stopped working though [10:19:57] We have articles for LibreOffice Calc functions in our wiki and per requests from translators, I would like to spare them some tedious work by automatically swapping function names with their translations. [10:20:09] Here's a nice object I have created for now: https://paste.simplylinux.ch/view/7d310bfd [10:21:34] It would be possible to wrap all the function name instances in and target them with a widget using JS, but I wonder if it would be possible to avoid using JS? Ie. could I define an array in the widget itself and process with Smarty syntax? [10:21:43] other ideas welcome :) [10:24:53] I mean then each function name instance would be wrapped in {{#widget:... [10:26:54] so either one {{#widget: call and spans or multiple {{#widget: calls [12:53:47] Hi, I earlier contacted in regard to InstantCommons and as per suggestion I tried to debug but could not find anything related to images. Then I tried to remove instantCommons and used $wgForeignFileRepos but that's also not showing images. [12:54:11] When I enable $wgForeignFileRepos it's just showing blue link instead of the image. [12:57:54] So any idea why instantcommons suddenly stopped working and $wgForeignFileRepos not showing images either. [13:06:23] Anyone? [13:07:28] I have $wgUseInstantCommons = true; and $wgUseFileCache = true; in my LocalSettings.php [13:18:45] I also notice that my SSL certificate expired long back so is it possible to be the main cause why both the options not working? [13:26:58] is there anything in server logs? [13:33:04] andre no I looked at server logs and there is nothing related to images. [13:35:58] And there are many log files so can you please tell which particular log file do I need to check? [15:06:31] I guess a Scribunto/Lua module would be one way to achieve the translated function names idea [16:13:02] Hi, can someone please help? I installed $wgForeignFileRepos but it's not showing images. It only showing the file name in blue and when I click on the file name it's taking me to the Special:Upload and showing "No file by this name exists." message. [16:15:20] Can you put the settings you use in a pastebin? [16:17:44] @bawolf please check https://pastebin.com/XEVYUmx5 [16:18:22] bawolff Sorry I misspelled your username. [16:19:42] At a glance i dont see anything wrong with that [16:20:07] You dont have any firewalls setup preventing network communication with commons [16:20:09] ? [16:20:33] If you enable mediawiki debug logging, it could have errors related to it [16:20:55] Actually I was using InstantCommon and it was working perfectly fine until last night  but suddenly this morning it stopped working. [16:21:27] I have to check with my server provider if they have firewall setup. [16:21:40] How I can enable mediawiki debug logging? [16:22:46] https://www.mediawiki.org/wiki/Manual:How_to_debug#Setting_up_a_debug_log_file [16:23:16] Thank you [16:25:59] Also, just to plug my own thing, i made an extension called QuickInstantCommons you might be interested in once you get your issue fixed [16:27:52] I looked at this extension this morning and liked it but the only thing stopped me to use it was Extension:TimedMediaHandler which I'm using on 1.37.2 and the known issue reads: "If you are using Extension:TimedMediaHandler, you need to use at least MediaWiki 1.38 for this extension to work with video files." [16:28:16] Can I use this extension for non video files? [16:31:49] Ah right. Its pretty all or nothing [16:32:01] Hmmm [16:32:36] I created the log file but it's not yet updated with any error. [16:33:29] Try making an edit including an image from commons you havent used before [16:34:33] Ok [16:37:59] I tried but nothing happened. The image is not showing instead it's showing a blue link and nothing hit the log. [16:38:58] The folder and log file has 755 permission. [16:40:20] The Firewall Status is Enabled and Running [16:50:26] Guest87: maybe change the log file to 666, your webserver might be running as a different user than you [16:59:52] Ok that worked and the file was updated with around 40,070,272 with a lot of details what should I look for in this file? [17:00:42] Try grepping for keywords like commons, filerepo, http [17:03:45] https://pastebin.com/u2d8rPX4 [17:03:45] This is what I found for the image I was trying to use in my userpage. [17:07:30] Hmm. That looks like the tests to see if the file is local [17:08:01] Im sorry im not near a computer where i can check what instant commons normally creates for logs [17:08:37] There definitely should be some other stuff, probably near the same area of the log [17:08:55] Maybe also try grepping for the filename in question [17:11:16] I have disabled instant commons and this logs created by wgForeignFileRepos [17:12:20] I also get Start request GET /api.php?.... for another file I was trying to use. [17:17:25] bawolff  me it sounds like some other issue because I have 3 mediawiki sites and instant common suddenly stopped on all sites so maybe some issue with the server? [17:17:44] I think its likely some server issue [17:18:05] Do those start request have a request completed shortly after or any errors [17:18:30] Most likely i think a server firewall issue, if not that maybe an issue with tls certificates [17:20:03] The thing is that I'm using cloudflare and due to that the expiry date for certificates showing in December but but when I go to my cpanel and look at the certificate there it's showing already expired. [17:21:08] I mean tls certificates for php - if the curl root cert store is really really out of date, it might think wikimedia commons has an invalid cert [17:23:52] Oh ok I haven't looked at that. I thought it's about the SSL certificate silly me. [17:27:07] Its probably unlikely, it would have to be very old to be an issue [17:28:34] I also dont think commons has changed certificates recently [17:28:51] I guess it's better to wait for a day or two to see if the issue continue because it was working fine and suddenly stopped so something crazy going on with the server. [17:30:13] If you have commandline access, you can try using curl just to see if it has network connectivity from the server [17:32:44] I have full access to the commandline so do I just need to run curl or something else with it? [17:34:18] Something like [17:35:00] curl 'https://commons.wikimedia.org/w/api.php?action=query&format=json' [17:35:21] It would at least test server connectivity and system level firewall [17:35:49] But there is lots of things it wouldnt test, like if the webserver is subject to selinux or something [17:37:19] I just run the above command you mentioned and it's keep loading. [17:37:58] If it doesnt return a result, that does suggest firewall of some sort blocking the connection [17:38:47] Here you go curl: (7) Failed to connect to commons.wikimedia.org port 443: Connection timed out [17:45:23] Any idea what should I look for in firewall or is there a list of Wikimedia IPs that I can whitelist? [17:47:37] Yeah that sounds like a firewall [17:48:02] I dont know what commons ips are. It depends on your geographic location [17:49:28] Alright, I'll try to find their IPs and will add them in the whitelist. [17:51:18] One last question, before I update to 1.38 and use your extension, which one is fast instant commons or wgForeignRepos? [17:51:41] InstantCommons should be faster for most usecases [17:51:55] Err, sorry i mean quickinstantcommons [17:52:36] WgUseInstantCommons (the original instant commons) just uses wgForeignFileRepos behind the scenes [17:55:03] Ahh got it so better to upgrade and use quickinstantcommons. [17:55:16] Will WgUseInstantCommons be there in 1.39? [17:56:22] https://wikitech.wikimedia.org/wiki/IP_and_AS_allocations Will this list of IPs work in Fireball's whitelist? [17:56:46] Eytirth2: yes. It is not going away [17:57:23] Tysm [17:57:44] Guest87: probably. Its always possible those may change in future [17:57:53] I rely on it for some images in a template... maybe I could snazz suff up with an icon or two from commons [17:59:34] Got it. Thank you so much for your time and energy. Stay blessed.