Bug 1220476

Summary: DB_VERSION_MISMATCH on i686 rawhide
Product: [Fedora] Fedora Reporter: Cole Robinson <crobinso>
Component: distributionAssignee: Václav Pavlín <vpavlin>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dennis, ffesti, jzeleny, lkardos, notting, novyjindrich, packaging-team-maint, pbonzini, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-13 23:07:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Cole Robinson 2015-05-11 15:35:55 UTC
Trying to build qemu i686 for rawhide is currently failing. The root issue seems to be scriptlet errors in 'unbound' (which should be fixed), however it seems to cause db corruption

http://koji.fedoraproject.org/koji/taskinfo?taskID=9702888
https://kojipkgs.fedoraproject.org//work/tasks/2888/9702888/root.log

Relevant chunk:

...
DEBUG util.py:388:  Transaction Summary
DEBUG util.py:388:  ================================================================================
DEBUG util.py:388:  Install  47 Packages (+598 Dependent packages)
DEBUG util.py:388:  Total download size: 386 M
DEBUG util.py:388:  Installed size: 1.0 G
DEBUG util.py:388:  No Presto metadata available for build
DEBUG util.py:388:  /var/tmp/rpm-tmp.On0i0J: line 10: systemctl: command not found
DEBUG util.py:388:  warning: %post(unbound-libs-1.5.3-3.fc23.i686) scriptlet failed, exit status 127
DEBUG util.py:388:  Non-fatal POSTIN scriptlet failure in rpm package unbound-libs-1.5.3-3.fc23.i686
DEBUG util.py:388:  getfacl: /var/log/journal/f66f3bcf60184800b5f41482f2432e86: No such file or directory
DEBUG util.py:388:  grep: /etc/vconsole.conf: No such file or directory
DEBUG util.py:388:  sed: can't read /etc/vconsole.conf: No such file or directory
DEBUG util.py:388:  Created symlink from /etc/systemd/system/sockets.target.wants/rpcbind.socket to /usr/lib/systemd/system/rpcbind.socket.
DEBUG util.py:388:  error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
DEBUG util.py:388:  error: cannot open Packages index using db5 -  (-30969)
DEBUG util.py:388:  error: cannot open Packages database in /var/lib/rpm
DEBUG util.py:388:  error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
DEBUG util.py:388:  error: cannot open Packages index using db5 -  (-30969)
DEBUG util.py:388:  error: cannot open Packages database in /var/lib/rpm
DEBUG util.py:388:  No '/dev/log' or 'logger' included for syslog logging
DEBUG util.py:388:  Turning off host-only mode: '/run' is not mounted!
DEBUG util.py:388:  Turning off host-only mode: '/dev' is not mounted!
DEBUG util.py:388:  Installed:
...

Comment 1 Cole Robinson 2015-05-11 20:38:43 UTC
Okay, it's not due to the unbound scriplet issue, that's fixed now but the error remains. New output is:

DEBUG util.py:388:  getfacl: /var/log/journal/ee9a68203ede4b41a0f4564c590012de: No such file or directory
DEBUG util.py:388:  grep: /etc/vconsole.conf: No such file or directory
DEBUG util.py:388:  sed: can't read /etc/vconsole.conf: No such file or directory
DEBUG util.py:388:  Created symlink from /etc/systemd/system/sockets.target.wants/rpcbind.socket to /usr/lib/systemd/system/rpcbind.socket.
DEBUG util.py:388:  error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
DEBUG util.py:388:  error: cannot open Packages index using db5 -  (-30969)
DEBUG util.py:388:  error: cannot open Packages database in /var/lib/rpm
DEBUG util.py:388:  error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
DEBUG util.py:388:  error: cannot open Packages index using db5 -  (-30969)
DEBUG util.py:388:  error: cannot open Packages database in /var/lib/rpm
DEBUG util.py:388:  No '/dev/log' or 'logger' included for syslog logging
DEBUG util.py:388:  Turning off host-only mode: '/run' is not mounted!
DEBUG util.py:388:  Turning off host-only mode: '/dev' is not mounted!

Comment 2 Florian Festi 2015-05-12 15:22:03 UTC
Looks like the rpm version on the builder is not compatible with the one in the build root. I am unaware of any changes in the rawhide rpm that could have caused this. Reassigning to distribution.

Comment 3 Cole Robinson 2015-05-13 23:07:14 UTC
I think it's caused by this man-db bug, where it's calling 'rpm' in %pre, so duping to that

*** This bug has been marked as a duplicate of bug 1220938 ***