Unable to install Plesk on SUSE 13.x: Error while trying to detect MySQL service name

Created:

2016-11-16 13:23:34 UTC

Modified:

2017-08-08 13:40:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to install Plesk on SUSE 13.x: Error while trying to detect MySQL service name

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Unable to install Plesk on SUSE 13.x, installation fails and the following error is shown:

ERROR while trying to detect MySQL service name

Cause

This is a software issue with internal ID PPPM-3099 and it will be fixed in the one of future Plesk updates.

Resolution

As a workaround, perform these actions:

  1. Create symbolic links:

    # ln -s /usr/sbin/rcmysql /etc/init.d/mysql
    # ln -s /usr/lib/systemd/system/mysql.service /usr/lib/systemd/system/mariadb.service
  2. Check if Plesk is partially installed or not:

    # rpm -qa | grep wpb-core
    # rpm -qa | grep plesk-roundcube
  3. If there is any output (package installed), perform the following actions:

    • Remove Roundcube and Horde webmails:

      # /usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --remove-component horde --remove-component roundcube
    • Remove 'wpb-core' and 'wpb-headers' packages:

      # rpm -e --justdb --nodeps wpb-headers wpb-core
    • Run autoinstaller and install all available updates. Install Horde/Roundcube if required.

  4. If there is no output for step 2, continue Plesk installation using plesk-installer .

  5. If it is a new Plesk installation, and the following error appears after the step 4:

    Trying to check psa database...  Trying to find psa database... DATABASE ERROR!!!
    Database psa found, but version undefined

    then it is necessary drop/rename ' psa ' database on the MySQL server.

Workaround for Plesk installation via Virtuozzo application templates.

If you are deploying Plesk installation inside a Virtuozzo container you need to add symbolic link creation into pre-install script of a corresponding template before container deployment.

e.g. for Plesk 12 on SUSE 13.1 pre-install script will be located in: /vz/template/suse/13.1/x86_64/config/app/pp12/default/pre-install , and the following lines should be added:

#!/bin/sh
# Set maintenance mode for panel
rm -f /var/lock/parallels-panel-upgrade-failure.flag
touch /var/lock/parallels-panel-maintenance-mode.flag

ln -s /usr/sbin/rcmysql /etc/init.d/mysql
ln -s /usr/lib/systemd/system/mysql.service /usr/lib/systemd/system/mariadb.service
Have more questions? Submit a request
Please sign in to leave a comment.