It is not possible to access to Plesk under admin with correct password

Created:

2016-11-16 13:22:15 UTC

Modified:

2017-08-08 13:39:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

It is not possible to access to Plesk under admin with correct password

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. It is not possible to access to Plesk under admin account:

    Error: You have entered incorrect username or password.
  2. The following error is being thrown in panel.log with enabled debug mode:

    [2016-07-27 18:12:59] ERR [1] Exception: PHP Warning: mdecrypt_generic(): An empty string was passed; File: /opt/psa/admin/plib/AdminPassword.php, Line: 61

    file: /opt/psa/admin/plib/Smb/Exception/Syntax.php
    line: 57
    code: 0
    trace: #0 (0): Smb_Exception_Syntax::handleError(integer '2', string 'mdecrypt_generic(): An empty string was passed', string '/opt/psa/admin/plib/AdminPassword.php', integer '61', array)
    #1 /opt/psa/admin/plib/AdminPassword.php(61): mdecrypt_generic(resource, string '')
    #2 /opt/psa/admin/plib/AdminPassword.php(101): AdminPassword::_decrypt(boolean false)
    #3 /opt/psa/admin/plib/ui/admin-password.php(65): AdminPassword::get()
    #4 /opt/psa/admin/plib/UIPointer.php(619): plesk__admin_password->accessItem(string 'POST', NULL null)
    #5 /opt/psa/admin/htdocs/plesk.php(36): UIPointer->access(string 'POST')
  3. It is verified with plesk bin admin --show-password utility that password is correct one.

Cause

Incorrect permissions or ownership in /etc/psa/ directory.

Resolution

  1. Check permission for the following files and directories:

    # ls -ld  /etc/psa/private/
    drwx------ 2 psaadm root 4096 Jul 23 03:57 /etc/psa/private/

    # ls -l /etc/psa/private/secret_key
    -rw------- 1 psaadm root 16 Jul 23 03:57 /etc/psa/private/secret_key

    # ls -l /etc/psa/.psa.shadow
    -rw------- 1 psaadm psaadm 62 Jul 23 04:14 /etc/psa/.psa.shadow
  2. Set correct permissions:

    # chmod 0700 /etc/psa/private/
    # chown psaadm:root /etc/psa/private/

    # chmod 0600 /etc/psa/private/secret_key
    # chown psaadm:root /etc/psa/private/secret_key

    # chown 0600 /etc/psa/.psa.shadow
    # chown psaadm:root /etc/psa/.psa.shadow
Have more questions? Submit a request
Please sign in to leave a comment.