Bug 1956396 - RPM: error: cannot open Packages database in /var/lib/mock/fedora-rawhide-x86_64/root/var/lib/rpm
Summary: RPM: error: cannot open Packages database in /var/lib/mock/fedora-rawhide-x86...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-review
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-03 15:39 UTC by Peter Oliver
Modified: 2021-05-03 15:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Peter Oliver 2021-05-03 15:39:16 UTC
Description of problem:
I find that Iā€™m unable to run fedora-review on Fedora 34 unless I specify the option `--mock-config=fedora-34-x86_64`.

Version-Release number of selected component (if applicable):
fedora-review-0.7.6-3.fc34.noarch

How reproducible:
Always.

Steps to Reproduce:
fedora-review -v --bug=1955618

Actual results:
...
Running transaction
RPM: error: cannot open Packages index using bdb_ro - Operation not permitted (1)
RPM: error: cannot open Packages database in /var/lib/mock/fedora-rawhide-x86_64/root/var/lib/rpm
Error: Could not run transaction.

DEBUG: _topdir: /builddir/build
INFO: Reading configuration from /etc/mock/site-defaults.cfg
DEBUG: Report completed:  27.141 seconds
INFO: Reading configuration from /etc/mock/fedora-rawhide-x86_64.cfg
DEBUG: Report completed:  27.255 seconds
DEBUG: Build failed rc = Build error(s)
DEBUG: ReviewError: 'mock build failed, see /home/mavit/src/fedora-review/1955618-perl-XS-Parse-Keyword/results/build.log'
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/FedoraReview/review_helper.py", line 236, in run
    self._do_run(outfile)
  File "/usr/lib/python3.9/site-packages/FedoraReview/review_helper.py", line 226, in _do_run
    self._do_report(outfile)
  File "/usr/lib/python3.9/site-packages/FedoraReview/review_helper.py", line 99, in _do_report
    self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile)
  File "/usr/lib/python3.9/site-packages/FedoraReview/review_helper.py", line 117, in _run_checks
    self.checks.run_checks(output=output, writedown=not Settings.no_report)
  File "/usr/lib/python3.9/site-packages/FedoraReview/checks.py", line 382, in run_checks
    run_check(name)
  File "/usr/lib/python3.9/site-packages/FedoraReview/checks.py", line 357, in run_check
    check.run()
  File "/usr/lib/python3.9/site-packages/FedoraReview/plugins/generic_build.py", line 203, in run
    Mock.build(self.srpm.filename)
  File "/usr/lib/python3.9/site-packages/FedoraReview/mock.py", line 468, in build
    raise error
FedoraReview.review_error.ReviewError: 'mock build failed, see /home/mavit/src/fedora-review/1955618-perl-XS-Parse-Keyword/results/build.log'
ERROR: 'mock build failed, see /home/mavit/src/fedora-review/1955618-perl-XS-Parse-Keyword/results/build.log'
DEBUG: Report completed:  27.382 seconds


Expected results:
Package builds.


Note You need to log in before you can comment on or make changes to this bug.