UNSOLVED

ahovda

updated

3 years ago

A

ahovda

1 Rookie

•

11 Posts

•

5 Points

0

610

December 14th, 2023 21:58

3.10.2 to 4.0 migration issue (Unable to decrypt the backup file)

Running through all the steps in the migration but fails to decrypt the backup file after it being transferred to the receiving appliance. I'm using the same, valid passphrase on both sides. 
Stream Operation

Source Appliance
osl01ome.svg.openit.local

        
Start Time
2023-12-14 21:52:02.432

        
End Time
2023-12-14 21:52:06.138

        
Status
Failed

Running import process.
Pre-check completed.
Check if there are jobs in running state.
No jobs were found in running state or previous running jobs have been stopped.
Completed the validation of running jobs.
Initiated streaming the backup file from the source OME.
Successfully completed streaming the backup file from the source OME.
Backup file extraction started.
Unable to decrypt the backup file. Please check the provided encryption passphrase.
Failed to perform import task.

Task Failed. Completed with errors.
  • ahovda

    1 Rookie

    •

    11 Posts

    •

    5 Points

    0

    0

    Posted December 14th, 2023 23:22

    I enabled debug logging and afaict the backup file encryption produced by 3.10.2 is incompatible with 4.0, possibly due to differences in OpenSSL versions used on both sides.

    [DEBUG] 2023-12-14 22:08:13.648 [pool-3-thread-1] IssueCommands - ++++++++ Got the output stream +++++++++
    [DEBUG] 2023-12-14 22:08:14.117 [BackupRestore-Task-Pool-2] IssueCommands - Reading from Process completed.
    [ERROR] 2023-12-14 22:08:14.117 [BackupRestore-Task-Pool-2] CommandUtil - executeBashScriptCommand() - Command did not run successfully, Response  : *** WARNING : deprecated key derivation used.Using -iter or -pbkdf2 would be better.error writing output file*** WARNING : deprecated key derivation used.Using -iter or -pbkdf2 would be better. 
    [ERROR] 2023-12-14 22:08:14.119 [BackupRestore-Task-Pool-2] CommandUtil - decrypt: Failed to decrypt backup archive: 
    [ERROR] 2023-12-14 22:08:14.222 [BackupRestore-Task-Pool-2] OmeApplianceImportWorkflow - The Import operation is failed.

    (edited)

  • DELL-Joey C

    Moderator

    •

    4170 Posts

    •

    20965 Points

    0

    0

    Posted December 15th, 2023 03:34

    Hi,

     

    I'm pretty sure you have already used the required for the encryption passphrase, else you won't be stating you have entered on both sides. When you have finished the steps to migrate in 3.10.2 and proceed to 4.0 appliance to start the process, was the 3.10.2 in maintenance mode?

    DELL-Joey C

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’ if I did. 

  • ahovda

    1 Rookie

    •

    11 Posts

    •

    5 Points

    0

    0

    Posted December 15th, 2023 08:24

    @DELL-Joey C​ 

    The target polls and waits until the source has completed the MAINTENANCE_PENDING state (where it compiles and encrypts the backup) and enters MAINTENANCE before it allows you to continue, so yes it would not get to the point where it streams the backup file unless the source was ready. The GUI checks that the passphrase is valid.

    Allow me to speculate: 
    When the restore script executes openssl to decrypt the backup file, it chokes on the unexpected warning from openssl ("deprecated key derivation used. Using -iter or -pbkdf2 would be better") and simply fails the operation.

    Afaict, that warning message was added to openssl 1.1.1, https://unix.stackexchange.com/questions/507131. In the bootloader I can see that OME 4.0 is based on SUSE 15 SP4. SUSE 15 shipped with openssl 1.1.0. So maybe the OME team initially based OME 4 on SUSE 15 or 15 SP1 but later decided to upgrade to SUSE 15 SP4, which includes openssl 1.1.1, according to https://www.suse.com/support/kb/doc/?id=000019582 . At least that could explain why it may have worked during previous release testing but now fails. 

    So either fix the parameters that the script passes to openssl or make it ignore the warnings. (Or even better, drop the script altogether and rewrite the encrypt/decrypt logic in java, like the rest of the backuprestore module)

    HTH, Ådne

    (edited)

  • DELL-Joey C

    Moderator

    •

    4170 Posts

    •

    20965 Points

    0

    0

    Posted December 15th, 2023 09:49

    Hi,

     

    Understood. You know more that I do, now. I'd probably would recommend making a call to the OME support line to get case up, let the engineering investigate if that's the root cause. 

    DELL-Joey C

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’ if I did. 

  • beebie

    1 Rookie

    •

    3 Posts

    0

    0

    Posted December 19th, 2023 07:28

    Hi,

    I'm having the same issues and errors.

    After working around the proxy issues and creating a local NFS repository this is the new error that blocked the migration to 4.0

    2023.12.13-20:13:29 ome_backup_encryption - Decrypting the backup file
    2023.12.13-20:13:29 ome_backup_encryption - Current version decrypt failed, trying lower version decrypt using md5
    2023.12.13-20:13:30 ome_backup_encryption - Decryption command result -> 0
    2023.12.13-20:13:30 ome_backup_encryption - Hash comparison done.
    2023.12.13-20:13:30 ome_backup_encryption - error: Hash comparison failed

    [ERROR] 2023-12-13 21:13:30.865 [BackupRestore-Task-Pool-2] CommandUtil - executeBashScriptCommand() - Command did not run successfully, Response  : *** WARNING : deprecated key derivation used.Using -iter or -pbkdf2 would be better.error writing output file*** WARNING : deprecated key derivation used.Using -iter or -pbkdf2 would be better. 
    [ERROR] 2023-12-13 21:13:30.866 [BackupRestore-Task-Pool-2] CommandUtil - decrypt: Failed to decrypt backup archive: 
    [ERROR] 2023-12-13 21:13:30.870 [BackupRestore-Task-Pool-2] OmeApplianceImportWorkflow - The Import operation is failed.

  • DELL-Marco B

    Moderator

    •

    3980 Posts

    0

    0

    Posted December 19th, 2023 09:49

    Hello,

    as per Joey suggestion please contact the OME expert as this is a complex issue and they will support it on that.

    DELL- Marco B

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • beben

    1 Message

    0

    0

    Posted January 9th, 2024 09:47

    Hello

    How to contact the OME Support please ?

    (edited)

  • DELL-Marco B

    Moderator

    •

    3980 Posts

    0

    0

    Posted January 9th, 2024 15:42

    You can call Dell's technical support line. The phone number varies by country, so please check the Dell website or your product documentation for the specific number for your region.

    DELL- Marco B

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • VlPs

    1 Rookie

    •

    16 Posts

    0

    0

    Posted January 25th, 2024 11:16

    Same problem here...

    Encryption password is correct, but job on target appliance shows error:

    Backup file extraction started.
    Unable to decrypt the backup file. Please check the provided encryption passphrase.
    Failed to perform import task.
    Task Failed. Completed with errors
    Its no go for me now...
  • DELL-Marco B

    Moderator

    •

    3980 Posts

    0

    0

    Posted January 25th, 2024 15:11

    Here are the recommended steps:

    Verify OpenSSL Versions: Check the OpenSSL versions on both the source and target appliances, as there might be differences affecting the encryption process.

    Examine Scripts: Review the backup and restore scripts for any outdated encryption parameters and consider updating them.

    Contact OME Support: For a detailed resolution, please contact OME support. You can find the contact number for your region on the Dell Support website under 'Contact Support'.

    We appreciate your patience and are committed to resolving your issue promptly.

    DELL- Marco B

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!