Menu

#616 Crash from "article file missing" error

2.1 beta
closed-fixed
nobody
None
5
2002-12-13
2002-12-04
Greg Ward
No

If I playfully delete the HTML version of a message and then re-run bin/arch, it crashes:

$ rm -f archives/private/mems-talk/2001-July/005007.html

$ /bin/arch mems-talk
#00000 <E15QYR8-0006UV-00@ute.cnri.reston.va.us>
figuring article archives
2001-July
Updating index files for archive [2001-July]
Date
Subject
Author
Thread
Computing threaded index
Updating HTML for article 8891
Updating HTML for article 8899
Updating HTML for article 8900
Updating HTML for article 8901
Updating HTML for article 8902
Updating HTML for article 8903
Updating HTML for article 8904
Updating HTML for article 5007
Traceback (most recent call last):
File "./bin/arch", line 186, in ?
main()
File "./bin/arch", line 176, in main
archiver.close()
File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 303, in close
self.update_dirty_archives()
File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 517, in update_dirty_archives
self.update_archive(i)
File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 1072, in update_archive
self.__super_update_archive(archive)
File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 425, in update_archive
self._update_thread_index(archive, arcdir)
File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 479, in _update_thread_index
self.update_article(arcdir, article, a1, a3)
File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 1238, in update_article
self.message(_("article file %s is missing!")
TypeError: format requires a mapping

To my embarassment, I can't make this simple %s work at all! Must be some funky I18N thing. If I remove the _() from the format string, it works.

Discussion

  • Greg Ward

    Greg Ward - 2002-12-04
    • milestone: --> 2.1 beta
    • summary: Crash from "article file missing" error --> Crash from "article file missing" error
     
  • Barry Warsaw

    Barry Warsaw - 2002-12-05
    • summary: Crash from "article file missing" error --> Crash from "article file missing" error
     
  • Barry Warsaw

    Barry Warsaw - 2002-12-05

    Logged In: YES
    user_id=12800

    It's an i18n thing. Strings wrapped in _() can't have bare
    %s's, they have to be %(name)s substitutions.

     
  • Barry Warsaw

    Barry Warsaw - 2002-12-05
    • summary: Crash from "article file missing" error --> Crash from "article file missing" error
    • status: open --> closed-fixed
     
  • Patrick Finnerty

    Logged In: YES
    user_id=594846

    Hi,

    I've got the same problem but I don't get how to resolve it.

    arch appears to be trying to index a html file that isn't there.

     
  • Barry Warsaw

    Barry Warsaw - 2002-12-13

    Logged In: YES
    user_id=12800

    Upgrade to 2.1b6 -- it fixes the problem.

     
  • Barry Warsaw

    Barry Warsaw - 2002-12-13
    • summary: Crash from "article file missing" error --> Crash from "article file missing" error
     

Log in to post a comment.

MongoDB Logo MongoDB