Control Web Panel
WebPanel => CentOS 8 Problems => Topic started by: Radical Redemption on July 16, 2024, 08:19:00 AM
-
Hello, I recently started to get this error.
######################
Update Server Packages
######################
Errors during downloading metadata for repository 'appstream':
- Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl reload httpd.service
Job for httpd.service failed.
See "systemctl status httpd.service" and "journalctl -xe" for details.
Redirecting to /bin/systemctl reload nginx.service
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl restart httpd.service
Date which backup script is using: 2024-07-15 01:21:27
Also, from the yum manager there is one available CentOs update that can't be updated and it's been like this for more than a month.
(https://i.gyazo.com/35a96be2af59feab744b833c47bba650.png)
(https://i.gyazo.com/c0f9bb1f1b40c2ee4f795b0c0d3ae932.png)
-
CentOS 8 Stream is EOL -- more & more mirrors are being archived & taken offline. Please migrate to AlmaLinux 8 (or another supported OS).
-
Agreed, CentOS Stream 8 went EOL before CentOS 7 actually did.
Mirrors have removed those repos to save space to current OS's.
That's why it was never recommended to run a beta OS like Stream, or an alpha OS like Fedora for production servers.
You can manually edit your repo and see if putting vault. at the beginning works, but it's not guaranteed.
Also see:
https://kb.starburstservices.com/common-issues/could-not-resolve-host-mirrorlist-centos-org-on-centos-stream-8/ (https://kb.starburstservices.com/common-issues/could-not-resolve-host-mirrorlist-centos-org-on-centos-stream-8/)
-
Dayum, I have so much configuration and stuff on this server, migration will probably have to be manual, I guess I will have to start over with a fresh install..
-
Is it possible to upgrade to AlmaLinux from current Centos 8 Stream without losing any configuration and data?
-
https://linuxiac.com/centos-8-to-almalinux-8-migration-guide/ (https://linuxiac.com/centos-8-to-almalinux-8-migration-guide/)
-
Official site & guides to migrate to AlmaLinux.
https://almalinux.org/elevate/ (https://almalinux.org/elevate/)
-
Dayum, I have so much configuration and stuff on this server, migration will probably have to be manual, I guess I will have to start over with a fresh install..
Best is bring up another server, and use the CWP -> CWP Migration Tool.
-
https://linuxiac.com/centos-8-to-almalinux-8-migration-guide/ (https://linuxiac.com/centos-8-to-almalinux-8-migration-guide/)
That is not for Stream tho, will it work?
-
I don't have any direct experience with it, since I am on the CentOS 7 -> AlmaLinux ELevate track. Did you try what Starburst recommended? (Back up your server FIRST -- full image!)
-
Hi,
mirrorlist.centos.org doesn't exists anymore.
From the .repo file:
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
To resolve the issue you can mass update all .repo files:
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
Bye Bye!
-
Hi,
mirrorlist.centos.org doesn't exists anymore.
From the .repo file:
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
To resolve the issue you can mass update all .repo files:
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
Bye Bye!
This helped, thanks a lot!
-
Hi,
mirrorlist.centos.org doesn't exists anymore.
From the .repo file:
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
To resolve the issue you can mass update all .repo files:
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
Bye Bye!
Gracias hermano me ayudó demasiado.
-
Thank. I used these 3 commands
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*
sed -i s/^#baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*