Author Topic: Can not install CWP 8 on Rockylinux 8 or Almalinux 8  (Read 1021 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« 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 .


Code: [Select]
[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



Offline
***
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #1 on: February 06, 2025, 05:08:37 PM »
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:
Code: [Select]
[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.
« Last Edit: February 06, 2025, 05:12:41 PM by cyberspace »

Offline
*
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #2 on: February 06, 2025, 06:40:39 PM »
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.


Offline
*
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #3 on: February 06, 2025, 08:15:12 PM »
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:
Code: [Select]
[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.

Offline
*
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #4 on: February 06, 2025, 10:22:04 PM »
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

Code: [Select]
[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


Offline
**
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #5 on: February 08, 2025, 12:31:20 AM »
I have the same problem but in a install server (no new install), when I type yum install I have this error message:

Code: [Select]
[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
« Last Edit: February 08, 2025, 12:40:56 AM by Wonder »

Offline
***
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #6 on: February 08, 2025, 11:46:36 AM »
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):

Code: [Select]
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:

Code: [Select]
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.

Offline
**
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #7 on: February 08, 2025, 12:51:44 PM »
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):

Code: [Select]
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:

Code: [Select]
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!
« Last Edit: February 08, 2025, 12:54:12 PM by Wonder »

Offline
*
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #8 on: February 08, 2025, 04:29:31 PM »
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"


Offline
*****
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #9 on: February 08, 2025, 09:15:07 PM »
Best practice is to use an LTS version, so look to version 10.11 or 11.4:
https://endoflife.date/mariadb

Offline
*****
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #10 on: February 08, 2025, 10:33:08 PM »
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%

Offline
***
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #11 on: February 08, 2025, 10:52:01 PM »
Quote
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.




Offline
*****
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #12 on: February 08, 2025, 10:54:18 PM »
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.

Offline
**
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #13 on: February 09, 2025, 11:57:47 AM »
Quote
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

Offline
*****
Re: Can not install CWP 8 on Rockylinux 8 or Almalinux 8
« Reply #14 on: February 09, 2025, 01:58:49 PM »
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.