**** Product prep-install started.
Create user 'psaadm' and group 'psaadm'
Group 'psaadm' already exists
Checking for the user 'psaadm'...
User 'psaadm' already exists
Create group 'swkey-data'
Group 'swkey-data' already exists
Trying to add supplementary group 'swkey-data' for user 'psaadm'... already there
Create group 'psaserv'
Group 'psaserv' already exists
Trying to add supplementary group 'psaserv' for user 'psaadm'... already there
Create group 'psacln'
Group 'psacln' already exists
Trying to got legacy variables... done
Trying to save legacy variables... done
Checking that /usr/local/psa/bin/chrootsh registered as login shell...
/usr/local/psa/bin/chrootsh already registered as a login shell
===> Performing safe prep-install database actions
===> Upgrading database
Trying to start service mariadb... active
done
Trying to establish test connection... connected
done
Trying to find psa database... not found
ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'
Trying to backup MySQL database... done
MySQL databases are dumped to /home/plesk_backups/mysql.preupgrade.18.0.41-18.0.41.20220214-141708.dump.gz
ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'
===> Cumulative Plesk database upgrade (revertable stage) has been started.
ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'
Upgrade or repair for 'core' (stage 'prep') is not required
===> Preparing Plesk database upgrade (revertable stage).
Trying to set psa database version to 018000000... ERROR 1049 (42000): Unknown database 'psa'
ERROR 1049 (42000): Unknown database 'psa'
ERROR while trying to execute SQL query, the query was: replace into misc (param,val) values('version', '018000000')
Check the error reason (see log file: /var/log/plesk/install/plesk_18.0.41_installation.log), fix and try again
***** problem report *****
ERROR while trying to execute SQL query, the query was: replace into misc (param,val) values('version', '018000000')
Launching component and product checkers...
Downloading file report-update: 100% was finished.
Downloading file pool/PSA_18.0.41_8197/examiners/py_launcher.sh: 100% was finished.
Downloading file pool/PSA_18.0.41_8197/examiners/save-installation-info.php: 100% was finished.
Downloading file pool/PSA_18.0.41_8197/examiners/php_launcher.sh: 100% was finished.
Components and product check results:
Store installation info
ERROR: An error occurred during performing of installation PREP actions (see log for details). Installation was rolled back.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try to install the packages again.
Visit https://support.plesk.com/ to search for a solution.
[root@ns2 ~]# ./mariadb-10.5-upgrade.sh
Dumping all databases
stopping MariaDB service
creating backup of mysql directory
removing mysql-server package in case it exists
error: package MariaDB-server-10.2.43-1.el7.centos.x86_64
MariaDB-server-10.2.43-1.el7.centos.x86_64 is not installed
Upgrading MariaDB
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.rezopole.net
OVH-metrics/7/x86_64/signature | 833 B 00:00
OVH-metrics/7/x86_64/signature | 2.9 kB 00:00 !!!
OVH-rtm/7/x86_64/signature | 833 B 00:00
OVH-rtm/7/x86_64/signature | 2.9 kB 00:00 !!!
PLESK_17_PHP56 | 2.9 kB 00:00
PLESK_17_PHP72 | 2.9 kB 00:00
PLESK_17_PHP73 | 2.9 kB 00:00
PLESK_17_PHP74 | 2.9 kB 00:00
PLESK_18_0_39-extras | 2.9 kB 00:00
akopytov_sysbench/x86_64/signature | 833 B 00:00
akopytov_sysbench/x86_64/signature | 1.0 kB 00:00 !!!
akopytov_sysbench-source/signature | 833 B 00:00
akopytov_sysbench-source/signature | 1.0 kB 00:00 !!!
base | 3.6 kB 00:00
extras | 2.9 kB 00:00
gf | 2.9 kB 00:00
mariadb | 3.4 kB 00:00
Not using downloaded mariadb/repomd.xml because it is older than what we have:
Current : Sat Feb 12 06:00:39 2022
Downloaded: Sat Feb 12 04:49:40 2022
mysql-connectors-community | 2.6 kB 00:00
mysql-tools-community | 2.6 kB 00:00
mysql57-community | 2.6 kB 00:00
nodesource | 2.5 kB 00:00
ovhkernel | 2.9 kB 00:00
plesk-ext-nodejs | 2.9 kB 00:00
plesk-ext-panel-migrator | 2.9 kB 00:00
updates | 2.9 kB 00:00
Package MariaDB-client-10.4.24-1.el7.centos.x86_64 already installed and latest version
Package MariaDB-compat-10.4.24-1.el7.centos.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-server.x86_64 0:10.2.43-1.el7.centos will be updated
---> Package MariaDB-server.x86_64 0:10.4.24-1.el7.centos will be an update
---> Package MariaDB-shared.x86_64 0:10.4.24-1.el7.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
MariaDB-shared x86_64 10.4.24-1.el7.centos mariadb 112 k
Updating:
MariaDB-server x86_64 10.4.24-1.el7.centos mariadb 26 M
Transaction Summary
================================================================================
Install 1 Package
Upgrade 1 Package
Total download size: 26 M
Downloading packages:
No Presto metadata available for mariadb
MariaDB-server-10.4.24-1.el7.c FAILED
http://yum.mariadb.org/10.5/centos7-amd64/rpms/MariaDB-server-10.4.24-1.el7.cent os.x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
If above article doesn't help to resolve this issue please use https://bugs.cent os.org/.
MariaDB-shared-10.4.24-1.el7.c FAILED
http://yum.mariadb.org/10.5/centos7-amd64/rpms/MariaDB-shared-10.4.24-1.el7.cent os.x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
Error downloading packages:
MariaDB-shared-10.4.24-1.el7.centos.x86_64: [Errno 256] No more mirrors to try .
MariaDB-server-10.4.24-1.el7.centos.x86_64: [Errno 256] No more mirrors to try .
This installation of MariaDB is already upgraded to 10.2.27-MariaDB.
There is no need to run mysql_upgrade again for 10.2.43-MariaDB.
You can use --force if you still want to run mysql_upgrade
Informing Plesk of the changes (plesk sbin packagemng -sdf)
Created symlink from /etc/systemd/system/mysql.service to /usr/lib/systemd/syste m/mariadb.service.
Created symlink from /etc/systemd/system/mysqld.service to /usr/lib/systemd/syst em/mariadb.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[root@ns2 ~]#
#http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
The version is wrong. You cannot use a 10.5 repository to update to a 10.4 version. I see you are using a script for the upgrade, but is the script content correct and have you set the correct MariaDB repository in YUM?
Change repository file /etc/yum.repos.d/mariadb.repo to new MariaDB version:
Also check your script that it refers to the correct new version in all lines.Code:#http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.5/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
vi /etc/yum.repos.d/mariadb.repo
#Download MariaDB Server - MariaDB.org
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
#!/bin/bash
echo "Dumping all databases"
MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin --verbose --all-databases --routines --triggers > /tmp/all-databases.sql 2&> /dev/null
#avoid inconsistency with repo if one exists
if [ -f "/etc/yum.repos.d/MariaDB.repo" ] ; then
mv /etc/yum.repos.d/MariaDB.repo /etc/yum.repos.d/mariadb.repo
fi
#Stopping MariaDB
echo "stopping MariaDB service"
systemctl stop mariadb
echo "creating backup of mysql directory"
cp -v -a /var/lib/mysql/ /var/lib/mysql_backup 2&> /dev/null
echo "removing mysql-server package in case it exists"
rpm -e --nodeps "`rpm -q --whatprovides mysql-server`"
echo "Upgrading MariaDB"
echo "#Download MariaDB Server - MariaDB.org
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1" > /etc/yum.repos.d/mariadb.repo
yum install MariaDB-client MariaDB-server MariaDB-compat MariaDB-shared -y
systemctl restart mariadb
MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql_upgrade -uadmin
systemctl restart mariadb
echo "Informing Plesk of the changes (plesk sbin packagemng -sdf)"
plesk sbin packagemng -sdf
systemctl start mariadb # to start MariaDB if not started
systemctl enable mariadb # to make sure that MariaDB will start after the server reboot automatically
when i selected incremental 809MB Feb 10 i got a view to select wich services to restore? is that the correct way ?