Page 1 of 2

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

Posted: 2020/05/28 19:17:10
by user132413242
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?

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

Posted: 2020/05/28 21:06:17
by lightman47
'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?

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

Posted: 2020/05/28 21:10:24
by user132413242
There are no errors in the dnf log.

edited to remove confusion

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

Posted: 2020/05/28 21:48:38
by TrevorH
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.

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

Posted: 2020/05/28 22:04:42
by user132413242
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.

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

Posted: 2020/05/28 22:14:53
by lightman47
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.

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

Posted: 2020/05/28 22:35:37
by user132413242
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'

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

Posted: 2020/05/28 22:37:29
by user132413242
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.

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

Posted: 2020/05/28 22:38:22
by user132413242
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.

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

Posted: 2020/05/28 22:52:47
by lightman47
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).