[14:00:20] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @Thiemo_WMDE & @chiborg - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [14:50:12] Technical Advice IRC meeting starting in 10 minutes in channel #wikimedia-tech, hosts: @Thiemo_WMDE & @chiborg - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:04:40] I can't think of any technical questions today. Somehow, I'm able to catch these tech advice IRC sessions when I take my wife's car in for service. [15:05:28] I've got a question... [15:06:58] I've got a small mediawiki setup for internal staff use. I've been having sporadic 500 Internal Server errors. Generally they happen on first access in "a while" ...so a refresh seems to fix the issue, and it's fine as long as you keep using it, but leave revisit a few hours later and boom 500 again. [15:07:31] Wonder if it's related to something like the opcode cache expiring, and any subsequent views take a bit long [15:07:36] Should have some error logs for it though [15:08:37] I have looked at the logs, and asked on stackexchange yesterday: https://webmasters.stackexchange.com/questions/118747/500-error-from-mediawiki-for-first-request-after-an-idle-period-premature-end-o [15:16:31] Or areyou talking about wikimedia specific error logs? [15:31:18] Yanni: The logs you posted are from the webserver. To properly debug the root cause, you'd also need to look at the php-fpm log (to see if the php-fpm daemon had trouble) and the PPH error log (to see if the wiki encountered an error that made it stop). [15:37:33] I do currently have $wgDebugToolbar=true; turned on in the wiki... but I'm guessing the php-fpm log and PPH log are something different?! [15:41:05] Yes, they are files on your server, that php-fpm writes to. The location depends on your environement (which OS, which PHP package used, etc). If you have shell access, I could help you find them. [15:42:48] I think I can enable it... just a moment [15:45:59] yep! [15:47:00] Yanni Do you know which linux version you have (Ubuntu/RedHat/)? [15:47:45] or meybe it's even simpler, let's have a look what 'ls -al /var/log/php*' gives back ... [15:50:39] I've run PHP info... let me see [15:51:23] Linux matthew-thornton 4.14.67-grsec-grsec+ #4 SMP [15:51:34] (matthew-thornton is the name of the machine) [15:54:28] Ubuntu 14.04.5 LTS according to lsb_release [15:56:44] Do you use the PHP version that comes with the distro (probably 5.6) or is it a newer one? It does not matter that much, let's see what 'ls -al /var/log/php*' says. [15:57:12] No such file or direc... [15:57:22] Php 5 [15:57:30] *5.5 [15:58:44] currently running 7.2 CGI, but have tried 7.1 and 7.0 with CGI and FastCGI on all 3 versions... 5.6 is not compatible with latest version of mediawiki [16:01:00] Ok, let's start with the PHP log first. The easiest way to see where it is, is to run a file with phpinfo doesn't list the location, I can see from ftp though [16:02:49] also 'ls' gives logs and php.log as directories [16:03:18] php.log sounds promising ... [16:03:58] though weirdly, in shell it claims php.log isn't a directory [16:04:28] yeah, it's probably a file. [16:04:59] more php.log doesn't do anything :/ [16:06:09] how big is it? If it's more than 0 bytes more (or less) should show something.