Description

Trying to rebuild the index, just after install the latest rev, with the new parameters  --mode=usenewindex  and  --mode=buildnewindex . The faster, apache is stopped, with  --mode=usenewindex  fails with the following error message. the slower works well.

Steps to reproduce

  1. try to rebuild the index

Example

using this commandline:

sudo moin --config-dir=/var/www/moinmoin/config --wiki-url=https://my.wiki.ch index build --mode=usenewindex

using a farmwiki with this xapian config stuff:

    xapian_search = True
    xapian_index_dir = '/var/www/moinmoin/index'
    xapian_stemming = True
    xapian_index_history = False
    search_results_per_page = 30

Component selection

Details

2009-12-13 10:58:27,414 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module!
2009-12-13 10:58:27,815 INFO MoinMoin.config.multiconfig:93 using farm config: /var/www/moinmoin/config/farmconfig.pyc
2009-12-13 10:58:27,854 INFO MoinMoin.config.multiconfig:127 using wiki config: /var/www/moinmoin/config/IntranetWiki.pyc
Traceback (most recent call last):
  File "/usr/local/bin/moin", line 6, in <module>
    run()
  File "/usr/local/lib/python2.6/dist-packages/MoinMoin/script/moin.py", line 15, in run
    MoinScript().run(showtime=0)
  File "/usr/local/lib/python2.6/dist-packages/MoinMoin/script/__init__.py", line 138, in run
    self.mainloop()
  File "/usr/local/lib/python2.6/dist-packages/MoinMoin/script/__init__.py", line 253, in mainloop
    plugin_class(args[2:], self.options).run() # all starts again there
  File "/usr/local/lib/python2.6/dist-packages/MoinMoin/script/__init__.py", line 138, in run
    self.mainloop()
  File "/usr/local/lib/python2.6/dist-packages/MoinMoin/script/index/build.py", line 82, in mainloop
    self.command()
  File "/usr/local/lib/python2.6/dist-packages/MoinMoin/script/index/build.py", line 120, in command
    os.rename(idx_new, idx_old)
OSError: [Errno 2] No such file or directory

MoinMoin Version

1.9 latest rev

OS and Version

Ubunutu 8.10

Python Version

2.6

Server Setup

apache| mod_wsgi

Server Details

xapian 1.0.7

Language you are using the wiki in (set in the browser/UserPreferences)

de

Workaround

I will now delete the index and try to add a new one, and after that I will test if buildnewindex still fails. While doing this now receive some other wired error like:  ERROR MoinMoin.macro:131 Macro FullSearchCached (page: 'KategoriaKategoria') raised an exception . But will fill a separate bug report.

Discussion

I'm not sure now if "rebuild" is still valid or only the new parameter should be used. So maybe the documentation should also be updated, I found here some "outdated" references:

Well, obviously here is some confusion, so let me add some infos, please review bug report after considering them:

Thanks for your explanation, everything works now!

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/1.9 XapianNewFastIndexRebuildFails (last edited 2009-12-13 19:05:30 by ThomasWaldmann)