[Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch
Andriy Khavryuchenko
=?iso-8859-1?q?akhavr_=CE=C1_khavr=2Ecom?=
Пн Июн 9 00:33:54 MSD 2008
Ivan Fedorov написав(ла):
> 2008/6/8 Andriy Khavryuchenko :
>> Sun Jun 8 13:35:54 2008 [error] db: couldn't open environment:
>> DB_VERSION_MISMATCH: Database environment version mismatch
>
>> $ rpm -qa | grep libdb
>> libdb4.4-4.4.20-alt2
>> libdb4.6-4.6.21-alt2
>
>> $ file /var/lib/jabberd2/db/authreg.db
>> /var/lib/jabberd2/db/authreg.db: Berkeley DB (Btree, version 9, native
>> byte-order)
>
> Вероятнее всего стоит скопировать весь каталог db и сделать на нём db_recover.
Откатил версию jabberd2, сделал db_recover, положил файлы баз назад,
получаю:
Mon Jun 9 00:31:50 2008 [notice] [8] [212.26.137.42, port=58220] connect
Mon Jun 9 00:31:52 2008 [error] db: couldn't open db for realm
'khavr.com': Cannot allocate memory
Mon Jun 9 00:31:52 2008 [error] db: couldn't open db for realm
'khavr.com': Cannot allocate memory
Mon Jun 9 00:31:53 2008 [notice] [8] [212.26.137.42, port=58220]
disconnect jid=unbound, packets: 0
ll /var/lib/jabberd2/db
total 6404
-rw-r----- 1 jabberd2 jabberd2 188416 Jun 9 00:30 sm.db
-rw-r----- 1 jabberd2 jabberd2 10485760 Jun 9 00:30 log.0000000001
-rw-r----- 1 jabberd2 jabberd2 20480 Jun 9 00:30 authreg.db
drwxrws--- 2 root jabberd2 4096 Jun 9 00:28 ./
drwxr-xr-x 7 root root 61 Jun 9 00:28 ../
-rw-r----- 1 jabberd2 jabberd2 16384 Oct 17 2007 __db.006
-rw-r----- 1 jabberd2 jabberd2 352256 Oct 17 2007 __db.005
-rw-r----- 1 jabberd2 jabberd2 24576 Oct 17 2007 __db.001
-rw-r----- 1 jabberd2 jabberd2 278528 Oct 17 2007 __db.002
-rw-r----- 1 jabberd2 jabberd2 270336 Oct 17 2007 __db.003
-rw-r----- 1 jabberd2 jabberd2 98304 Oct 17 2007 __db.004
Что я делаю не так?
--
*** Bug 3334 has been marked as a duplicate of this bug. ***
-- mouse in #4443
Подробная информация о списке рассылки Sysadmins