ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Andriy Khavryuchenko <akhavr@khavr.com>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] jabberd2 upgrade: db: couldn't open environment: DB_VERSION_MISMATCH: Database environment version mismatch
Date: Sun, 08 Jun 2008 23:33:54 +0300
Message-ID: <484C4232.2080902@khavr.com> (raw)
In-Reply-To: <2c1ee2a10806080508w3c0c34f9k52ff0bfbc638719e@mail.gmail.com>

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


  parent reply	other threads:[~2008-06-08 20:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-08  9:42 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 [this message]
2008-06-09 12:15     ` Andriy Khavryuchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=484C4232.2080902@khavr.com \
    --to=akhavr@khavr.com \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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