Bug 1350930 - Error: Cache-only enabled but no cache for 'rawhide'
Summary: Error: Cache-only enabled but no cache for 'rawhide'
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-review
Version: 28
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
Assignee: Stanislav Ochotnicky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1247644
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-28 18:31 UTC by Jeremy Cline
Modified: 2019-05-28 22:34 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-28 22:34:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
fedora-review.log (33.57 KB, text/plain)
2016-06-28 18:31 UTC, Jeremy Cline
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1374781 0 unspecified CLOSED Review Request: python-sphinxcontrib-autoprogram - Sphinx extension for documenting CLI programs 2021-02-22 00:41:40 UTC

Internal Links: 1374781

Description Jeremy Cline 2016-06-28 18:31:39 UTC
Created attachment 1173531 [details]
fedora-review.log

Description of problem:
fedora-review fails unless there is a dnf cache present.

Version-Release number of selected component (if applicable):
fedora-review-0.6.1-1.fc25.noarch

How reproducible:
always


Steps to Reproduce:
1. dnf clean all (or start off without a cache)
2. fedora-review -n <package>
3. Note it fails.
4. dnf makecache
5. rm -rf review-<package>
6. fedora-review -n <package>
7. Note it succeeds.

Actual results:
[vagrant@rawhide python-releases]$ fedora-review -n python-releases                                                                                                                                                
INFO: Processing local files: python-releases
INFO: Getting .spec and .srpm Urls from : Local files in /home/vagrant/devel/python-releases
INFO:   --> SRPM url: file:///home/vagrant/devel/python-releases/python-releases-1.2.0-1.fc25.src.rpm
INFO:   --> Spec url: file:///home/vagrant/devel/python-releases/python-releases.spec
INFO: Using review directory: /home/vagrant/devel/python-releases/review-python-releases
INFO: Downloading (Source0): https://github.com/bitprophet/releases/archive/1.2.0.tar.gz
INFO: Running checks and generating report
INFO: Results and/or logs in: /home/vagrant/devel/python-releases/review-python-releases/results
INFO: Build completed
INFO: Installing built package(s)
INFO: Active plugins: Python, Generic, Shell-api
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/lib/python2.7/site-packages/releases
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/share/doc/python2-releases
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/share/licenses/python2-releases
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/lib/python3.5/site-packages/releases
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/share/doc/python3-releases
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/share/licenses/python3-releases
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/lib/python2.7/site-packages/releases
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/share/doc/python-releases-doc
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/share/licenses/python-releases-doc
Error: Cache-only enabled but no cache for 'rawhide'
Error: Cache-only enabled but no cache for 'rawhide'
Error: Cache-only enabled but no cache for 'rawhide'
ERROR: Exception down the road...(logs in /home/vagrant/.cache/fedora-review.log)


I've attached /home/vagrant/.cache/fedora-review.log

Comment 1 Jan Kurik 2016-07-26 05:04:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 2 Pavel Raiskup 2016-09-15 07:14:22 UTC
Fedora 24 suffers from this issue too.

Comment 3 Simone Caronni 2016-09-24 10:31:55 UTC
Don't know if it's related, but it's basically impossible to do reviews with the tool. I get the error above and I can not make the manual cache creation work.

I got continuos prompts for importing GPG keys which are of course happening in the background, for example:

DEBUG: Running: dnf repoquery -C --quiet --file /usr/lib/python2.7/site-packages/sphinxcontrib
Importing GPG key 0xFDB19C98:
 Userid     : "Fedora 25 Primary (25) <fedora-25-primary>"
 Fingerprint: C437 DCCD 558A 66A3 7D6F 4372 4089 D8F2 FDB1 9C98
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-25-x86_64

Importing GPG key 0xFDB19C98:
 Userid     : "Fedora 25 Primary (25) <fedora-25-primary>"
 Fingerprint: C437 DCCD 558A 66A3 7D6F 4372 4089 D8F2 FDB1 9C98
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-25-x86_64

Error: Cache-only enabled but no cache for 'fedora-cisco-openh264'
ERROR: Cannot run dnf repoquery -C --quiet --file /usr/lib/python2.7/site-packages/sphinxcontrib
DEBUG: Running: dnf repoquery -C --quiet --file /usr/share/doc/python2-sphinxcontrib-autoprogram
Importing GPG key 0xFDB19C98:
 Userid     : "Fedora 25 Primary (25) <fedora-25-primary>"
 Fingerprint: C437 DCCD 558A 66A3 7D6F 4372 4089 D8F2 FDB1 9C98
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-25-x86_64

After many attempts (pressing enter, pressing "y" and enter, disabling gpgcheck in mock) the best I could get so far was this:

09-24 12:26 root         DEBUG    Running: dnf repoquery -C --whatprovides python-sphinx
09-24 12:26 root         DEBUG    Running: dnf repoquery -C --whatprovides python-six
09-24 12:26 root         DEBUG    Running: dnf repoquery -C --whatprovides python(abi)
09-24 12:26 root         DEBUG    Running: dnf repoquery -q -C --requires --resolve Is this ok [y/N]: Is this ok [y/N]:
09-24 12:26 root         DEBUG    Running: dnf repoquery -C -l Is this ok [y/N]: Is this ok [y/N]: filesystem
09-24 12:26 root         DEBUG    Exception down the road...
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/FedoraReview/review_helper.py", line 237, in run
    self._do_run(outfile)
  File "/usr/lib/python2.7/site-packages/FedoraReview/review_helper.py", line 226, in _do_run
    self._do_report(outfile)
  File "/usr/lib/python2.7/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/python2.7/site-packages/FedoraReview/review_helper.py", line 118, in _run_checks
    writedown=not Settings.no_report)
  File "/usr/lib/python2.7/site-packages/FedoraReview/checks.py", line 378, in run_checks
    run_check(name)
  File "/usr/lib/python2.7/site-packages/FedoraReview/checks.py", line 352, in run_check
    check.run()
  File "/usr/lib/python2.7/site-packages/FedoraReview/check_base.py", line 245, in run
    self.run_on_applicable()
  File "/usr/lib/python2.7/site-packages/FedoraReview/plugins/generic.py", line 1113, in run_on_applicable
    pkg_deps_paths = get_deps_paths(pkg_deps)
  File "/usr/lib/python2.7/site-packages/FedoraReview/plugins/generic.py", line 1103, in get_deps_paths
    paths = deps.list_paths(pkg_deps)
  File "/usr/lib/python2.7/site-packages/FedoraReview/deps.py", line 187, in list_paths
    paths = check_output(cmd)
  File "/usr/lib64/python2.7/subprocess.py", line 574, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['dnf', 'repoquery', '-C', '-l', 'Is this ok [y/N]: Is this ok [y/N]:', 'filesystem']' returned non-zero exit status 1
09-24 12:26 root         ERROR    Exception down the road...(logs in /home/slaanesh/.cache/fedora-review.log)
09-24 12:26 root         DEBUG    Report completed:  272.576 seconds

Comment 4 Simone Caronni 2016-09-24 10:34:04 UTC
Also tried to do the procedure on a fresh new Fedora 25 VM and the results are the same.

Comment 5 Matthias Runge 2016-10-31 09:18:18 UTC
on a different machine, this works for me.

When removing the -C, I get a different error, this issue is more about hiding the real error? 

What I got was:

Completion plugin: Generating completion cache...
Completion plugin: Can't write completion cache: attempt to write a readonly database

Comment 6 Jerry James 2016-11-28 19:08:43 UTC
I've got the fedora-cisco-openh264 repo enabled on my host machine, which is running a freshly installed F-25.  From the host's command line, without fedora-review or mock involved at all:

$ dnf repoquery -C -l glibc
Importing GPG key 0xFDB19C98:
 Userid     : "Fedora 25 Primary (25) <fedora-25-primary>"
 Fingerprint: C437 DCCD 558A 66A3 7D6F 4372 4089 D8F2 FDB1 9C98
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-25-x86_64
Is this ok [y/N]: y
Importing GPG key 0xFDB19C98:
 Userid     : "Fedora 25 Primary (25) <fedora-25-primary>"
 Fingerprint: C437 DCCD 558A 66A3 7D6F 4372 4089 D8F2 FDB1 9C98
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-25-x86_64
Is this ok [y/N]: y
Error: Cache-only enabled but no cache for 'fedora-cisco-openh264'

Running 'dnf makecache' immediately beforehand makes no difference.  However, if I add --disablerepo=fedora-cisco-openh264, then that invocation works.  I edited /etc/yum.repos.d/fedora-cisco-openh264.repo to disable it permanently, and now fedora-review works.  It would be interesting to hear from the dnf developers why this is happening.

Comment 7 Rich Megginson 2017-02-24 22:35:31 UTC
@Jerry James - Thanks for tracking this down - the workaround works for me.

Comment 8 Simone Caronni 2017-02-28 13:51:47 UTC
Same here, thanks! I was getting exactly the same prompts with the GPG keys.

Comment 9 Jerry James 2017-02-28 15:19:31 UTC
Should this bug be reassigned to the dnf component?

Comment 10 Matthias Runge 2017-03-03 07:45:03 UTC
This might be a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1247644

Comment 11 Jerry James 2017-03-03 15:05:04 UTC
Indeed, fedora-cisco-openh264.repo contains the "repo_gpgcheck=1" line mentioned in bug 1247644.  Thanks Matthias.

Comment 12 Pavel Raiskup 2017-06-14 13:51:19 UTC
FWIW, that workaround from comment #6 doesn't work for me:

  $ fedora-review -b 1457929 -m fedora-rawhide-x86_64
  ...
  Warning: failed loading '/etc/yum.repos.d/sclo-postgresql96-testing.repo',
  skipping.
  Warning: failed loading '/etc/yum.repos.d/virtio-win.repo', skipping.
  Error: Cache-only enabled but no cache for 'updates'
  ...

  $ rpm -q mock fedora-review
  mock-1.3.4-1.fc25.noarch
  fedora-review-0.6.1-2.fc25.noarch

Since the fedora-review tool is basically unusable, I'm raising the
priority;  it is almost a year now?  This really complicates getting new
packages into Fedora :(.  Somebody (maybe dnf guys?) should have a look at
the bug.

Comment 13 Fedora End Of Life 2017-07-25 21:24:02 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 14 Fedora End Of Life 2017-08-08 15:08:30 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 15 Tadej Janež 2017-11-03 21:27:35 UTC
This is still an issue on Fedora 26 with:
dnf-2.7.5-1.fc26.noarch
fedora-review-0.6.1-6.fc26.noarch

The work-around from comment #6, namely to disable the fedora-cisco-openh264 repository globally by editing /etc/yum.repos.d/fedora-cisco-openh264.repo, works from me.

I agree with Pavel Raiskup:

(In reply to Pavel Raiskup from comment #12)
> Since the fedora-review tool is basically unusable, I'm raising the
> priority;  it is almost a year now?  This really complicates getting new
> packages into Fedora :(.  Somebody (maybe dnf guys?) should have a look at
> the bug.

and I hope the underlying bug 1247644 gets fixed soon.

Comment 16 Fedora End Of Life 2018-02-20 15:35:58 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 17 Susi Lehtola 2018-09-24 20:29:33 UTC
I am experiencing this problem as well on Fedora 28.

Comment 18 Ben Cotton 2019-05-02 20:51:05 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 19 Ben Cotton 2019-05-28 22:34:15 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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