Unable to create backup: Unable to decrypt data: Data error (cyclic redundancy check). (Error code 23) at BCryptDecrypt()

Created:

2016-11-16 12:39:36 UTC

Modified:

2017-06-06 19:09:38 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to create backup: Unable to decrypt data: Data error (cyclic redundancy check). (Error code 23) at BCryptDecrypt()

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

Backup creation of subscription domain.tld fails with error:

Error in execute 'backup_encrypt' ' --encrypt-by-plesk -backup-files-map "C:\\Program Files (x86)\\Parallels\\Plesk\\PrivateTemp\   mp23820.tmp"': Unable to decrypt data: Data error (cyclic redundancy check). (Error code 23) at BCryptDecrypt()
at (AesCryptProvider::decrypt line 143)
at (zif_plesk_symmetric_decrypt line 2365)

WordPress application is installed inside of subscription.

Cause

Incorrect WordPress administrator password hash value stored in psa.WordpressInstanceProperties table.

Resolution

  1. Create Plesk database backup using article #213904125 .

  2. Find id and apsInstanceId values:

    mysql> select id, apsInstanceId from psa.wordpressinstances where subscriptionId in (select id from psa.subscriptions where object_id in (select id from psa.domains where name='domain.tld'));
    +----+---------------+
    | id | apsInstanceId |
    +----+---------------+
    | 2 | 3 |
    +----+---------------+
    1 row in set (0.00 sec)
  3. Find WordPress administrator password hash value from psa.WordpressInstanceProperties table using id value from step 2:

    mysql> select value from wordpressinstanceproperties where name='password' and wordpressinstanceid=2;
    +----------------------------------------------------------------+
    | value |
    +----------------------------------------------------------------+
    | $AES-128-7PuUJ9NSau+***************==$pNLL*********9$$OkfrqwSa |
    +----------------------------------------------------------------+
    1 row in set (0.00 sec)
  4. Find correct WordPress administrator password hash value from apsc.aps_registry_object_setting table using apsInstanceId value from step 2:

    mysql> select value from apsc.aps_registry_object_setting where registry_object_id in (select id from apsc.aps_registry_object where uid in (select registryResourceId from smb_apsinstances where id=3)) and name='admin_password';
    +----------------------------------------------------------------+
    | value |
    +----------------------------------------------------------------+
    | $AES-128-CBC$J9Nwau+***************==$pNLL87PuU*******Okfrqw== |
    +----------------------------------------------------------------+
    1 row in set (0.00 sec)
  5. Update psa.WordpressInstanceProperties table with correct password hash value:

    mysql> update wordpressinstanceproperties set value='$AES-128-CBC$J9Nwau+***************==$pNLL87PuU*******Okfrqw==' where name='password' and wordpressinstanceid=2;
Have more questions? Submit a request
Please sign in to leave a comment.