* [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch
@ 2008-06-08 9:42 Andriy Khavryuchenko
2008-06-08 12:08 ` Ivan Fedorov
0 siblings, 1 reply; 7+ messages in thread
From: Andriy Khavryuchenko @ 2008-06-08 9:42 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Sun Jun 8 13:35:54 2008 [notice] starting up
Sun Jun 8 13:35:54 2008 [info] process id is 1859, written to
/var/lib/jabberd2/pid/c2s.pid
Sun Jun 8 13:35:54 2008 [notice] modules search path undefined, using
default: /usr/lib/jabberd2
Sun Jun 8 13:35:54 2008 [info] loading 'db' authreg module
Sun Jun 8 13:35:54 2008 [error] db: couldn't open environment:
DB_VERSION_MISMATCH: Database environment version mismatch
Sun Jun 8 13:35:54 2008 [error] failed to initialize auth module 'db'
$ rpm -qa | grep jabberd2
jabberd2-c2s-2.2.0-alt1
jabberd2-s2s-2.2.0-alt1
jabberd2-sm-2.2.0-alt1
jabberd2-2.2.0-alt1
jabberd2-sqlite-2.2.0-alt1
$ 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)
Что делать?
--
lrwxrwxrwx 1 root root 26 Jul 5 14:21 nvidia_drv.so -> apt-get
install NVIDIA_GLX
lrwxrwxrwx 1 root root 26 Jul 5 14:21 nvidia_drv.o -> apt-get
install NVIDIA_GLX
[...]
2 zerg: прикол в офисе заценили (sr@ продлил его до -> rm -rf / :)
-- mike in #6901
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch
2008-06-08 9:42 [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch Andriy Khavryuchenko
@ 2008-06-08 12:08 ` Ivan Fedorov
2008-06-08 14:14 ` Andriy Khavryuchenko
2008-06-08 20:33 ` Andriy Khavryuchenko
0 siblings, 2 replies; 7+ messages in thread
From: Ivan Fedorov @ 2008-06-08 12:08 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: http://getfiregpg.org
iEYEARECAAYFAkhLy8cACgkQMJy3oC+NmVslUACfX85fymeHXtCCQN9zw6wen5rQ
tSwAniW2V8rJ85Ihw8PbajhpMp7iN/H+
=Sf8N
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch
2008-06-08 12:08 ` Ivan Fedorov
@ 2008-06-08 14:14 ` Andriy Khavryuchenko
2008-06-08 15:38 ` Dmitry V. Levin
2008-06-08 20:33 ` Andriy Khavryuchenko
1 sibling, 1 reply; 7+ messages in thread
From: Andriy Khavryuchenko @ 2008-06-08 14:14 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Ivan Fedorov написал:
> Вероятнее всего стоит скопировать весь каталог db и сделать на нём db_recover.
Спасибо.
А в каком пакете он находится?
akhavr@comm /etc/jabberd2 $ which db_recover
db_recover not found
akhavr@comm /etc/jabberd2 $ locate db_recover
akhavr@comm /etc/jabberd2 $ apt-cache search db_recover
akhavr@comm /etc/jabberd2 $
--
Sincerely,
Andrey Khavryuchenko http://a.khavr.com/
KDS Software Group http://www.kds.com.ua/
Software Solutions Company
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch
2008-06-08 14:14 ` Andriy Khavryuchenko
@ 2008-06-08 15:38 ` Dmitry V. Levin
2008-06-08 16:48 ` Andriy Khavryuchenko
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry V. Levin @ 2008-06-08 15:38 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 294 bytes --]
On Sun, Jun 08, 2008 at 05:14:04PM +0300, Andriy Khavryuchenko wrote:
> Ivan Fedorov написал:
> >Вероятнее всего стоит скопировать весь каталог db и сделать на нём
> >db_recover.
>
> Спасибо.
>
> А в каком пакете он находится?
# apt-get install /usr/bin/db_recover
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch
2008-06-08 15:38 ` Dmitry V. Levin
@ 2008-06-08 16:48 ` Andriy Khavryuchenko
0 siblings, 0 replies; 7+ messages in thread
From: Andriy Khavryuchenko @ 2008-06-08 16:48 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Dmitry V. Levin написав(ла):
> On Sun, Jun 08, 2008 at 05:14:04PM +0300, Andriy Khavryuchenko wrote:
>> Ivan Fedorov написал:
>>> Вероятнее всего стоит скопировать весь каталог db и сделать на нём
>>> db_recover.
>> Спасибо.
>>
>> А в каком пакете он находится?
>
> # apt-get install /usr/bin/db_recover
Спасибо.
Подпись в тему...
--
за таблетками от лени не ко мне.
-- shrek in #7850
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch
2008-06-08 12:08 ` Ivan Fedorov
2008-06-08 14:14 ` Andriy Khavryuchenko
@ 2008-06-08 20:33 ` Andriy Khavryuchenko
2008-06-09 12:15 ` Andriy Khavryuchenko
1 sibling, 1 reply; 7+ messages in thread
From: Andriy Khavryuchenko @ 2008-06-08 20:33 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch
2008-06-08 20:33 ` Andriy Khavryuchenko
@ 2008-06-09 12:15 ` Andriy Khavryuchenko
0 siblings, 0 replies; 7+ messages in thread
From: Andriy Khavryuchenko @ 2008-06-09 12:15 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Andriy Khavryuchenko написав(ла):
> Откатил версию 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
No ideas?
Спрошу в sisyphys@
--
Это известное свойство sudo - сохранять переменные окружения
пользователя, запускающего sudo.
Например, запуск 'sudo /etc/init.d/httpd restart' и последующий анализ
переменных окружения apache вас очень сильно и неприятно удивит.
-- abulava in #7353
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-06-09 12:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-08 9:42 [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch Andriy Khavryuchenko
2008-06-08 12:08 ` Ivan Fedorov
2008-06-08 14:14 ` Andriy Khavryuchenko
2008-06-08 15:38 ` Dmitry V. Levin
2008-06-08 16:48 ` Andriy Khavryuchenko
2008-06-08 20:33 ` Andriy Khavryuchenko
2008-06-09 12:15 ` Andriy Khavryuchenko
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git