Bug 1206878

Summary: DNF hangs when downloading last package
Product: [Fedora] Fedora Reporter: Mikhail Koviazin <mk.43.ecko>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: Emmanuel.goldstien, jsilhan, leif.temp, mluscon, packaging-team-maint, pnemade, rholy, richardfearn, thomas.defranc, tim.lauridsen
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-12 12:18:07 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:
Bug Depends On: 1196629    
Bug Blocks:    
Attachments:
Description Flags
Screenshot of the console with dnf update -v. We can see no errors, but dnf hanged. It can show me this state all over the day until I'll do ^C none

Description Mikhail Koviazin 2015-03-29 09:21:24 UTC
Created attachment 1007941 [details]
Screenshot of the console with dnf update -v. We can see no errors, but dnf hanged. It can show me this state all over the day until I'll do ^C

Description of problem: When I try to update system via "dnf update" or install sth via "dnf install package" dnf always hangs when download the last package. I've seen this before, it was reproducing rarely, but now I see that it hangs every time.


Version-Release number of selected component (if applicable):


How reproducible: always


Steps to Reproduce:
1. dnf update or dnf install package with several dependent packages
2. wait until dnf download N - 1 packages
3.

Actual results:


Expected results:


Additional info:

Comment 1 Michal Luscon 2015-03-30 07:35:54 UTC
Hi,

could you please try to repeat the download after dnf clean all and let us know if it helps?

Comment 2 Mikhail Koviazin 2015-03-30 08:15:03 UTC
(In reply to Michal Luscon from comment #1)
Hi,
> Hi,
> 
> could you please try to repeat the download after dnf clean all and let us
> know if it helps?

sure! I'll try to do this tonight. I'd like to add, as an addition, that after termination dnf via ^C and restarting it by repeating last command (update or install) it downloads last package successful always.

Comment 3 Mikhail Koviazin 2015-03-30 19:16:18 UTC
(In reply to Michal Luscon from comment #1)
Hi again,

I tried to do dnf update after dnf clean all and it hanged updating metadata:

[ecko@localhost ~]$ sudo dnf update
Fedora 21 - x86_64                                                                     33% [============================                                                         ]  93 kB/s |  13 MB     04:48 ETA

I think it could reproducing because of my slow net connection (1 Mbit/s PPPoE). But I don't know why it just hangs without any error.

Comment 4 Honza Silhan 2015-04-02 14:07:54 UTC
Thanks weird. At some time (timeout conf option) it should at least cancel connection.

Comment 5 Michal Luscon 2015-04-02 14:39:00 UTC
Could you please attach a tcp dump if there is any network communication while
dnf is stuck?

Comment 6 Mikhail Koviazin 2015-04-02 15:34:25 UTC
(In reply to Michal Luscon from comment #5)
> Could you please attach a tcp dump if there is any network communication
> while
> dnf is stuck?

Err, I'll try, but I don't know if I could do this tonight. Today I've already updated (with another hangs when download the last package), but I'll see what can I do to reproduce. If I could not do it tonight, I'll do it tomorrow.

Comment 7 Mikhail Koviazin 2015-04-28 05:12:12 UTC
I'm sorry for that delay.
A few days earlier I've updated my Fedora to 22 and since than I cannot reproduce this bug. So please mark it as closed for now.

Comment 8 Michal Luscon 2015-04-28 07:13:39 UTC
Ok, if you encounter this issue again, please rerun dnf with environment variable LIBREPO_DEBUG=1 for detailed output.

Comment 9 Emmanuel.goldstien 2015-05-26 21:16:09 UTC
I had this same issue with a fresh install of fedora 22 KDE. Dnf hung on the last package, no network activity and no CPU either.

Comment 10 Michal Luscon 2015-05-27 10:24:39 UTC
Are you able to reproduce it with LIBREPO_DEBUG=1 set?

Comment 11 Emmanuel.goldstien 2015-05-27 18:41:07 UTC
It did not replicate.  Similar to the above, once I ended the first process and retried the update, it ran properly through and has not been an issue since.  I will keep an eye out for it in the future.

Comment 12 Leif Liddy 2015-05-31 15:50:17 UTC
This is a very real issue, just intermittent in nature. Today, I tried installing wine (dns install wine). For the first three attempts, dnf hung up on the last package. Before the fourth attempt I set LIBREPO_DEBUG=1, it ran successfully on that attempt.

Comment 13 Leif Liddy 2015-05-31 15:52:40 UTC
This is a very real issue, just intermittent in nature. Today, I tried installing wine (dnf install wine). For the first three attempts, dnf hung up on the last package. Before the fourth attempt I set LIBREPO_DEBUG=1, it ran successfully on that attempt.

Comment 14 Michal Luscon 2015-06-12 12:18:07 UTC
We have finally figured out that this is probably caused by wrongly set librepo minrate value. Please try out new dnf-1.0.1-2 and if the problem persists, feel free to reopen the bugzilla report.

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