Samuel Desloges
Basic Pleskian
Hello,
I have try to upgrade MariaDB like this:
How to upgrade MySQL 5.5 to 5.6/5.7 or MariaDB 5.5 to 10.0/10.1/10.2 on Linux?
and now I have:
[[controllers.error.error.title]]
500
Plesk\Exception\Database
DB query failed: SQLSTATE[HY000] [1049] Unknown database 'psa'
Type Plesk\Exception\Database
Message DB query failed: SQLSTATE[HY000] [1049] Unknown database 'psa'
File Mysql.php
Line 60
How can I restore the system or correct the problem?
I have find this log:
+ plesk-php72-pear
+ plesk-dovecot-pigeonhole
+ plesk-php72-cli
+ plesk-php72-opcache
+ plesk-mail-pc-driver
+ plesk-php72-fpm
+ plesk-php72-imap
+ wpb-headers
+ plesk-php72-ldap
+ plesk-php72-gd
+ plesk-php72-pdo
+ plesk-php72-dba
+ plesk-service-node-utilities
+ plesk-php72-ioncube-loader
+ plesk-php72-process
+ psa
+ perl-Git
+ plesk-web-hosting
+ plesk-git-http
+ psa-libpam-plesk
+ plesk-php72-xdebug
+ plesk-php72-odbc
+ plesk-php72-mysql
+ plesk-management-node
+ plesk-php72-intl
+ plesk-web-socket
+ psa-updates
+ plesk-php72-soap
+ plesk-php72-enchant
+ plesk-php72-sodium
+ plesk-php72-mbstring
+ plesk-backup-utilities
+ plesk-php72-imagick
+ plesk-dovecot
+ plesk-roundcube
+ psa-logrotate
+ plesk-php72-xmlrpc
+ git
+ plesk-php72-pspell
+ plesk-core-utilities
+ psa-phpmyadmin
+ plesk-resctrl
+ psa-locale-base-en-US
+ plesk-modsecurity-configurator
+ plesk-dovecot-imap-driver
+ psa-mail-driver-common
+ plesk-completion
+ wpb-core
+ plesk-repair-kit
+ plesk-php72-pgsql
+ psa-vhost
+ plesk-php72-bcmath
+ pp-sitebuilder
+ plesk-l10n
+ plesk-php72
+ psa-libxml-proxy
+ plesk-php72-redis
+ plesk-php72-snmp
+ psa-drweb-configurator
+ plesk-php72-xml
+ plesk-php72-tidy
Preparing Your System for Product Installation
===============================================================================
There are 72 packages required for the product to function properly which
were not found in your system.
There are 0 packages that need to be upgraded
in order to install the product.
Available actions:
(F) Go forward
(B) Go back
(Q) Cancel installation
(S) Show the list of packages
Select an action [F/b/q/s]: f
Installing packages
===> Cumulative Plesk database upgrade (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).
**** 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
Trying to got legacy variables... done
Trying to save legacy variables... done
Trying to resolve hostname 'ns397050.ip-94-23-52.eu' and validate its IP address... done
===> Checking for the necessary system accounts
Checking for the system groups and users necessary for admin server...
Group 'psaadm' already exists
Checking for the user 'psaadm'...
User 'psaadm' already exists
Group 'psaserv' already exists
Trying to add supplementary group 'psaserv' for user 'psaadm'... already there
Group 'psacln' already exists
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 /var/lib/psa/dumps/mysql.preupgrade.18.0.21-18.0.21.20200116-142017.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.21_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')
sh: /usr/local/psa/admin/bin/php: No such file or directory
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 Plesk Help Center to search for a solution.
[root@ns397050 ~]# ^C
[root@ns397050 ~]# cd /var/log/plesk/install/
[root@ns397050 install]# ^C
[root@ns397050 install]# plesk_18.0.21_installation.log
-bash: plesk_18.0.21_installation.log: command not found
[root@ns397050 install]# vi plesk_18.0.21_installation.log
START Bootstrapper 19.0.21 prep-install for BASE AT Thu Nov 21 10:53:35 CET 2019
**** 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
Trying to got legacy variables... done
Trying to save legacy variables... done
Trying to resolve hostname 'ns397050.ip-94-23-52.eu' and validate its IP address... done
===> Checking for the necessary system accounts
Checking for the system groups and users necessary for admin server...
Group 'psaadm' already exists
Checking for the user 'psaadm'...
User 'psaadm' already exists
Group 'psaserv' already exists
Trying to add supplementary group 'psaserv' for user 'psaadm'... already there
Group 'psacln' already exists
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... version is 018000000
Trying to backup MySQL database... done
MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.18.0.20-18.0.21.20191121-105336.dump.gz
===> Cumulative APS controller database (apsc) upgrade has been started.
Upgrade or repair for 'apsc' (stage 'prep') is not required
Trying to backup MySQL database... done
MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.apsc.18.0.20-18.0.21.20191121-105337.dump.gz
===> Cumulative upgrade of APS controller database has been completed.
===> Cumulative Plesk database upgrade (revertable stage) has been started.
Upgrade or repair for 'core' (stage 'prep') is not required
===> Preparing Plesk database upgrade (revertable stage).
Trying to set psa database version to 018000000... done
===> Cumulative upgrade of Plesk database (revertable stage) has been completed.
===> Plesk database scheme upgrade has been started.
Applying migrations from: /usr/local/psa/bootstrapper/pp18.0.21-bootstrapper/migrations/
Migration 18.0.21/2019-11-12-07-09-27_add_open_in_new_tab_field_to_panel_notification_messages.php applied
===> Plesk database scheme upgrade has been completed.
Trying to start service mariadb... active
done
Trying to establish test connection... connected
done
**** Product prep-install for BASE completed successfully.
STOP Bootstrapper 18.0.21 prep-install for BASE AT Thu Nov 21 10:53:37 CET 2019
START Bootstrapper 18.0.21 prep-install for fail2ban-configurator AT Thu Nov 21 10:53:38 CET 2019
"plesk_18.0.21_installation.log" 10709L, 632831C
Thanks.
I have try to upgrade MariaDB like this:
How to upgrade MySQL 5.5 to 5.6/5.7 or MariaDB 5.5 to 10.0/10.1/10.2 on Linux?
and now I have:
[[controllers.error.error.title]]
500
Plesk\Exception\Database
DB query failed: SQLSTATE[HY000] [1049] Unknown database 'psa'
Type Plesk\Exception\Database
Message DB query failed: SQLSTATE[HY000] [1049] Unknown database 'psa'
File Mysql.php
Line 60
How can I restore the system or correct the problem?
I have find this log:
+ plesk-php72-pear
+ plesk-dovecot-pigeonhole
+ plesk-php72-cli
+ plesk-php72-opcache
+ plesk-mail-pc-driver
+ plesk-php72-fpm
+ plesk-php72-imap
+ wpb-headers
+ plesk-php72-ldap
+ plesk-php72-gd
+ plesk-php72-pdo
+ plesk-php72-dba
+ plesk-service-node-utilities
+ plesk-php72-ioncube-loader
+ plesk-php72-process
+ psa
+ perl-Git
+ plesk-web-hosting
+ plesk-git-http
+ psa-libpam-plesk
+ plesk-php72-xdebug
+ plesk-php72-odbc
+ plesk-php72-mysql
+ plesk-management-node
+ plesk-php72-intl
+ plesk-web-socket
+ psa-updates
+ plesk-php72-soap
+ plesk-php72-enchant
+ plesk-php72-sodium
+ plesk-php72-mbstring
+ plesk-backup-utilities
+ plesk-php72-imagick
+ plesk-dovecot
+ plesk-roundcube
+ psa-logrotate
+ plesk-php72-xmlrpc
+ git
+ plesk-php72-pspell
+ plesk-core-utilities
+ psa-phpmyadmin
+ plesk-resctrl
+ psa-locale-base-en-US
+ plesk-modsecurity-configurator
+ plesk-dovecot-imap-driver
+ psa-mail-driver-common
+ plesk-completion
+ wpb-core
+ plesk-repair-kit
+ plesk-php72-pgsql
+ psa-vhost
+ plesk-php72-bcmath
+ pp-sitebuilder
+ plesk-l10n
+ plesk-php72
+ psa-libxml-proxy
+ plesk-php72-redis
+ plesk-php72-snmp
+ psa-drweb-configurator
+ plesk-php72-xml
+ plesk-php72-tidy
Preparing Your System for Product Installation
===============================================================================
There are 72 packages required for the product to function properly which
were not found in your system.
There are 0 packages that need to be upgraded
in order to install the product.
Available actions:
(F) Go forward
(B) Go back
(Q) Cancel installation
(S) Show the list of packages
Select an action [F/b/q/s]: f
Installing packages
===> Cumulative Plesk database upgrade (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).
**** 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
Trying to got legacy variables... done
Trying to save legacy variables... done
Trying to resolve hostname 'ns397050.ip-94-23-52.eu' and validate its IP address... done
===> Checking for the necessary system accounts
Checking for the system groups and users necessary for admin server...
Group 'psaadm' already exists
Checking for the user 'psaadm'...
User 'psaadm' already exists
Group 'psaserv' already exists
Trying to add supplementary group 'psaserv' for user 'psaadm'... already there
Group 'psacln' already exists
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 /var/lib/psa/dumps/mysql.preupgrade.18.0.21-18.0.21.20200116-142017.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.21_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')
sh: /usr/local/psa/admin/bin/php: No such file or directory
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 Plesk Help Center to search for a solution.
[root@ns397050 ~]# ^C
[root@ns397050 ~]# cd /var/log/plesk/install/
[root@ns397050 install]# ^C
[root@ns397050 install]# plesk_18.0.21_installation.log
-bash: plesk_18.0.21_installation.log: command not found
[root@ns397050 install]# vi plesk_18.0.21_installation.log
START Bootstrapper 19.0.21 prep-install for BASE AT Thu Nov 21 10:53:35 CET 2019
**** 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
Trying to got legacy variables... done
Trying to save legacy variables... done
Trying to resolve hostname 'ns397050.ip-94-23-52.eu' and validate its IP address... done
===> Checking for the necessary system accounts
Checking for the system groups and users necessary for admin server...
Group 'psaadm' already exists
Checking for the user 'psaadm'...
User 'psaadm' already exists
Group 'psaserv' already exists
Trying to add supplementary group 'psaserv' for user 'psaadm'... already there
Group 'psacln' already exists
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... version is 018000000
Trying to backup MySQL database... done
MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.18.0.20-18.0.21.20191121-105336.dump.gz
===> Cumulative APS controller database (apsc) upgrade has been started.
Upgrade or repair for 'apsc' (stage 'prep') is not required
Trying to backup MySQL database... done
MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.apsc.18.0.20-18.0.21.20191121-105337.dump.gz
===> Cumulative upgrade of APS controller database has been completed.
===> Cumulative Plesk database upgrade (revertable stage) has been started.
Upgrade or repair for 'core' (stage 'prep') is not required
===> Preparing Plesk database upgrade (revertable stage).
Trying to set psa database version to 018000000... done
===> Cumulative upgrade of Plesk database (revertable stage) has been completed.
===> Plesk database scheme upgrade has been started.
Applying migrations from: /usr/local/psa/bootstrapper/pp18.0.21-bootstrapper/migrations/
Migration 18.0.21/2019-11-12-07-09-27_add_open_in_new_tab_field_to_panel_notification_messages.php applied
===> Plesk database scheme upgrade has been completed.
Trying to start service mariadb... active
done
Trying to establish test connection... connected
done
**** Product prep-install for BASE completed successfully.
STOP Bootstrapper 18.0.21 prep-install for BASE AT Thu Nov 21 10:53:37 CET 2019
START Bootstrapper 18.0.21 prep-install for fail2ban-configurator AT Thu Nov 21 10:53:38 CET 2019
"plesk_18.0.21_installation.log" 10709L, 632831C
Thanks.