Last modified: 2011-12-07 15:00:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34798, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32798 - de.planet stuck
de.planet stuck
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Daniel Zahn
http://de.planet.wikimedia.org/
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-04 20:25 UTC by Raimond Spekking
Modified: 2011-12-07 15:00 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Raimond Spekking 2011-12-04 20:25:08 UTC
de.planet stucks since 2011-11-25. I disabled a blog which is now a redirect  with r105111 but it seems not to help :-(

I miss entries from at least from http://blog.wikimedia.de/ and http://www.iberty.net/
Comment 1 Brion Vibber 2011-12-04 23:32:28 UTC
Somebody needs to log in and poke it to check its update logs / output; may need caches cleared, or just fixing of another blog that's funky for some reason.
Comment 2 Mark A. Hershberger 2011-12-05 19:08:52 UTC
User:Mutante looked at this and found the following:
https://meta.wikimedia.org/wiki/Planet_Wikimedia#Requests_for_Update_.28or_Removal.29
Comment 3 Brion Vibber 2011-12-05 19:20:37 UTC
Are any of those in the de planet config.ini file? They seem to be mostly from the french or english.
Comment 4 Brion Vibber 2011-12-05 19:25:36 UTC
Nope, none of them are in there.
Comment 5 Brion Vibber 2011-12-05 19:52:32 UTC
Mutante did some more direct poking and we confirmed the de_DE.UTF-8 locale seems to be missing. Commenting out the locale line in the config.ini gets it running temporarily.

Final fix per mark bergsma should be to make sure the locale is selected and run 'dkpg-reconfigure locales' or such.
Comment 6 Brion Vibber 2011-12-05 19:53:03 UTC
Assigning to Mutante.
Comment 7 Brion Vibber 2011-12-05 21:28:13 UTC
We're having trouble getting it to recognize the locale still.

I'm temporarily removing the locale setting in r105228; that should clear it up for now.
Comment 8 Daniel Zahn 2011-12-06 10:56:09 UTC
Fixed by adding "de_DE.UTF-8 UTF-8" to /var/lib/locales/supported.d/local and running dpkg-reconfigure locales...

  de_DE.UTF-8... done

update now works again when having the locales setting enabled, just had a slightly wrong format before, was just "de_DE UTF-8"

Enabled locale setting in config.ini for "de" planet on the server again (but not in svn yet)
Comment 9 Daniel Zahn 2011-12-06 11:01:48 UTC
as a note: even though this works again, while looking at this i found there may still be room for improvement in the way planet tries to set the locale in the first place.. the code is:

---
 if config.has_option("Planet", "locale"):
        # The user can specify more than one locale (separated by ":") as
        # fallbacks.
        locale_ok = False
        for user_locale in config.get("Planet", "locale").split(':'):
            user_locale = user_locale.strip()
            try:
                locale.setlocale(locale.LC_ALL, user_locale)
            except locale.Error:
                pass
            else:
                locale_ok = True
                break
        if not locale_ok:
            print >>sys.stderr, "Unsupported locale setting."
            sys.exit(1)

---

But people say:

"You should not pass an explicit locale to setlocale, it is wrong. Let it find out from the environment. You have to pass it an empty string"

http://stackoverflow.com/questions/955986/what-is-the-correct-way-to-set-pythons-locale

and problems in general with this not working cross-platform

"correct locale name has different names on different installations of python."

http://permalink.gmane.org/gmane.comp.web.planet.devel/889

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links