Ticket #84 (closed defect: invalid)

Opened 19 months ago

Last modified 19 months ago

Xapian DatabaseOpeningError

Reported by: adamm Owned by: slav0nic
Priority: major Milestone: 0.1
Component: Uncategorized Version: devel
Keywords: Cc:
Blocked By: Blocking:

Description

I've installed Xapian and Djapian as well as DjangoBB. I've gotten everything working except for search.

When I type python manage.py index I get the following error:

henever I run python manage.py index I get the following error.

I've set up my DJAPIAN_DATABASE_PATH. Also, when i try to search for a keyword the entire program stalls.

Traceback (most recent call last):

File "manage.py", line 11, in <module>

execute_manager(settings)

File ".../lib/python2.5/site-packages/django/core/management/init.py", line 438, in execute_manager

utility.execute()

File ".../lib/python2.5/site-packages/django/core/management/init.py", line 379, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

File ".../lib/python2.5/site-packages/django/core/management/base.py", line 191, in run_from_argv

self.execute(*args, options.dict)

File ".../lib/python2.5/site-packages/django/core/management/base.py", line 218, in execute

output = self.handle(*args, options)

File ".../lib/python2.5/site-packages/djapian/management/commands/index.py", line 166, in handle

update_changes(verbose, timeout, not make_daemon, per_page, commit_each)

File ".../lib/python2.5/site-packages/django/db/transaction.py", line 338, in _commit_manually

return func(*args, kw)

File ".../lib/python2.5/site-packages/djapian/management/commands/index.py", line 75, in update_changes

commit_each

File ".../lib/python2.5/site-packages/djapian/indexer.py", line 181, in update

database = self._db.open(write=True)

File ".../lib/python2.5/site-packages/djapian/database.py", line 20, in open

xapian.DB_CREATE_OR_OPEN,

File "/usr/lib/python2.5/site-packages/xapian.py", line 2804, in init

_xapian.WritableDatabase_swiginit(self,_xapian.new_WritableDatabase(*args))

xapian.DatabaseOpeningError?: No flint database found at path `.../djangobb_forum/post/djangobb_forum.index.postindexer'

Change History

comment:1 Changed 19 months ago by slav0nic

  • Status changed from new to accepted
  • Owner changed from somebody to slav0nic

./manage.py index --rebuild work?
show u settings or this is default djangobb install?

comment:2 Changed 19 months ago by adamm

./manage.py index --rebuild fails with the same error.

Using a PostgreSQL db.

Here are the relevant settings.

MIDDLEWARE_CLASSES = (

'django.middleware.common.CommonMiddleware?',
'django.contrib.sessions.middleware.SessionMiddleware?',
'django.middleware.csrf.CsrfViewMiddleware?',
'django.contrib.auth.middleware.AuthenticationMiddleware?',
'django.contrib.messages.middleware.MessageMiddleware?',
'django_authopenid.middleware.OpenIDMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware?',
'django.middleware.transaction.TransactionMiddleware?',
'djangobb_forum.middleware.LastLoginMiddleware?',
'djangobb_forum.middleware.UsersOnline?',
'django.middleware.cache.UpdateCacheMiddleware?',

)

INSTALLED_APPS = (

...
'registration',
'django_authopenid',
'djangobb_forum',
'djapian',
'messages',

)

# Djapian settings
DJAPIAN_DATABASE_PATH = os.path.join(PROJECT_ROOT, 'djapian_db')

# Account settings
ACCOUNT_ACTIVATION_DAYS = 10
LOGIN_REDIRECT_URL = '/forum/'
LOGIN_URL = '/forum/account/signin/'

#Cache settings
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True

comment:3 Changed 19 months ago by slav0nic

what djapian, django version? with djapian 2.3 i don't saw this problem

comment:4 Changed 19 months ago by slav0nic

check pls table "Versions compatibility matrix:" from  http://code.google.com/p/djapian/ and compare with your install

comment:5 Changed 19 months ago by adamm

Ah, never saw this compatibility matrix. I'm using Django 1.2.1 but Djapian 2.3.1. Where's the download for Djapian 2.4

comment:6 Changed 19 months ago by slav0nic

  • Status changed from accepted to closed
  • Resolution set to invalid

svn checkout  http://djapian.googlecode.com/svn/trunk/ djapian

we don't migrated (and not tested) djangobb to djangobb 1.2 it will be soon
use forum for other question, i closed this ticket

Note: See TracTickets for help on using tickets.