[00:39:49] any mediawiki.org admin around? you may want to block https://www.mediawiki.org/wiki/Special:Contributions/98.114.205.63 from posting nonsense on flow pages [01:18:26] Vulpix: you're not an admin? [01:19:42] no [01:28:34] Vulpix: oops. [01:28:53] Oh. [01:28:55] I went to do it. [01:29:00] Legoktm beat me. [01:29:14] I submitted the form and everything. Drat. [01:29:31] #winning [01:29:45] :) [01:42:09] legoktm: thanks for the sysop right, I didn't requested it because I usually don't need it [12:43:54] Hello and Thanks Thanks for the great software [12:44:05] and associated series of encyclopediae [12:44:40] I'm upgrading a couple of MediaWikis.. anything particular I should know.. Going with these instructions https://www.mediawiki.org/wiki/Manual:Upgrading [12:45:54] running backups now [12:46:06] I grab mysqldump and /var/www/... [13:09:35] Okays.. http://globba12.si/wiki/Special:Version says 1.28-alpha [13:09:56] also the something wrong that the stylesheets aren't loading properly [13:10:17] should I 'git pull' in the extensions dir? [13:10:23] I probably should.. [13:12:52] ApprovedRevs Extensions: I want unapproved and new sites to be listed in the categories they have been tagged [13:13:08] I create a page in Category people then it should be listed there [13:13:09] how to? [13:13:23] it seemed to work but now it doesnt [13:13:44] I wonder what's gone wrong that the CSS doesn't seem to be there [13:14:10] the wiki renders otherwise ok but the skins don't seem to be working [13:15:11] @jubo2 check file and folderpermissions [13:15:16] *folder permissions [13:15:54] chmod 755 * && chmod 644 *.* [13:20:04] I gave them 'sudo chown -R www-data:www-data skins/' ... lets see if it works now.. [13:20:23] nope [13:24:01] It is very close to working.. just some small thing somewhere wrong [13:24:25] I upgraded from 1.25.something [13:24:32] any ideas what is wrong [13:29:00] I'm reading the relevant part of https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms [13:29:10] Maybe set $wgServer ..? [13:29:19] try that yes [13:31:11] $wgServer is already set [13:31:40] I have a hunch that this may be something to do with mod_rewrite [13:32:12] I wrote the rewriting rules years ago because none of the versions floating around the Internets seemed to work back then [13:32:27] or a missing .htaccess [13:32:31] * jubo2 goes to check [13:32:39] yes check them :) [13:32:48] then again I am the only sudoer so why would I use .htaccess [13:32:51] I am sure mediawiki cant reach the files [13:33:03] sure.. sure.. [13:33:18] but with apache I cant help you... I am nginx user [13:33:58] I use both [13:34:04] on different servs naturally [13:34:17] I have only Vector and MonoBook [13:34:28] but they loaded just fine in the 1.25 [13:34:34] hmmz.. [13:35:27] I wonder if it is expecting some other skin besides Vector or MonoBook [13:35:33] and that's why the styles are not there [13:38:53] jubo2: hi, can I help you? [13:40:08] I am hoping you could.. I trying to get this 1.25 -> 1.28 upgrade to work. http://globba12.si/wiki/Special:Version is the domain [13:40:35] aha, I see it's lacking styling [13:40:37] SPF|Cloud: I have chowned the skins to www-data:www-data so I don't understand why they don't seem to be loading [13:40:51] I'll look [13:40:56] Thanks [13:41:01] * jubo2 gets more generic cola [13:41:33] Do you know what MWExceptions are? [13:42:19] no [13:42:33] except that they are probably exceptions [13:42:41] I get this error: [8354c323f850bfdfd8344ae3] 2016-07-02 13:41:04: Fatal exception of type "Less_Exception_Chunk" Problematic modules: {"skins.vector.styles":"error"} [13:43:01] did you upgrade the vendor directory as well? [13:43:11] I git cloned into it [13:43:44] so the vendor directory is the latest version https://github.com/wikimedia/mediawiki-vendor? [13:43:48] didn't have a vendor in the 1.25 [13:44:03] That's required since 1.25 [13:44:05] SPF|Cloud: I took the main branch, so yes I assume [13:44:11] aha [13:44:18] problem? [13:44:30] is it a vps with root access or shared hosting? [13:44:55] I am the only user and only sudoer [13:45:06] less head->wall action that way [13:45:29] Can you set: $wgDebugLogGroups['exception'] = '/tmp/mwexception.log'; [13:45:32] In LocalSettings.php [13:45:33] There is a new price leader in the VPS scene [13:45:45] SPF|Cloud: sure thing [13:45:55] I open another ssh so I can 'tail -f' it [13:47:10] I notice http://globba12.si/w/load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cmediawiki.special.version%7Cskins.vector.styles&only=styles&skin=vector throws an exception, so there is definitely something wrong [13:49:03] Also, could you ensure that the directory specified in $wgCacheDirectory (default is the 'cache' directory in the root of your MediaWiki installation) is writable? Making www-data the owner, or giving it a chmod 777 -R cache should help [13:53:55] Sorry.. Konversation froze on me [13:54:22] SPF|Cloud: last I checked now the wiki won't load at all [13:54:32] I open the ssh sessions [13:54:47] I see, HTTP 500 [13:54:55] are you sure you didn't break LocalSettings.php syntax? [13:55:12] Do you use a stock Apache installation with mod_php? [13:57:25] I broke it [13:57:39] accidentally wrote a '@' where an '$' should be [13:57:42] I fix it now [13:58:19] fixed [13:58:28] now the site is back up but no stylesheets [13:58:38] and /tmp/mwexception.log is empty [13:58:50] maybe I should www-data it [13:58:52] can you check one more time again now? [13:59:01] yep, or chmod 777 it [13:59:51] yep [14:00:07] I chowned it to www-data and now I'm seeing a bunch of stuff there [14:00:11] pastebin it? [14:00:12] okay [14:00:27] feel free to do that in PM [14:00:43] stacktraces might contain private information, I'm not sure if yours contains private info too [14:00:52] good to know [14:01:39] The trace is probably useless [14:01:46] this is the main error point [14:01:47] 2016-07-02 14:01:04 vps253-69.vps.kotisivut.com globba12si: [ddffe777a76941ed763f1742] /w/load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector Less_Exception_Chunk from line 545 of /var/www/globba12.si/www/w/vendor/oyejorge/less.php/lib/Less/Parser.php: ParseError: Unexpected input in watchstar.less on line 1, column 0 [14:02:43] I do not know what this means [14:04:29] they're not useless [14:04:39] Are there things like "#0 /some/file/here.php $this->doThis(string) #1 /another/file/here.php $do->stuff(integer)" (actual content might be different) in there? [14:06:01] anyway, I searched the error you got, and noticed https://phabricator.wikimedia.org/T113277 [14:07:04] Are you sure that the Vector skin in /var/www/globba12.si/www/w/skins is the latest version? [14:07:15] SPF|Cloud: good point [14:07:36] It is a copy of the what the MW1.25 was using [14:07:43] yeah, you need to update it [14:07:52] Should I move them away and git clone into fresh? [14:07:58] you can do that [14:08:06] or try: git checkout master && git pull origin master [14:08:14] in which directory? [14:08:27] The root directory of your vector skin [14:08:48] I don't think the old skinds are pulled with git [14:08:55] they just came with the .tar.gz [14:08:55] If you list all directories in /var/www/globba12.si/www/w/skins, then you'll see which one it is. It is either /var/www/globba12.si/www/w/skins/Vector or /var/www/globba12.si/www/w/skins/vector [14:09:04] oh [14:09:27] anyway, could you remove all skins in /var/www/globba12.si/www/w/skins and then download the latest version of all skins? [14:09:31] So I move the old ones outta the way so git doesn't get confused and/or worried [14:09:35] SPF|Cloud: Sure thing [14:09:38] please do that [14:13:58] 'git clone https://gerrit.wikimedia.org/r/p/mediawiki/skins.git' ? [14:14:37] yep [14:14:40] now in place [14:14:52] I reload the Special:Version and hope for the best [14:15:34] I get blank page [14:15:37] *sigh* [14:16:34] tail -2 /var/log/apache2/error.log [14:16:39] okays [14:16:42] (please do not post the public IPs!) [14:16:58] what does the '-2' switch do? [14:17:14] tail -2 means that you want the last two lines of the file you specified [14:17:38] tail -50 would retrieve the last 50 lines, tail -4 the last 4 lines, etc [14:17:51] SPF|Cloud: Would anyone want me to pastebin /etc/letsencrypt/live/domain.tld/secretkey.pem ..? [14:17:58] ahaha.. just kidding of course [14:18:09] heh, no\ [14:18:26] anyway, please remove the client IPs, be nice and don't post them here [14:18:43] unless it is my IP [14:19:17] It says [14:19:19] fatal: Out of memory? mmap failed: Cannot allocate memory [14:19:28] I top to see the swap situation [14:19:54] 105 days uptime [14:20:00] and almost all memory has been eaten [14:20:19] Should prlly reboot it [14:21:02] A default Apache installation is a memory hog [14:21:19] yep.. that is why I use Nginx on the other server [14:21:39] if you tune Apache it will use way less :) [14:21:47] also: the Nginx conffing syntax gives your server better feng shui [14:22:07] and better feng shui server means less suffering for admin [14:22:16] I reboot the box [14:23:11] What is the command to order a reboot from shell [14:23:32] 'sudo shutdown -r NOW' or something like that [14:23:42] yes [14:23:45] okays [14:25:19] umm.. [14:25:38] the 'shutdown' command doesn't seem to be accepting the switches it is suggesting [14:25:51] should work with 'sudo shutdown -r -t now' [14:25:58] but it complains that I am doing it wrong [14:26:15] -t doesn't do anything [14:26:23] I guess NOW needs to be now [14:26:28] Maybe I conjure up the virtual console button [14:26:37] via my hosting guys [14:26:58] that is very useful when you manage to set IPTABLES rules that kill your ssh right after issuing the command [14:27:31] ok got it now [14:27:45] 'sudo shutdown -r now' worked [14:29:55] still getting the blank page [14:30:04] but now there is free RAM [14:30:27] SPF|Cloud: btw. must mention that I have error.log files per domain [14:30:41] oh, okay [14:30:42] so I should maybe be looking at /var/log/sites [14:30:53] well please pick the Apache error log file for your wiki [14:31:55] This is probably the problem: [14:31:57] PHP Fatal error: Uncaught exception 'Exception' with message '/var/www/globba12.si/www/w/skins/MonoBook/skin.json does not exist!' [14:32:22] It is [14:32:32] how to fix it? [14:33:16] oh yeah.. [14:33:30] add the latest version of the MonoBook skin [14:33:37] the clone into the skins just made empty directories [14:33:41] or remove the wfLoadSkin( 'MonoBook' ); [14:33:49] How do I fetch all the skins at once ? [14:34:08] Can you go to your skins directory? [14:34:11] yes [14:34:29] Which skins do you have there? vector only? [14:34:38] I have them all [14:34:43] but only the directories [14:34:47] no contents at all [14:34:56] I'm not like 100% proficient with git [14:35:05] Go into the root directory of mediawiki (so one level outside the skins directory) [14:35:13] ok [14:35:17] then? [14:35:33] 1 minute please [14:36:09] Sure thing [14:36:14] Okay, go into the root [14:36:20] root of what? [14:36:24] of mediawiki [14:36:27] Remove the skins directory [14:36:31] ok [14:36:36] rm -rf skins [14:36:45] done [14:36:55] Then some git candy please [14:36:57] And then: git clone --recursive https://github.com/wikimedia/mediawiki-skins skins [14:37:36] wait until it finishes [14:37:43] running. [14:38:16] Damn this git is a fine piece of software by Linus The Man [14:38:30] CVS was horrible crap [14:38:54] ok.. it finished [14:39:02] * jubo2 reloads wiki page [14:39:25] It work! [14:39:34] SPF|Cloud: Thank you very much [14:39:52] Now I go to upgrade http://develop.consumerium.org/wiki/ [14:39:54] jubo2: good to hear [15:22:30] Okays.. [15:22:38] Wrote a blog post on how this went http://byjuho.fi/en/2016/07/02/upgrading-mediawiki/ [15:22:54] it is good to document for self [15:23:08] it is even better to write it so well that someone else may benefit from it [15:26:42] * jubo2 gulps an organic, unfiltered lager [19:29:43] Anyone familiar with regular expressions? [19:30:26] !ask [19:30:26] Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [19:32:38] I want to create a regular expression that includes '@' and '+' sign along with alphanumeric characters. [19:33:40] what sort of thing are you trying to match? [19:36:14] and she (?) left...