[zypp-devel] MeeGo - Maemo + Moblin merge

Hi all! You might have heard about Maemo+Moblin being merged into MeeGo platform. The FAQ[1] says it will use RPM as its packaging system. But AFAIK it hasn't been decided which package management system will be used. (Moblin uses yum and Maemo uses apt). My thought is to approach MeeGo developers and ask them whether they've thought about zypper. It is similar to yum, but is faster and has lower memory footprint (C++ vs Python). This is crucial for mobile devices and might be a really good reason to switch. If we'll be able to persuade them, it will bring a huge users and developers base to zypper. What do you think? [1] http://meego.com/about/faq -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Boosters Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

Hi Pavol, Zypper has been on our radar for a while now and *is* on the feature list for the first meego release. To make this happen faster, here is question about something I have been struggling with today :) Are patterns supported in repo-md style repos? I have patterns.xml in the repo (generated by obs) but zypper does not show the pattern, although I can see that the metadata has been fetched and parsed into the solv file. Any hints? Anas On 2010-02-15, at 7:10 PM, Pavol Rusnak wrote:
Hi all!
You might have heard about Maemo+Moblin being merged into MeeGo platform. The FAQ[1] says it will use RPM as its packaging system. But AFAIK it hasn't been decided which package management system will be used. (Moblin uses yum and Maemo uses apt). My thought is to approach MeeGo developers and ask them whether they've thought about zypper. It is similar to yum, but is faster and has lower memory footprint (C++ vs Python). This is crucial for mobile devices and might be a really good reason to switch. If we'll be able to persuade them, it will bring a huge users and developers base to zypper. What do you think?
[1] http://meego.com/about/faq
-- Best Regards / S pozdravom,
Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Boosters Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- 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

On 02/16/2010 01:25 AM, Anas Nashif wrote:
Hi Pavol, Zypper has been on our radar for a while now and *is* on the feature list for the first meego release.
Great news!
To make this happen faster, here is question about something I have been struggling with today :) Are patterns supported in repo-md style repos?
Of course.
I have patterns.xml in the repo (generated by obs) but zypper does not show the pattern, although I can see that the metadata has been fetched and parsed into the solv file.
How are you listing the patterns? The following command works for me and lists all patterns from all repositories: $ zypper search -t pattern You can restrict the search to only one repo by adding "-r repo" option: -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Boosters Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

On 2010-02-15, at 7:34 PM, Pavol Rusnak wrote:
On 02/16/2010 01:25 AM, Anas Nashif wrote:
Hi Pavol, Zypper has been on our radar for a while now and *is* on the feature list for the first meego release.
Great news!
To make this happen faster, here is question about something I have been struggling with today :) Are patterns supported in repo-md style repos?
Of course.
I have patterns.xml in the repo (generated by obs) but zypper does not show the pattern, although I can see that the metadata has been fetched and parsed into the solv file.
How are you listing the patterns? The following command works for me and lists all patterns from all repositories:
$ zypper search -t pattern
This still does not return anything. I used zypper pt It seems like the problem is elsewhere. If I dump the solv file of the repo, I see at the end: solvable 4708 (4709): solvable:name: pattern:Tools solvable:arch: noarch solvable:evr: solvable:provides: pattern:Tools = solvable:requires: powertop solvable:summary: Test Pattern solvable:description: Test Pattern. but it seems this is not enough.. Anas
You can restrict the search to only one repo by adding "-r repo" option:
-- Best Regards / S pozdravom,
Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Boosters Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- 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

On 02/16/2010 01:55 AM, Anas Nashif wrote:
This still does not return anything.
Seems there is a bug/missing feature in rpm-md parser and its developers have been notified. You should've received another email describing the problem in more detail. -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Boosters Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

Hi, Thanks, that will really help going away from comps :) The next frontier: [root@localhost ~]# zypper rm check Loading repository data... Reading installed packages... Resolving package dependencies... The following package is going to be REMOVED: check 1 package to remove. After the operation, 344.0 KiB will be freed. Continue? [y/n/?] (y): y Removing check-0.9.8-1.2.moblin2 [error] Removal of (4802)check-0.9.8-1.2.moblin2.i586(@System) failed: Error: Subprocess failed. Error: RPM failed: rpmdb: configured environment flags incompatible with existing environment error: db3 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: configured environment flags incompatible with existing environment error: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm error: package check-0.9.8-1.2.moblin2.i586 is not installed Are we running incompatible version of db? We are at 4.8.26 right now? Any hints on what could be the reason? The immediate cure is rm /var/lib/rpm/__db.00* b but it comes back right away.. Anas On 2010-02-16, at 7:38 AM, Pavol Rusnak wrote:
On 02/16/2010 01:55 AM, Anas Nashif wrote:
This still does not return anything.
Seems there is a bug/missing feature in rpm-md parser and its developers have been notified. You should've received another email describing the problem in more detail.
-- Best Regards / S pozdravom,
Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Boosters Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- 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

On Tue, Feb 16, 2010 at 12:11:42PM -0500, Anas Nashif wrote:
Thanks, that will really help going away from comps :)
The next frontier:
[root@localhost ~]# zypper rm check Loading repository data... Reading installed packages... Resolving package dependencies...
The following package is going to be REMOVED: check
1 package to remove. After the operation, 344.0 KiB will be freed. Continue? [y/n/?] (y): y Removing check-0.9.8-1.2.moblin2 [error] Removal of (4802)check-0.9.8-1.2.moblin2.i586(@System) failed: Error: Subprocess failed. Error: RPM failed: rpmdb: configured environment flags incompatible with existing environment error: db3 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: configured environment flags incompatible with existing environment error: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm error: package check-0.9.8-1.2.moblin2.i586 is not installed
Are we running incompatible version of db? We are at 4.8.26 right now? Any hints on what could be the reason?
Wild guess: you're not using SUSE's version of rpm. The satsolver library needs to be compiled with -DFEDORA in that case. Cheers, Michael. -- 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

On 2010-02-16, at 12:20 PM, Michael Schroeder wrote:
On Tue, Feb 16, 2010 at 12:11:42PM -0500, Anas Nashif wrote:
Thanks, that will really help going away from comps :)
The next frontier:
[root@localhost ~]# zypper rm check Loading repository data... Reading installed packages... Resolving package dependencies...
The following package is going to be REMOVED: check
1 package to remove. After the operation, 344.0 KiB will be freed. Continue? [y/n/?] (y): y Removing check-0.9.8-1.2.moblin2 [error] Removal of (4802)check-0.9.8-1.2.moblin2.i586(@System) failed: Error: Subprocess failed. Error: RPM failed: rpmdb: configured environment flags incompatible with existing environment error: db3 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: configured environment flags incompatible with existing environment error: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm error: package check-0.9.8-1.2.moblin2.i586 is not installed
Are we running incompatible version of db? We are at 4.8.26 right now? Any hints on what could be the reason?
Wild guess: you're not using SUSE's version of rpm. The satsolver library needs to be compiled with -DFEDORA in that case.
No, we are not shipping SUSE's rpm, and looking at satsolver, we have CMAKE_FLAGS="-DFEDORA=1" Anas
Cheers, Michael.
-- 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

On Tue, Feb 16, 2010 at 12:36:29PM -0500, Anas Nashif wrote:
No, we are not shipping SUSE's rpm, and looking at satsolver, we have CMAKE_FLAGS="-DFEDORA=1"
Maybe libzypp also meddles with the db. Here's a small test if libsatsolver is to blame: [maybe remove the old dbenv] rpm --rebuilddb rpmdb2solv > /dev/null rpm -e check Cheers, Michael. -- 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

On 2010-02-16, at 12:45 PM, Michael Schroeder wrote:
On Tue, Feb 16, 2010 at 12:36:29PM -0500, Anas Nashif wrote:
No, we are not shipping SUSE's rpm, and looking at satsolver, we have CMAKE_FLAGS="-DFEDORA=1"
Maybe libzypp also meddles with the db. Here's a small test if libsatsolver is to blame:
[maybe remove the old dbenv] rpm --rebuilddb rpmdb2solv > /dev/null rpm -e check
[root@localhost ~]# rpm --rebuilddb [root@localhost ~]# rpmdb2solv > /dev/null [root@localhost ~]# rpm -e powertop rpmdb: thread table must be allocated when the database environment is created error: db3 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: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm error: package powertop is not installed So is it satsolver? Anas
Cheers, Michael.
-- 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

On Tue, Feb 16, 2010 at 12:50:32PM -0500, Anas Nashif wrote:
On 2010-02-16, at 12:45 PM, Michael Schroeder wrote:
On Tue, Feb 16, 2010 at 12:36:29PM -0500, Anas Nashif wrote:
No, we are not shipping SUSE's rpm, and looking at satsolver, we have CMAKE_FLAGS="-DFEDORA=1"
Maybe libzypp also meddles with the db. Here's a small test if libsatsolver is to blame:
[maybe remove the old dbenv] rpm --rebuilddb rpmdb2solv > /dev/null rpm -e check
[root@localhost ~]# rpm --rebuilddb [root@localhost ~]# rpmdb2solv > /dev/null [root@localhost ~]# rpm -e powertop rpmdb: thread table must be allocated when the database environment is created error: db3 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: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm error: package powertop is not installed
So is it satsolver?
Looks like it. But that would mean repo_rpmdb.c was not compiled with -DFEDORA. Hmm. Or rpm uses a different db that satsolver was linked against. What rpm version are you using? Cheers, Michael. -- 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

On 2010-02-16, at 1:25 PM, Michael Schroeder wrote:
On Tue, Feb 16, 2010 at 12:50:32PM -0500, Anas Nashif wrote:
On 2010-02-16, at 12:45 PM, Michael Schroeder wrote:
On Tue, Feb 16, 2010 at 12:36:29PM -0500, Anas Nashif wrote:
No, we are not shipping SUSE's rpm, and looking at satsolver, we have CMAKE_FLAGS="-DFEDORA=1"
Maybe libzypp also meddles with the db. Here's a small test if libsatsolver is to blame:
[maybe remove the old dbenv] rpm --rebuilddb rpmdb2solv > /dev/null rpm -e check
[root@localhost ~]# rpm --rebuilddb [root@localhost ~]# rpmdb2solv > /dev/null [root@localhost ~]# rpm -e powertop rpmdb: thread table must be allocated when the database environment is created error: db3 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: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm error: package powertop is not installed
So is it satsolver?
Looks like it. But that would mean repo_rpmdb.c was not compiled with -DFEDORA. Hmm. Or rpm uses a different db that satsolver was linked against.
I checked, the file is compiled with -DFEDORA
What rpm version are you using?
4.8.0, built against external db4. (same as satsolver). Anas
Cheers, Michael.
-- 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

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 Anas On 2010-02-16, at 1:43 PM, Anas Nashif wrote:
On 2010-02-16, at 1:25 PM, Michael Schroeder wrote:
On Tue, Feb 16, 2010 at 12:50:32PM -0500, Anas Nashif wrote:
On 2010-02-16, at 12:45 PM, Michael Schroeder wrote:
On Tue, Feb 16, 2010 at 12:36:29PM -0500, Anas Nashif wrote:
No, we are not shipping SUSE's rpm, and looking at satsolver, we have CMAKE_FLAGS="-DFEDORA=1"
Maybe libzypp also meddles with the db. Here's a small test if libsatsolver is to blame:
[maybe remove the old dbenv] rpm --rebuilddb rpmdb2solv > /dev/null rpm -e check
[root@localhost ~]# rpm --rebuilddb [root@localhost ~]# rpmdb2solv > /dev/null [root@localhost ~]# rpm -e powertop rpmdb: thread table must be allocated when the database environment is created error: db3 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: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm error: package powertop is not installed
So is it satsolver?
Looks like it. But that would mean repo_rpmdb.c was not compiled with -DFEDORA. Hmm. Or rpm uses a different db that satsolver was linked against.
I checked, the file is compiled with -DFEDORA
What rpm version are you using?
4.8.0, built against external db4. (same as satsolver).
Anas
Cheers, Michael.
-- 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

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 <some_rpm> 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

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 <some_rpm>
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

On Thu, Feb 18, 2010 at 11:02:45AM -0500, Anas Nashif wrote:
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.
Is that the "thread table..." or the "incompatible with existing environment" error? If the latter, could you send me the dbenv file? Cheers, Michael. -- 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

On 2010-02-18, at 11:28 AM, Michael Schroeder wrote:
On Thu, Feb 18, 2010 at 11:02:45AM -0500, Anas Nashif wrote:
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.
Is that the "thread table..." or the "incompatible with existing environment" error? If the latter, could you send me the dbenv file?
not the thread error, this now: [root@localhost dbenv]# rpm -qa rpmdb: configured environment flags incompatible with existing environment error: db3 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: configured environment flags incompatible with existing environment error: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm File attached. Thanks Anas
Cheers, Michael.
-- 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);}

On Thu, Feb 18, 2010 at 11:35:27AM -0500, Anas Nashif wrote:
not the thread error, this now:
[root@localhost dbenv]# rpm -qa rpmdb: configured environment flags incompatible with existing environment error: db3 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: configured environment flags incompatible with existing environment error: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm
File attached.
Ok, someone openened the dbenv without "DB_INIT_CDB". Unforunately I don't see libzypp directly meddling with the database. An strace of the zypper command that breaks the rpbdb would be helpful. I'll also try to reproduce it with Rawhide. Cheers, Michael. -- 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

Hi Michael, On 2010-02-18, at 12:16 PM, Michael Schroeder wrote:
On Thu, Feb 18, 2010 at 11:35:27AM -0500, Anas Nashif wrote:
not the thread error, this now:
[root@localhost dbenv]# rpm -qa rpmdb: configured environment flags incompatible with existing environment error: db3 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: configured environment flags incompatible with existing environment error: db3 error(22) from dbenv->open: Invalid argument error: cannot open Packages database in /var/lib/rpm
File attached.
Ok, someone openened the dbenv without "DB_INIT_CDB". Unforunately I don't see libzypp directly meddling with the database. An strace of the zypper command that breaks the rpbdb would be helpful.
I'll also try to reproduce it with Rawhide.
Were you able to reproduce this? I cant think of anything that might be accessing the database environment. Basically I made sure packagekit is not started and anything that have remotely anything with rpm was removed, still no success. Anas
Cheers, Michael.
-- 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

On Wed, Feb 24, 2010 at 10:35:35PM -0500, Anas Nashif wrote:
Were you able to reproduce this?
Not really. I've installed zypper on FC12 and everything seems to work. The critical __db.001 bytes stay at "1100 0000" (xxd -l 4 -s 32 /var/lib/rpm/__db.001). Cheers, Michael. -- 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
participants (3)
-
Anas Nashif
-
Michael Schroeder
-
Pavol Rusnak