Control Web Panel
WebPanel => CentOS 8 Problems => Topic started by: leebrimlow on February 06, 2025, 09:56:00 AM
-
Hello, i can not install CWP 8 on Rockylinux 8 or Almalinux 8
i got this error .
[root@ForsanHotelsAlma8GbRam4vCpu src]# sh cwp-el8-latest
cwp-el8-latest: line 83: [: 8.10: integer expression expected
cwp-el8-latest: line 86: [[: 8.10: syntax error: invalid arithmetic operator (error token is ".10")
cwp-el8-latest: line 89: [[: 8.10: syntax error: invalid arithmetic operator (error token is ".10")
CentOS Web Panel repo for Linux 8 - x86_64 1.7 MB/s | 305 kB 00:00
MariaDB 222 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MariaDB 247 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
CentOS Web Panel repo for Linux 8 - x86_64 110 kB/s | 2.9 kB 00:00
Rocky Linux 8 - AppStream 23 kB/s | 4.3 kB 00:00
Rocky Linux 8 - BaseOS 20 kB/s | 4.3 kB 00:00
Rocky Linux 8 - Extras 15 kB/s | 3.1 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 133 kB/s | 12 kB 00:00
MariaDB 170 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MariaDB 244 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MariaDB 252 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Rocky Linux 8 - PowerTools 9.5 MB/s | 3.9 MB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 44 MB/s | 14 MB 00:00
MariaDB 246 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MariaDB 247 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MariaDB 231 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MariaDB 244 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MariaDB 233 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
No match for argument: apr
No match for argument: exim
No match for argument: sendmail
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
MariaDB 220 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
cwp-el8-latest: line 268: mysql: command not found
cwp-el8-latest: line 269: mysql: command not found
PREPARING THE SERVER
##########################
Failed to stop firewalld.service: Unit firewalld.service not loaded.
Failed to disable unit: Unit file firewalld.service does not exist.
#############################################
Please wait... installing web server files...
#############################################
MariaDB 234 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MariaDB 245 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: 2a01:4f8:1c17:e53d::1)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Compiler requires 512 MB RAM + SWAP
Installation FAILED at httpd
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 899 100 899 0 0 4086 0 --:--:-- --:--:-- --:--:-- 4086
sh: line 36: mysql: command not found
sh: line 46: /usr/local/bin/php: No such file or directory
grep: /etc/init.d/httpd: No such file or directory
Received
Please contact CWP support about this issue and include the last few lines from the error:
http://centos-webpanel.com/contact
(https://up6.cc/2025/02/173883567700271.png)
-
MariaDB 10.4 is EOL and not supported anymore. Try to add MariaDB 10.6 repository to /etc/yum.d/ and then make new attempt to install MariaDB.
Create the file:
/etc/yum.repos.d/mariadb.repo
with the following content:
[mariadb]
name = MariaDB
baseurl = https://mirror.mariadb.org/yum/10.6/almalinux8-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
and then try to install CWP again.
-
I'm having the same issue. After editing the repo file, saving it, and try to reinstall, the file reverts back to before it was edited. Is there another file to edit to stop it from reverting?
I use vi to edit, change the information to update it, the :wq. I then go back into the file to make sure it saved with the changes. I try to install again, and it still tried to download MariaDB 10.4, when I check the repo file, the changes I made are gone.
-
I'm having the same issue. After editing the repo file, saving it, and try to reinstall, the file reverts back to before it was edited. Is there another file to edit to stop it from reverting?
I use vi to edit, change the information to update it, the :wq. I then go back into the file to make sure it saved with the changes. I try to install again, and it still tried to download MariaDB 10.4, when I check the repo file, the changes I made are gone.
Update-- I managed to get it to work. edit /usr/local/src/cwp-el8-latest
find the place where it shows the old mariadb 10.4 version and change it to what cyberspace said.
with the following content:
[mariadb]
name = MariaDB
baseurl = https://mirror.mariadb.org/yum/10.6/almalinux8-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
and then try to install CWP again.
-
i also made it work by editing /usr/local/src/cwp-el8-latest
just to be safe , i also changed it on /etc/yum.repos.d/mariadb.repo
i used this code (i have alma 8.1 and amd cpu x64 , depending on your configuration you can create a different one)
They need to fix cwp-el8-latest , cause right now it is unusable
[mariadb]
name = MariaDB
baseurl = https://mirror.23m.com/mariadb/yum/10.11/rhel/8.1/x86_64/
module_hotfixes = 1
gpgkey = https://mirror.23m.com/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1
-
I have the same problem but in a install server (no new install), when I type yum install I have this error message:
[root@srv1 ~]# yum update
MariaDB 51 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mariadb':
- Status code: 404 for http://mirror.mariadb.org/yum/10.4/centos8-amd64/repodata/repomd.xml (IP: xxxxx)
Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@srv1 ~]#
Some iddea for solved in an install cwp version 8?
Thanks
-
There is the same problem.
It seems MariaDB 10.4 is installed on your server. So when you run "yum update" it searches for MariaDB updates in disabled repository. To solve the problem you need to upgrade MariaDB to some actual MariaDB version (10.6, 10.11, etc).
To upgrade to 10.6 do following:
1. In the file /etc/yum.repos.d/mariadb.repo
change "10.4" to "10.6"
2. To update MariaDB run (make backups of the databases before you run update):
service mysql stop
service mariadb stop
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
service mariadb start
mysql_upgrade
3. Make sure all mariaDB binaries are updated:
rpm -qa|grep -i maria
You should get something like:
MariaDB-server-10.6-el8.centos.x86_64
MariaDB-devel-10.6-el8.centos.x86_64
MariaDB-common-10.6-el8.centos.x86_64
MariaDB-compat-10.6-el8.centos.x86_64
MariaDB-client-10.6-el8.centos.x86_64
MariaDB-shared-10.6-el8.centos.x86_64
Makre sure all rpms have "10.6" in their names.
Please note you do it on your own risk. So make backups.
-
There is the same problem.
It seems MariaDB 10.4 is installed on your server. So when you run "yum update" it searches for MariaDB updates in disabled repository. To solve the problem you need to upgrade MariaDB to some actual MariaDB version (10.6, 10.11, etc).
To upgrade to 10.6 do following:
1. In the file /etc/yum.repos.d/mariadb.repo
change "10.4" to "10.6"
2. To update MariaDB run (make backups of the databases before you run update):
service mysql stop
service mariadb stop
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
service mariadb start
mysql_upgrade
3. Make sure all mariaDB binaries are updated:
rpm -qa|grep -i maria
You should get something like:
MariaDB-server-10.6-el8.centos.x86_64
MariaDB-devel-10.6-el8.centos.x86_64
MariaDB-common-10.6-el8.centos.x86_64
MariaDB-compat-10.6-el8.centos.x86_64
MariaDB-client-10.6-el8.centos.x86_64
MariaDB-shared-10.6-el8.centos.x86_64
Makre sure all rpms have "10.6" in their names.
Please note you do it on your own risk. So make backups.
Ok, thanks for your reply.
But I have a doubt, in reply 3 of this thread, change also in /usr/local/src/cwp-el8-latest like the line of the repository, its good iddea or not important?
Ahh, you suggest MariaDB 10.6, 10.11 or other version?
Thanks a lot!
-
Hi,
It is save to use 11.6.2 version ?
There is the same problem.
It seems MariaDB 10.4 is installed on your server. So when you run "yum update" it searches for MariaDB updates in disabled repository. To solve the problem you need to upgrade MariaDB to some actual MariaDB version (10.6, 10.11, etc).
To upgrade to 10.6 do following:
1. In the file /etc/yum.repos.d/mariadb.repo
change "10.4" to "10.6"
-
Best practice is to use an LTS version, so look to version 10.11 or 11.4:
https://endoflife.date/mariadb (https://endoflife.date/mariadb)
-
You can use 11.6.x, but it only has a 1 year life, so at that point you would need to update to 11.7.x, etc.
I've only personally tested up to 11.4.x
And then they made some changes that I'm not sure CWP would like 100%
-
It is save to use 11.6.2 version ?
I am not sure if 11.6.2 is safe to use because I haven't used it.
Starburst says MariaDB 11.4.x works well with CWP. However if you (your sites/projects) don't have some special requirements to use MariaDB 11.4 or 11.6 then I don't recommend to leap from 10.4 to 11.4 (11.6). It is better to use some older MariaDB version and use LTS version following the overseer's recommendation.
-
I agree with @cyberspace
Stick with 10.11, which is a LTS.
Unless you have a specific need for a feature in a higher version.
-
It is save to use 11.6.2 version ?
I am not sure if 11.6.2 is safe to use because I haven't used it.
Starburst says MariaDB 11.4.x works well with CWP. However if you (your sites/projects) don't have some special requirements to use MariaDB 11.4 or 11.6 then I don't recommend to leap from 10.4 to 11.4 (11.6). It is better to use some older MariaDB version and use LTS version following the overseer's recommendation.
And what version LTS you recommended? 10.11?
We made the change with same instructions in your reply 6?
Thanks and regards
-
Yes, 10.11 is the conservative recommendation, supported for several more years. Only use 11.4 LTS if you have some specific need for some new feature the 11.x branch offers.
-
Quick Fix for CWP Installer (CentOS 8/stream, Alma Linux 8, and Rocky Linux 8 ) :)
cd /usr/local/src
wget http://centos-webpanel.com/cwp-el8-latest
sed -i "s/10.4/10.6/" cwp-el8-latest
sh cwp-el8-latest
It will install CWP with MariaDB 10.6 then you can update MariaDB to more recent release.
-
Yes, 10.11 is the conservative recommendation, supported for several more years. Only use 11.4 LTS if you have some specific need for some new feature the 11.x branch offers.
Ok, thanks,
This night, I will be made the change to 10.11, I suppose the same instructions that are in reply 6 of this thread.
Thanks.
PS: Sorrys for my bad english
-
There is the same problem.
It seems MariaDB 10.4 is installed on your server. So when you run "yum update" it searches for MariaDB updates in disabled repository. To solve the problem you need to upgrade MariaDB to some actual MariaDB version (10.6, 10.11, etc).
To upgrade to 10.6 do following:
1. In the file /etc/yum.repos.d/mariadb.repo
change "10.4" to "10.6"
2. To update MariaDB run (make backups of the databases before you run update):
service mysql stop
service mariadb stop
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
service mariadb start
mysql_upgrade
3. Make sure all mariaDB binaries are updated:
rpm -qa|grep -i maria
You should get something like:
MariaDB-server-10.6-el8.centos.x86_64
MariaDB-devel-10.6-el8.centos.x86_64
MariaDB-common-10.6-el8.centos.x86_64
MariaDB-compat-10.6-el8.centos.x86_64
MariaDB-client-10.6-el8.centos.x86_64
MariaDB-shared-10.6-el8.centos.x86_64
Makre sure all rpms have "10.6" in their names.
Please note you do it on your own risk. So make backups.
Hi,
With this instructions, I can upgrade from 10.4 to 10.6, but not to 10.11, always I have error in
yum -y install MariaDB-server
First, my /etc/yum.repos.d/mariadb.repo contain:
# MariaDB 10.4 CentOS repository list - created 2020-06-23 23:26 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
If also change to 10.6 work fine, but if I change to 10.11 not work, url not exist, I need change to:
baseurl = https://mirror.mariadb.org/yum/10.11/almalinux8-amd64/
But with this change, also, I can upgrade from 10.4 to 10.11, I have same error.
First, I need upgrade to 10.6, and then to 10.11, with this, yes, all work fine with new version.
Indicate this for if other person have the same problem.
Thanks for your indications.
PS : Sorry for my bad english
-
Change the ending "centos8-amd64" of the line:
baseurl = http://yum.mariadb.org/10.4/centos8-amd64
to "almalinux8-amd64" if you use Alamalinux 8 or "rockylinux8-amd64" for Rockylinux 8.
Then you will be able to upgrade MariaDB to more recent version.
-
Change the ending "centos8-amd64" of the line:
baseurl = http://yum.mariadb.org/10.4/centos8-amd64
to "almalinux8-amd64" if you use Alamalinux 8 or "rockylinux8-amd64" for Rockylinux 8.
Then you will be able to upgrade MariaDB to more recent version.
It has worked....
My original /etc/yum.repos.d/mariadb.repo:
# MariaDB 10.4 CentOS repository list - created 2020-06-23 23:26 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
I was always changing to:
[mariadb]
name = MariaDB
baseurl = https://mirror.mariadb.org/yum/10.11/almalinux8-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
And it didn't work for me, I had to install 10.6 first and then 10.11.
Now I made the change in /etc/yum.repos.d/mariadb.repo like this:
# MariaDB 10.4 CentOS repository list - created 2020-06-23 23:26 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.11/almalinux8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
And it worked, I upgraded MariaDB from 10.4 to 10.11.
Maybe it has something to do with the "module_hotfixes=1" line?
I don't think so, but...
It worked...
Thanks
-
Sorry, but the first and last examples of mariadb.repo file look similar for me. I don't see difference.
Anyway, all three examples look good and should allow to upgrade/install MariaDB 10.11.
-
Sorry, but the first and last examples of mariadb.repo file look similar for me. I don't see difference.
Anyway, all three examples look good and should allow to upgrade/install MariaDB 10.11.
Sorry, you're right. I did the copy paste wrong, it's already modified.
The first (and original) mariadb.repo is now the same as the original one, the difference:
Original:
baseurl = http://yum.mariadb.org/10.4/centos8-amd64
New:
baseurl = http://yum.mariadb.org/10.11/almalinux8-amd64
As you mentioned, changing it to ..../almalinux8-amd64 which is my system.
With that line, you can change from 10.4 to 10.6, but until you put that line I was putting:
baseurl = https://mirror.mariadb.org/yum/10.11/almalinux8-amd64/
And although the theory says yes, this one didn't let me jump from 10.4 to 10.11
With that line I could only do it if I first installed 10.6, then I could jump to 10.11.
The only difference; module_hotfixes=1
but I don't think that has any relevance in this regard.
-
This could be the case:
https://serverfault.com/questions/1016837/why-isnt-repository-priority-working-in-yum-dnf-in-centos-8
-
This could be the case:
https://serverfault.com/questions/1016837/why-isnt-repository-priority-working-in-yum-dnf-in-centos-8
Yes, I think the same thing.
Also, in that link they talk about the difference between mariadb and MariaDB, that's exactly what happened to me, I was searching for MariaDB and it told me mariadb (I'm speaking from memory), so yes, I think the cause is the information in the link you mention.
-
For correction please see:
https://forum.centos-webpanel.com/installation/alma-linux-8-installation-db-error-solution/ (https://forum.centos-webpanel.com/installation/alma-linux-8-installation-db-error-solution/)
-
This updated installer fixes the old installer.
https://kb.starburstservices.com/uncategorized/updated-cwp-installer-script-for-almalinux-8-with-mariadb-10-6/ (https://kb.starburstservices.com/uncategorized/updated-cwp-installer-script-for-almalinux-8-with-mariadb-10-6/)
Any comment or feedback, let me know.