Unable to login to Plesk after upgrade: Unable to set up default locale

Refers to:

  • Plesk for Linux
  • Plesk

Created:

2016-11-16 12:51:29 UTC

Modified:

2016-12-21 19:23:15 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to login to Plesk after upgrade: Unable to set up default locale

For Windows version of this KB see the article #213910785 .

Symptoms

After failed upgrade the following error appears during an attempt to login to Plesk:

ERROR: PleskFatalException
Unable to create Session object: Unable to set up default locale: default locale does not exist or undefined.

0: common_func.php3: 95
psaerror (string 'Unable to create Session object: Unable to set up default locale: default locale does not exist or undefined.')
1: auth.php3: 198

Cause

Due to locale folder permissions the locale that was previously setup as default got unregistered from the Plesk database after the upgrade.

Resolution

To resolve the issue follow the steps bellow:

  1. Re-set the default locale and the locale for admin user with the use of server_pref and admin command line utilities respectively as shown below:

    # /usr/local/psa/bin/server_pref --set-default -locale en-US
    # /usr/local/psa/bin/admin -u -locale en-US
  2. Verify that locales and en-US folders have proper permissions:

    # ls -ld /usr/local/psa/admin/plib/locales/ /usr/local/psa/admin/plib/locales/en-US/
    drwxr-xr-x 23 root root 4096 Jun 2 01:21 /usr/local/psa/admin/plib/locales/
    drwxr-xr-x 2 root root 4096 Jun 16 00:29 /usr/local/psa/admin/plib/locales/en-US/
  3. Make sure the locales folder contains data:

    ls -la /usr/local/psa/admin/plib/locales/en-US/
    total 1272
    drwxr-xr-x 2 root root 4096 Dec 18 01:11 .
    drwxr-xr-x 23 root root 4096 Jul 22 23:32 ..
    -rw-r--r-- 1 root root 256672 Dec 15 15:53 common_cli_messages_en-US.php
    -rw-r--r-- 1 root root 128 Dec 15 15:53 common_cli_messages_en-US.php.signature
    -rw-r--r-- 1 root root 443485 Dec 18 01:11 common_messages_en-US.php
    -rw-r--r-- 1 root root 128 Dec 15 15:53 common_messages_en-US.php.signature
    -rw-r--r-- 1 root root 125388 Dec 15 15:53 conhelp_en-US.php
    -rw-r--r-- 1 root root 128 Dec 15 15:53 conhelp_en-US.php.signature
    -rw-r--r-- 1 root root 800 Dec 15 15:53 devmessages_en-US.php
    -rw-r--r-- 1 root root 128 Dec 15 15:53 devmessages_en-US.php.signature
    -rw-r--r-- 1 root root 59367 Dec 15 15:53 license.html
    -rw-r--r-- 1 root root 375882 Dec 15 15:53 messages_en-US.php
    -rw-r--r-- 1 root root 128 Dec 15 15:53 messages_en-US.php.signature

If some files are missing please find an example for CentOS 6 below:

  1. Download psa-locale-base-en-US-12.0.18-cos6.build1200141215.14.noarch.rpm from http://autoinstall.plesk.com/PSA_12.0.18/dist-rpm-CentOS-6-x86_64/base/ .

  2. Extract package to /usr/local/psa/admin/plib/locales/en-US/ :

    # mkdir test
    # cd test
    # wget http://autoinstall.plesk.com/PSA_12.0.18/dist-rpm-CentOS-6-x86_64/base/psa-locale-base-en-US-12.0.18-cos6.build1200141215.14.noarch.rpm
    # rpm2cpio psa-locale-base-en-US-12.0.18-cos6.build1200141215.14.noarch.rpm |cpio -idmv
    # cp ./usr/local/psa/admin/plib/locales/en-US/ /usr/local/psa/admin/plib/locales/en-US/

For other languages use plesk-l10n-12.0.18-cos6.build1200141215.14.noarch.rpm RPM package.In case you use any different OS system please choose package according to your OS architecture and version.

Have more questions? Submit a request
Please sign in to leave a comment.