yum/dnf update hangs at 99% for all repo sources

Issues related to applications and software problems and general support
user132413242
Posts: 11
Joined: 2020/05/28 19:08:25

yum/dnf update hangs at 99% for all repo sources

Post by user132413242 » 2020/05/28 19:17:10

Initially, I thought this was an issue w/just Appstream, but even disabling this repo whenever I run `yum update` or `dnf update` it just hangs at 99% and never completes.

I've tried manually setting the base URL as suggested in other posts or using the commented-out default base URL, it does the same thing. I can't install anything or update, so it's fundamentally useless as an OS at this point.

Suggestions?

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: yum/dnf update hangs at 99% for all repo sources

Post by lightman47 » 2020/05/28 21:06:17

'Yum" in CentOS 8 now calls dnf, as I am led to believe.

Restore ALL the settings you changed back to what they were. Then try it again:

What's in the dnf log (/var/log/dnf.log) when this happens?

user132413242
Posts: 11
Joined: 2020/05/28 19:08:25

Re: yum/dnf update hangs at 99% for all repo sources

Post by user132413242 » 2020/05/28 21:10:24

There are no errors in the dnf log.

edited to remove confusion
Last edited by user132413242 on 2020/05/29 13:41:04, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum/dnf update hangs at 99% for all repo sources

Post by TrevorH » 2020/05/28 21:48:38

You're saying yum works but dnf does not? That is very very weird since they are the same thing.

Code: Select all

[root@centos8 ~]# ls -la /usr/bin/{yum,dnf}
lrwxrwxrwx. 1 root root 5 Dec 19 15:43 /usr/bin/dnf -> dnf-3
lrwxrwxrwx. 1 root root 5 Dec 19 15:43 /usr/bin/yum -> dnf-3
But if yum works then use yum not dnf. They're the same program and work the same as they execute the same code.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

user132413242
Posts: 11
Joined: 2020/05/28 19:08:25

Re: yum/dnf update hangs at 99% for all repo sources

Post by user132413242 » 2020/05/28 22:04:42

No, I said neither work.
but even disabling this repo whenever I run `yum update` or `dnf update` it just hangs at 99% and never completes.

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: yum/dnf update hangs at 99% for all repo sources

Post by lightman47 » 2020/05/28 22:14:53

Umm - your closing line -
For the record, yum still works, dnf is the new package manager, though.
- and still no details to help us help you.

user132413242
Posts: 11
Joined: 2020/05/28 19:08:25

Re: yum/dnf update hangs at 99% for all repo sources

Post by user132413242 » 2020/05/28 22:35:37

What details do you want?

It's a brand new install with literally no changes and it can't download from the mirror list. I have logs now from a new install, which again does exactly the same thing.

It's timing out reaching the mirror sites. I have tried manually curling some of them and the download starts, seems to get most of it downloaded then just hangs.

I have a CentOS 7 machine with a fresh install on the exact same network that works fine.

2020-05-28T22:32:52Z DEBUG DNF version: 4.2.7
2020-05-28T22:32:52Z DDEBUG Command: yum update
2020-05-28T22:32:52Z DDEBUG Installroot: /
2020-05-28T22:32:52Z DDEBUG Releasever: 8
2020-05-28T22:32:52Z DEBUG cachedir: /var/cache/dnf
2020-05-28T22:32:52Z DDEBUG Base command: update
2020-05-28T22:32:52Z DDEBUG Extra commands: ['update']
2020-05-28T22:32:53Z DEBUG repo: downloading from remote: AppStream
2020-05-28T22:33:29Z DEBUG error: Curl error (28): Timeout was reached for http://mirror.centos.org/centos/8/AppSt ... es.yaml.gz [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds] (http://mirror.centos.org/centos/8/AppSt ... es.yaml.gz).
2020-05-28T22:34:06Z DEBUG error: Curl error (28): Timeout was reached for http://mirror.centos.org/centos/8/AppSt ... es.yaml.gz [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds] (http://mirror.centos.org/centos/8/AppSt ... es.yaml.gz).
2020-05-28T22:34:43Z DEBUG error: Curl error (28): Timeout was reached for http://mirror.centos.org/centos/8/AppSt ... es.yaml.gz [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds] (http://mirror.centos.org/centos/8/AppSt ... es.yaml.gz).
2020-05-28T22:34:43Z DEBUG Cannot download 'http://mirror.centos.org/centos/8/AppStream/x86_64/os/': Yum repo downloading error: Downloading error(s): repodata/6f187e24366989c0c03638e1f7a36ca3172a213aa78e46ec2a48c55723922b94-modules.yaml.gz - Cannot download, all mirrors were already tried without success.
2020-05-28T22:34:43Z ERROR Failed to download metadata for repo 'AppStream'
2020-05-28T22:34:43Z DDEBUG Cleaning up.
2020-05-28T22:34:43Z SUBDEBUG
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 552, in load
ret = self._repo.load()
File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 394, in load
return _repo.Repo_load(self)
RuntimeError: Failed to download metadata for repo 'AppStream'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 65, in main
return _main(base, args, cli_class, option_parser_class)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 98, in _main
return cli_run(cli, base)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 114, in cli_run
cli.run()
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1134, in run
self._process_demands()
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 832, in _process_demands
load_available_repos=self.demands.available_repos)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 406, in fill_sack
self._add_repo_to_sack(r)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 136, in _add_repo_to_sack
repo.load()
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 558, in load
raise dnf.exceptions.RepoError(str(e))
dnf.exceptions.RepoError: Failed to download metadata for repo 'AppStream'
2020-05-28T22:34:43Z CRITICAL Error: Failed to download metadata for repo 'AppStream'

user132413242
Posts: 11
Joined: 2020/05/28 19:08:25

Re: yum/dnf update hangs at 99% for all repo sources

Post by user132413242 » 2020/05/28 22:37:29

lightman47 wrote:
2020/05/28 22:14:53
Umm - your closing line -
For the record, yum still works, dnf is the new package manager, though.
- and still no details to help us help you.
I was responding to the previous comment saying to use dnf. I was indicating the yum still works, in general, in CentOS 8.

Neither command successfully downloads an update. Both result it it hanging at 99%:


[root@localhost yum.repos.d]# yum update
CentOS-8 - AppStream 99% [========================================================================-] 917 kB/s | 7.0 MB 00:00 ETA

It just sits there for about 5 minutes and times out.

user132413242
Posts: 11
Joined: 2020/05/28 19:08:25

Re: yum/dnf update hangs at 99% for all repo sources

Post by user132413242 » 2020/05/28 22:38:22

user132413242 wrote:
2020/05/28 22:37:29
lightman47 wrote:
2020/05/28 22:14:53
Umm - your closing line -
For the record, yum still works, dnf is the new package manager, though.
- and still no details to help us help you.
I was responding to the previous comment saying to use dnf. I was indicating the yum still works, in general, in CentOS 8.

Neither command successfully downloads an update. Both result it it hanging at 99%:


[root@localhost yum.repos.d]# yum update
CentOS-8 - AppStream 99% [========================================================================-] 917 kB/s | 7.0 MB 00:00 ETA

It just sits there for about 5 minutes and times out.
I've tried setting a number of baseurls including using the default instead of the mirror, no luck, same problem.

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: yum/dnf update hangs at 99% for all repo sources

Post by lightman47 » 2020/05/28 22:52:47

It seems to be complaining about the network connection/speed. I'd investigate that to start with.

Code: Select all

Timeout ...
Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
Yum = dnf ( the yum command runs dnf).

Post Reply