Upgrading Plesk
Updating/Upgrading Plesk
Plesk 9 GUI: Main Menu - Home > Help & Support - Updates > Click one of the Release Names
Plesk 10 and 11 GUI: Server Management > Tools & Settings > Panel > Update and Upgrades > Install or Upgrade Product (or) Server Management > Tools & Utilities > Panel > Updates
To upgrade/update/patch the panel via SSH (Linux) please use:
/opt/psa/admin/bin/autoinstaller
or
/usr/local/psa/admin/bin/autoinstaller
For Plesk 10 or 11 on Windows please use one of the following options. In Command Prompt do:
cd C:\Program Files (x86)\Parallels\Plesk\admin\bin\ ai.exe
If you use Plesk 9 + Windows 2003, you need to download ai.exe
ai.exe guide
The autoinstaller can be downloaded here under option two.
Errors
Old versions of Ubuntu may need this.
9.0.1 to 9.2.0
Go from Plesk 9.0.1 to 9.2.1 instead if this error appears: File downloading PSA_9.2.0/plesk-9.2.0-ubt6.06-i386.inf3: ERROR: Failed to download the package http://autoinstall.plesk.com/PSA_9.2.0/plesk-9.2.0-ubt6.06-i386.inf3: The requested URL returned error: 404
9.2 to 9.3
It is advised to skip 9.3 and go straight from 9.2 to 9.5 otherwise you may get this error: Couldn't configure pre-depend psa-mail-driver-common for psa-mail-qc-driver, probably a dependency cycle
9.2.3 to 9.5.x
This should be fine (try 9.5.4) but it may fail and say the license key is invalid. If so run:
/usr/local/psa/admin/sbin/autoinstaller --select-release-id PLESK_9_5_4 --upgrade-installed-components --ignore-key-errors
Autoinstaller/updates missing 9.5.4
Check OS and Plesk version as well as architecture (i386 or x86_64), then download the appropriate auto-installer from:
http://mirrors.webfusion.com/plesk-installers/
For example for Ubuntu 8.04 with Plesk 9.5.4, on a 64bit OS (x86_64), run:
wget http://mirrors.webfusion.com/plesk-installers/parallels_installer_v3.4.1_build090204.18_os_Ubuntu_8.04_x86_64 chmod +x parallels_installer_v3.4.1_build090204.18_os_Ubuntu_8.04_x86_64 apt-get update ./parallels_installer_v3.4.1_build090204.18_os_Ubuntu_8.04_x86_64
On the screen with "1 of 43 components selected Please select the components of Parallels Plesk Panel you want to install:" select option 2 for Plesk Updater.
Installing packages via autoinstaller
If you get the following message on 9.5.4 ERROR: autoinstaller: Error in execution of DEBIAN_FRONTEND=noninteractive it is advised to run apt-get -f install . This will likely fail so cat the temporary log it creates. Then try installing the components (e.g. Horde webmail) individually.
If you get the following message in general /opt/psa/bootstrapper/pp10.13.4-bootstrapper/bootstrapper.sh: 10192: perl: Permission denied /opt/psa/bootstrapper/pp10.13.4-bootstrapper/bootstrapper.sh: 1: perl: Permission denied sh: /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl: Permission denied
Ensure /usr/bin/perl has 755 permissions.
10.0.0 to 10.4.4
Upgrading to Plesk 10.4.4 with lose subdomains and custom DNS/SPF records, as seen here.
It is common to upgrade from 10 to 10.4.4 because it may have a locked IP address set to Exclusive.
10.3.1. to 10.4.4
Components validation detected at least one important issue: Parallels Panel pre-upgrade check... PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0 PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0 PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
These can be ignored. You can replace # with // if you wish to remove the Deprecated messages and turn safe_mode off to get rid of the warning. The below is more important and can be read up on via the link but can still be ignored.
WARNING: Much CPU time can be consumed if default value of "Interval" setting used in /etc/sw-collectd/collectd.conf . Please check http://kb.parallels.com/en/113711 for details.
Install failed
Installation or upgrade failed. For more information, log in as root to the server over SSH and view the file /tmp/autoinstaller3.log. To remove this notice, remove the file /var/lock/parallels-panel-upgrade-failure.flag from the server.
This is common on CentOS servers with the EPEL repository installed:
tail -38 /tmp/autoinstaller3.log
WARNING: Third-party Yum repository 'epel' is enabled, installation may fail.
"Since you use one or more 3rd-party repos (say, atomic), be careful when installing different package versions from different repos as this may lead to installation failures. For example, you may encounter a problem if you first install PHP from a 3rd-party repo and then upgrade it using the Parallels repo. To avoid such situations, install and upgdare packages from the same repo."
Traceback (most recent call last): File "/usr/local/psa/bin/yum_install", line 194, in <module> main() File "/usr/local/psa/bin/yum_install", line 189, in main installer.perform(to_install, opts.remove) File "/usr/local/psa/bin/yum_install", line 149, in perform raise Exception("Scriptlet or other non-fatal errors occurred during transaction.") Exception: Scriptlet or other non-fatal errors occurred during transaction. ~emptyFileFetcher: get file (~empty)/PSA_11.0.9/plesk-11.0.9-cos6-x86_64.inf3 FileFetcher: get file (~empty)/SITEBUILDER_11.0.10/sitebuilder-11.0.10-rhall-all.inf3 FileFetcher: get file (~empty)/BILLING_11.0.9/billing-11.0.9-rhall-all.inf3 FileFetcher: get file (~empty)/NGINX_1.3.0/nginx-1.3.0-cos6-x86_64.inf3 Execute command /usr/local/psa/admin/bin/send-error-report install Error: Failed to run the Yum utility. The Yum utility failed to install the required packages.
Move or remove the repo files:
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.bak
or
rm /etc/yum.repos.d/epel.repo
10.4.4 Micro Updates (MU)
Running rpm_check_debug Exception: Scriptlet or other non-fatal errors occurred during transaction. ERROR: Failed to run the Yum utility. The Yum utility failed to install the required packages. Attention! Your software might be inoperable. Please, contact product technical support.
To fix, add a random Plesk module, update again.
Failed to update Panel
Failed to update Panel. You can send the update log to Parallels support to try fixing the issue. View the update log.
WARNING: This fix may not work, please be careful! Use at your own risk
For Ubuntu 12:
...
This is most common on CentOS servers.
"Failed to update Panel. You can send the update log to Parallels support to try fixing the issue. View the update log."
Internal error: File specified by 489bb98d-0509-247e-59d2-05cd598f9b6b was not found
Message File specified by 489bb98d-0509-247e-59d2-05cd598f9b6b was not found
File LogFile.php
Line 36
Type Smb_Exception_NotFound
You can either disable the EPEL repository by doing:
cd /etc/yum.repos.d mv epel.repo epel.repo_back ; mv epel-testing.repo epel-testing.repo.back
Then do:
mysql -uadmin -p`cat /etc/psa/.psa.shadow`; use psa delete from longtasks where type="panel-update";
And run the autoinstaller: /usr/local/psa/admin/bin/autoinstaller
Or run:
/etc/init.d/psa start yum install php #or yum update php /usr/local/psa/admin/bin/autoinstaller
If you get the following message:
Doing restart of Parallels Installer... BUSY: Update operation was locked by another update process.
Find the service that is running and then kill the process that is running the autoinstaller:
ps aux | grep PMM kill ProcessID ps aux | grep install kill ProcessID
Then:
run-parts /etc/cron.daily/ /etc/init.d/psa stop /etc/init.d/psa start run-parts /etc/cron.daily/ /etc/init.d/psa stop /etc/init.d/psa start
It should then say "Panel was successfully updated." The below file should not be there any more if the issue is properly resolved but if necessary do:
mv /var/lock/parallels-panel-upgrade-failure.flag /var/lock/parallels-panel-upgrade-failure.flag.old
Do not upgrade to Plesk 10.4.4 on Ubuntu 8.04
Otherwise you will get this error [MySQL][ODBC 3.51 Driver][mysqld-5.0.95-0ubuntu1]Memory allocation error when logging in
http://forum.parallels.com/showthread.php?t=258020
http://kb.parallels.com/113620
http://www.berlihost.de/mysql5bug.php
The ODBC fix isn't available for Ubuntu 8. The last guide says it will downgrade MySQL but be careful if you attempt this.
Note: As of 02/05/13 we have had some servers upgrade successfully to Plesk version 10.4.4 on Ubuntu 8.04 however ensure your repositories are correct if you are going to attempt
Other
FATAL_ERROR: [MYSQL ERROR] Unable to execute query. Error: Table 'psa.apsContexts' doesn't exist
Fix: http://forum.parallels.com/showthread.php?p=621428#post621428
BUSY: Update operation was locked by another update process.
ps aux | grep auto kill <process ID>
/var/lib/dpkg/info/psa-mod-fcgid-configurator.prerm: line 9: `}' dpkg: warning - old pre-removal script returned error exit status 2
E: Sub-process /usr/bin/dpkg returned an error code (1)
cd /var/lib/dpkg/info/psa-mod-fcgid-configurator ; ls -lah
Edit the file or the equivalent on Line 9.
Enable/Disable automatic Plesk updates
Server Management > Tools & Utilities > Panel > Update and Upgrade Settings > Tick/un-tick "Automatically download and install updates..."
Cron runs via SSH but not Plesk
Run this if the server is 10.1+:
/usr/local/psa/bin/server_pref -u -crontab-secure-shell "/bin/sh"
Check when Plesk was updated/upgraded
To check when Plesk was last upgraded/updated and to which version, do the following in SSH:
mysql -uadmin -p`cat /etc/psa/.psa.shadow`; use psa select * from upgrade_history;