Tech:Troubleshooting: Difference between revisions

From Orain Meta
Jump to navigation Jump to search
Content added Content deleted
(→‎Server/nginx dies or is unresponsive: or service nginx restart?)
(→‎Unknown database errors everywhere: uncommented with relevant fixes)
Line 16: Line 16:
# If this is incorrect and for example the list is HTML then replace the list with the following "metawiki|Orain Meta|"
# If this is incorrect and for example the list is HTML then replace the list with the following "metawiki|Orain Meta|"
# Once this is saved all wikis should be back once the db_list update script is run (which is on a 1 min cron)
# Once this is saved all wikis should be back once the db_list update script is run (which is on a 1 min cron)
; metawiki
<!-- awaiting comments of sysadmins - probably this text should be cleaned up
# With [https://github.com/Orain/ansible-playbook/commit/ec2f525e04863c2a5285991705e6d3487e709993#diff-9f957f2d0351d97a8e2903c3b8d159c5 this commit], metawiki will be online in the case of an incorrect dblist (and if the get_db_list.py script fails). If the get_db_list.py script fails due to any reason, be sure to temp disable the cronjob for get_db_list.py, copy-paste the dblist from [[:m:Database_list|meta]], remove the pre-tags and save the file.
# With [https://github.com/Orain/ansible-playbook/commit/ec2f525e04863c2a5285991705e6d3487e709993#diff-9f957f2d0351d97a8e2903c3b8d159c5 this commit], metawiki will always online in the event of the dblist becoming corrupted.
-->


===Ansible Playbook doesn't appear to be updating===
===Ansible Playbook doesn't appear to be updating===

Revision as of 16:39, 24 August 2014

UPDATE THE SAL WITH WHAT YOU DO!

This is a cached copy of the requested page, and may not be up to date (in red)

  1. Try running 'rebuildFileCache.php' over the wiki
  2. If you get the message saying the wiki does not exist see Renaming a database
  3. If the issue persists, fix it!

Mediawiki Magic Word Exceptions

This probably means that the Localisation cache has not updated or someone has enabled an extension on a wiki without it being enabled on extload.

  1. Make sure the extension is included on extloadwiki
  2. If the issue persists run 'rebuildLocalisationCache.php --wiki extloadwiki'
  3. If the issue persists check /var/log/mediawiki/exception.log and fix it!

Unknown database errors everywhere

  1. Check the dblist located at "/usr/share/nginx/.orain.org/w/all.dblist" looks correct (this should be a list of database|sitename|wikitags)
  2. If this is incorrect and for example the list is HTML then replace the list with the following "metawiki|Orain Meta|"
  3. Once this is saved all wikis should be back once the db_list update script is run (which is on a 1 min cron)
metawiki
  1. With this commit, metawiki will always online in the event of the dblist becoming corrupted.

Ansible Playbook doesn't appear to be updating

  1. Is the cronjob for root still there?
  2. Check /var/log/ansible-pull.log for errors
  3. Fix them (best bet is probably reverting the changes on github that broke it!)

You changed stuff, stuff broke, you dont know why

  1. If it was an extension have you read the documentation and done everything required (update.php, dependancies)
  2. Have you done everything documented currently at our readme
  3. Try manually flushing the APC cache see here
  4. Revert your change! or cry and scream until someone else fixes it

Server/nginx dies or is unresponsive

When this happened the web server seemed to totally inaccessible. Hitting any page would not even show / throw a MW exception, nothing would appear in the nginx, mediawiki or syslogs...

  1. service nginx stop
  2. service nginx start
  3. rebuild i18n if it works - if not, looks as the nginx error.log or syslogs.