Last modified: 2011-10-04 20:32:02 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 T33086, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31086 - zh.planet not updating
zh.planet not updating
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://zh.planet.wikimedia.org/
: ops
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-22 03:43 UTC by shi zhao
Modified: 2011-10-04 20:32 UTC (History)
1 user (show)

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


Attachments

Description shi zhao 2011-09-22 03:43:12 UTC
Chinese planet wikimedia ( http://zh.planet.wikimedia.org/ ) can't add new feed.

I'm add 2 blog feed on rev 97598, but zh.planet.wikimedia.org not update.

Why?
Comment 2 Brion Vibber 2011-09-22 22:35:55 UTC
Failing to update usually means either bad format in the config file (looks ok offhand) or one of the feeds is bogus and planet is erroring out before it finishes running.

Need someone to check it manually and see if errors are being output.
Comment 3 Brion Vibber 2011-09-22 22:39:38 UTC
I've filed an internal RT ticket for ops to take a peek: http://rt.wikimedia.org/Ticket/Display.html?id=1557
Comment 4 Brion Vibber 2011-09-23 17:49:10 UTC
Two bad feeds were commented out from the config file in r97885 ... per the zh.planet.wikimedia.org output though it hasn't been run since 2011-9-20 06:17 AM ...
Comment 5 shi zhao 2011-09-25 02:49:14 UTC
(In reply to comment #4)
> Two bad feeds were commented out from the config file in r97885 ... per the
> zh.planet.wikimedia.org output though it hasn't been run since 2011-9-20 06:17
> AM ...

r97885 not accepted....2 bad feeds not removed.
Comment 6 shi zhao 2011-09-27 01:00:48 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Two bad feeds were commented out from the config file in r97885 ... per the
> > zh.planet.wikimedia.org output though it hasn't been run since 2011-9-20 06:17
> > AM ...
> 
> r97885 not accepted....2 bad feeds not removed.

2 bad feeds have remoced in .ini, but still can't update....
Comment 7 shi zhao 2011-09-28 00:33:31 UTC
config.ini can't work.
Comment 8 Brion Vibber 2011-10-04 20:32:02 UTC
Updates from the RT ticket:

Tue Oct 04 19:58:03 2011 Daniel Zahn - Comments added 

/usr/local/planet/planet.py /usr/local/planet/wikimedia/zh/config.ini

Traceback (most recent call last):
  File "/usr/local/planet/planet.py", line 167, in <module>
    main()
  File "/usr/local/planet/planet.py", line 78, in main
    config.read(config_file)
  File "/usr/lib/python2.5/ConfigParser.py", line 267, in read
    self._read(fp, filename)
  File "/usr/lib/python2.5/ConfigParser.py", line 462, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /usr/local/planet/wikimedia/zh/config.ini, line: 1
'\xef\xbb\xbf# Planet configuration file - zh.planet.wikimedia.org\n'


# Tue Oct 04 20:14:08 2011 Daniel Zahn - Comments added

UTF-8 byte order mark (BOM) in the config.ini of zh makes planet think there is no section header?!

'\xef\xbb\xbf# Planet configuration file - zh.planet.wikimedia.org\n'



str_replace("\xef\xbb\xbf", '',?


# Tue Oct 04 20:18:53 2011 Daniel Zahn - Comments added 

Yep, removed the BOM with

sed '1 s/\xEF\xBB\xBF//' < config.ini > config.new

and it updated again.

Well, now at 09-25:   http://zh.planet.wikimedia.org/

(a couple feed sources still fail with : "AttributeError: object has no attribute 'type'" though)
# Tue Oct 04 20:18:53 2011 Daniel Zahn - Status changed from 'open' to 'resolved' 


Thanks Daniel!

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


Navigation
Links