Hi, After adding
dbenv->set_thread_count(dbenv, 8);
it seems to resolve the issues on the command line. However, now that PackageKit with zypp backend is started the problem appears again. It looks like zypp backend via libzypp is doing something with the rpm db that causes those errors. Anas On 2010-02-17, at 8:24 AM, Michael Schroeder wrote:
On Tue, Feb 16, 2010 at 02:27:46PM -0500, Anas Nashif wrote:
I just tried satsolver from obs zypp:/Head on Fedora 11, same result:
[root@taybeh ~]# rpm --rebuilddb [root@taybeh ~]# rpmdb2solv > /dev/null [root@taybeh ~]# rpm -e check rpmdb: thread table must be allocated when the database environment is created error: db4 error(22) from dbenv->open: Invalid argument error: cannot open Packages index using db3 - Invalid argument (22) error: cannot open Packages database in /var/lib/rpm rpmdb: thread table must be allocated when the database environment is created error: db4 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm error: package check is not installed
I think this can be fixed by adding
dbenv->set_thread_count(dbenv, 8);
right after the db_env_create(&dbenv, 0) call in repo_rpmdb.c
But I don't think it'll cure your original problem. Could you please do:
rpm --rebuilddb rpm -U
save the dbenv files (__db.00*)
rpm --rebuilddb rpmdb2solv > /dev/null
save the dbenv files
and send me both versions of the created environment so that I can check the differences?
Thanks, Michael.
(P.S: I hate BerkeleyDB...)
-- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
-- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org