Bug 986237 - downloading the updates repo hangs and errors out recently
downloading the updates repo hangs and errors out recently
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: librepo (Show other bugs)
19
Unspecified Unspecified
unspecified Severity urgent
: ---
: ---
Assigned To: Tomas Mlcoch
Fedora Extras Quality Assurance
:
: 986419 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-19 05:50 EDT by Ales Kozumplik
Modified: 2014-09-30 19:41 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-12-17 04:46:03 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ales Kozumplik 2013-07-19 05:50:17 EDT
Tested with the latest librepo HEAD on my local F19 machine and with librepo-0.0.4 on a virtual F19.

The following first hangs then errors out with librepo.LibrepoException: (17, 'Bad checksum', None).

#! /usr/bin/python

import librepo

MIRROR="""https://mirrors.fedoraproject.org/metalink?repo=updates-released-f19&arch=x86_64"""
DESTDIR="./"

if __name__ == "__main__":
    h = librepo.Handle()
    h.destdir = DESTDIR
    h.interruptible = True
    # h.url = URL
    h.repotype = librepo.LR_YUMREPO
    h.mirrorlist = MIRROR
    h.yumdlist = ["primary", "filelists", "prestodelta", "group_gz"]
    # h.local = True
    h.perform(librepo.Result())
    assert(isinstance(h.mirrors, list))

What is going on? If I use the regular fedora librepo it gets downloaded within a second. Please treat this high prio since if it is not isolated to my systems for some reason (?) all DNF users on f19 are getting hitten by it as we speak.
Comment 1 Ales Kozumplik 2013-07-22 01:43:31 EDT
*** Bug 986419 has been marked as a duplicate of this bug. ***
Comment 2 Tomas Mlcoch 2013-07-22 04:38:40 EDT
Hi, I cannot reproduce the issue. I've tried:
* librepo v0.0.4 from f19
* librepo v0.0.5 from rawhide
* librepo HEAD from the git
No success.

I suspect that the cause could be a badly synchronized mirror and the "Bad checksum" error was legitimate.

What do to if this happens next time:
In current released versions of Librepo, there is no easy way to get detailed (debug) output. So the best what you can do is the report the issue to me (add comment to this bug, open the new one, ping me on irc, email, etc).

In the next version of librepo (probably the 0.0.6) there will be a detailed error messages + simple way to set a own debug handler to catch all librepo debug messages.
Comment 3 Tomas Mlcoch 2013-12-17 04:46:03 EST
Closing this bug, because it was related to an ancient version of librepo.
Currently there is librepo 1.5.0 in f20 and 1.0.0 in f19.
This new versions have a much better error reporting capabilities and fixed a lot of, most likely, related bugs.

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