My Oracle Support Banner

Cryptography Error With OUD Restore Command - javax.crypto.BadPaddingException: Given final block not properly padded (Doc ID 2032487.1)

Last updated on NOVEMBER 18, 2022

Applies to:

Oracle Unified Directory - Version 11.1.2.1.0 to 11.1.2.3.0 [Release 11g]
Information in this document applies to any platform.

Symptoms

When using the OUD restore command to restore an encrypted backup, the restore fails with the following error message.

$OUD_INSTANCE/bin/restore -h localhost -p <ADMIN_PORT> -D "cn=<DS_ADMIN>" -j ~/pwd-file -I 20150709021130Z -d $OUD_INSTANCE/ldif
Restore task 20150709121435102 scheduled to start immediately
[09/Jul/2015:12:14:35 +1000] severity="NOTICE" msgCount=0 msgID=9896349 message="Restore task 20150709121435102 started execution"
[09/Jul/2015:12:14:35 +1000] severity="NOTICE" msgCount=1 msgID=9896306 message="The backend cn=<BACKEND_DB>,cn=Workflow Elements,cn=config is now taken offline"
[09/Jul/2015:12:14:35 +1000] severity="SEVERE_ERROR" msgCount=2 msgID=10748221 message="An unexpected error occurred while attempting to restore backup 20150709021130Z from /home/oracle/Oracle/Middleware/asinst_3/OUD/ldif:  An error occurred while attempting to restore the files from backup 20150709021130Z: javax.crypto.BadPaddingException: Given final block not properly padded (CipherInputStream.java:321 PushbackInputStream.java:379 InflaterInputStream.java:227 ZipInputStream.java:265 BackupManager.java:1411 BackupManager.java:809 BackendImpl.java:1769 RestoreTask.java:370 Task.java:1167 TaskThread.java:212)"
[09/Jul/2015:12:14:35 +1000] severity="INFORMATION" msgCount=3 msgID=9437595 message="Local DB backend <BACKEND_DB> does not specify the number of lock tables: defaulting to 97"
[09/Jul/2015:12:14:35 +1000] severity="INFORMATION" msgCount=4 msgID=9437594 message="Local DB backend <BACKEND_DB> does not specify the number of cleaner threads: defaulting to 24 threads"
[09/Jul/2015:12:14:35 +1000] severity="INFORMATION" msgCount=5 msgID=9437615 message="Local DB backend <BACKEND_DB> does not specify the percentage of the heap space to allocate to the database cache: defaulting to 35 percent"
[09/Jul/2015:12:14:35 +1000] severity="INFORMATION" msgCount=6 msgID=9437613 message="Local DB backend <BACKEND_DB> does not specify the size of the file handle cache: sizing automatically to use 100 file descriptors"
[09/Jul/2015:12:14:35 +1000] severity="NOTICE" msgCount=7 msgID=8847402 message="The database backend cn=<BACKEND_DB>,cn=Workflow Elements,cn=config containing 202 entries has started"
[09/Jul/2015:12:14:35 +1000] severity="NOTICE" msgCount=8 msgID=9896350 message="Restore task 20150709121435102 finished execution"
Restore task 20150709121435102 did not complete successfully

 Note that some encrypted backup files were able to be restored while others failed consistently.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.