Author Topic: Can not install CWP 8 on Rockylinux 8 or Almalinux 8  (Read 87 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