Plesk upgrade or update fails: Access is denied. (Error code 5) at StartService 'PleskSQLServer'

Created:

2017-05-02 20:01:14 UTC

Modified:

2017-08-18 15:09:14 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Plesk upgrade or update fails: Access is denied. (Error code 5) at StartService 'PleskSQLServer'

Applicable to:

  • Plesk Onyx 17.5 for Windows

Note: This article has the reference to the issue with the fix available:

  • #PPPM-6138 "If Plesk data directory and Plesk installation directory were different, upgrading from Plesk 17.0 to a later version failed with an “Access is denied” message."
    Fixed in:
Please consider updating your server:

Symptoms

Plesk upgrade or update fails with the following message:

Upgrading Plesk SQL server... 
MSI: Error! Critical action 'Upgrade data of MySQL Server...' failed:
Command "C:\Program Files (x86)\Parallels\Plesk\admin\bin\mysqlmng_adm.exe" --upgrade-server-data "--initial-ver=5.5" "--target-ver=5.5.54" failed with code 1. Output: Stop service...
Removing InnoDB log files...
Start service...
Access is denied. (Error code 5) at StartService 'PleskSQLServer'
at (service::startService line 211)
at startService(PleskSQLServer)(service::startService line 274)
at execute console command --upgrade-server-data(vconsoleapp::start line 122)
at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin\mysqlmng_adm.exe" --upgrade-server-data "--initial-ver=5.5" "--target-ver=5.5.54"(vconsoleapp::run line 139)
at (CmdAction::Commit line 393)
at Execute action Upgrade data of MySQL Server...(executeList line 271)
Failed to install 'C:\ParallelsInstaller\parallels\PANEL-WIN_17.5.3\dist-msi-Microsoft-2003-i386\mysql-admin.msi': Fatal error during installation. (Error code 1603)
Error: The installation of the package 'mysql' failed with code 1603. (upgrade: Upgrading Plesk SQL server...)

Plesk data directory and Plesk installation directory are different.

Cause

Plesk bug # PPPM-6138 that is fixed in Plesk Onyx 17.5 MU#5.

Resolution

As a workaround, create any empty file in %plesk_dir%\MySQL directory, for example file.txt .

After it, the upgrade or update can be completed by running the following command:

plesk installer --select-release-current --reinstall-patch --upgrade-installed-components
Have more questions? Submit a request
Please sign in to leave a comment.