Planet.wikimedia.org

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(If Planet stops updating)
Line 49: Line 49:
  
 
To fix the issue, simply remove the cached data located in /usr/local/planet/wikimedia/LANG/cache/BLOG_NAME and run the process again.
 
To fix the issue, simply remove the cached data located in /usr/local/planet/wikimedia/LANG/cache/BLOG_NAME and run the process again.
 +
 +
NOTE: Make sure to run the above mentioned scripts as user planet, or the file permissions in the cache will be switched to root, causing all kinds of issues when updating.
  
 
[[Category:Services]]
 
[[Category:Services]]

Revision as of 17:43, 2 September 2009

Blog aggregator of planet.*.org fame; http://planetplanet.org for the software

Contents

Installation

On bart currently, installed from a nightly snapshot of planet 2.0.

Runs on http://planet.wikimedia.org/ CNAME

Policy

Not 100% determined who will manage. Brion and Erik probably involved to some degree.

Config

Config file and theme is in svn:

Can be svn up'd on bart in /usr/local/planet/wikimedia. Hourly cronjob will update the live copy.

How to set up a language subdomain

  • Add directory & configuration file in SVN tools/planet if not yet present
  • Add language to the updater script on bart (~planet/update-wikimedia)
    • wait for hourly cronjob to update or run it manually as user 'planet'
  • Add CNAME for lang.planet.wikimedia.org to wikimedia.org DNS
  • Add entry to Apache 2.2 config on bart (planet.conf)
    • Apache 2.2 files are in /usr/local/apache22 for now...
  • Restart Apache 2.2 on bart

How to recover in a hurry


If Planet stops updating

It happens that the updating process will stop and cause the feeds not to be updated anymore.

It seems like the cache can get corrupted and lead the python script in charge of updating the feeds to crash and prevent the update from happening (as well as creating threads on the server that fail to properly close).

In order to see the problem, you will have to manually run /bin/sh /usr/local/planet/update-wikimedia or python /usr/local/planet/planet.py /usr/local/planet/wikimedia/LANG/config.ini if you know which LANG is not updating. If there is a problem, you should see a stack trace, with the last line ressembling something like

To fix the issue, simply remove the cached data located in /usr/local/planet/wikimedia/LANG/cache/BLOG_NAME and run the process again.

NOTE: Make sure to run the above mentioned scripts as user planet, or the file permissions in the cache will be switched to root, causing all kinds of issues when updating.

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox