Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to check a Plesk server for possible issues before the upgrade?
Answer
It can be done using the pre-upgrade checker script.
Follow the instructions below to use it.
-
Use the pre-upgrade checker:
-
To list available upgrades:
# plesk listupgrade
-
To run the pre-upgrade checker for checking the upgrade to the latest available version:
# plesk checkupgrade
-
To run the pre-upgrade checker for checking the upgrade to specific version:
# plesk checkupgrade 18.0.33
-
-
Download the archive with the pre-upgrade checker and unpack it:
-
on Linux:
# wget https://support.plesk.com/hc/en-us/article_attachments/360019939540/preupgrade_checker_linux.tar.gz
# tar -xzvf preupgrade_checker_linux.tar.gz -
on Windows: use the URL https://support.plesk.com/hc/en-us/article_attachments/360019939400/preupgrade_checker_windows.zip and unpack the archive using a preferred tool.
-
-
Use the pre-upgrade checker:
Note: On 32-bit operating systems, use the binary
preupgrade.386
instead ofpreupgrade.x64
.-
on Linux:
-
To list available upgrades:
# ./preupgrade.x64 list
-
To run the pre-upgrade checker for checking the upgrade to the latest available version:
# ./preupgrade.x64
-
To run the pre-upgrade checker for checking the upgrade to specific version:
# ./preupgrade.x64 18.0.33
-
-
on Windows:
Note: On 32-bit operating systems, use the binary
preupgrade_x32.exe
instead ofpreupgrade_x64.exe
.-
To list available upgrades:
.\preupgrade_x64.exe list
-
To run the pre-upgrade checker for checking the upgrade to the latest available version:
.\preupgrade_x64.exe
-
To run the pre-upgrade checker for checking the upgrade to specific version:
.\preupgrade_x64.exe 18.0.33
-
-
Comments
10 comments
This tool is a great option and exactly what i searched for, but i can´t run the pre-upgrade checker as i don´t know the 'plesk-db-admin-password'.
Is there any syntax to use the encrypted password from
/etc/psa/.psa.shadow in this command?
Hello @Sascha,
As I can see, you are using Plesk for Linux.
For Linux, <plesk-db-admin-password> is the same as admin password to access Plesk UI.
Thank you, Ivan, for your quick help.
This was my first guess too, but unfortunately this does not work in my case. Using the same password, which does the job for user admin on servername.ext:8443 results in a message reading
[FATAL_ERROR] [MYSQL ERROR] Given <password> is incorrect. Access denied for user 'admin'@'localhost' (using password: YES)
Ah - i just found a workaround while reading other articles: the encrypted password from /etc/psa/.psa.shadow works when set in "" and with all (not only the first!) $-characters are escaped with a "\"(backslash)-chraracter!
Thank you for providing help!
Hi, @Sascha.
Yes, you are right.
Password for MySQL on plesk for Linux is hashed into /etc/psa/.psa.shadow, so the following command will get you into MySQL without the password:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin
Sascha, use backticks around the cat command:
Documentation should be updated.
@Claudio the documentation has been updated. Thanks for bringing that up to our attention!
The below link doesn't contains Prechecker details for Obsidian version -- http://autoinstall-win.plesk.com/
Please update the url for obsidian Pre-Checker script.
Hello Amarnath Mahato
The Development team is aware of this and has a task to make Obsidian browsable here: http://autoinstall-win.plesk.com/
Also, it will be considered to simplify/automate this procedure in the future.
plesk checkupgrade
Errors found: 0; Warnings found: 0
Product version: Plesk Obsidian 18.0.41.1
OS version: VZLinux 7.9.0 x86_64
Build date: 2022/02/07 23:00
Revision: 8cecdf6536124408249dd8ea2063e3e6f632ba5b
but when i tried to upgrade current version
Exception: Failed to solve dependencies:
plesk-core-utilities-18.0-2.centos.7+p18.0.43.0+t220406.1450.x86_64 requires python3-libs
plesk-service-node-utilities-18.0-2.centos.7+p18.0.43.0+t220406.1450.x86_64 requires python3-libs
ERROR: The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
Visit https://support.plesk.com/ to search for a solution.
exit status 1
and no kb for this
Please sign in to leave a comment.