Original Message:
Sent: Thu September 21, 2023 07:26 AM
From: Jan-Willem Steur
Subject: Issue while Maximo to MAS Upgrade
Hi Dhiraj,
Did you tried to retrieve the crypto keys from the MX76 database (in some cases they exist, but sometime not). You can remove the old crypto keys in your MAS Manage project on OpenShift (secret xxxxx-manage-encryptionsecret-operator) and leave them empty or copy in the crypto keys you retrieved from your MX76 database. At least we had a similar case (not exactly the same error stack trace) where this approach helped us to successful connect to the database after updatedb.
I found this procedure step back in our internal WIKI space which we use to store all our procedures and instructions:
In OpenShift to avoid Crypto Keys errors, edit the secrets: maximopropertysecret, encryptionsecret and encryption-secret operator, with empty values for MXE_SECURITY_CRYPTO_KEY, MXE_SECURITY_CRYPTOX_KEY, MXE_SECURITY_OLD_CRYPTO_KEY and MXE_SECURITY_OLD_CRYPTOX_KEY properties
------------------------------
Jan-Willem Steur
Jan-Willem
Original Message:
Sent: Thu September 21, 2023 06:21 AM
From: Dhiraj Panjwani
Subject: Issue while Maximo to MAS Upgrade
Hi Jan-Willem-Steur,
Thanks for your inputs and suggestions.
We have not installed additional language packs/locales. We tried to convert Oracle database to db2 and the updatedb was successful.
So if there was database issue, we could have received error during updatedb. But as you pointed out the issue with System Install date, I would request your help to understand which table I would need to update to fix this issue. Also, the logs also mention about error related to bad padding: err] javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
Appreciate your help .
Thanks,
Dhiraj Panjwani
------------------------------
Dhiraj Panjwani
Original Message:
Sent: Thu September 21, 2023 03:03 AM
From: Jan-Willem Steur
Subject: Issue while Maximo to MAS Upgrade
Hi Dhiraj,
According to the stack trace it seems that the date format on the database you want to migrate is invalid according to the date format that is required on MAS8. There are multiple reasons that can cause this issue. Did you have installed more language packs / locales on the MX database that are not yet available on your MAS8 instance?
The stack trace is also mentioning this error:
BMXAA4077E - The format for the start date is not valid. The system install date that is stored on the database is corrupt. Contact your system administrator to ensure that the database was installed properly.
Can you try to sync / repair or update the system install date on the database you want to migrate, just before you start the migration procedure again? That might solve the issue.
------------------------------
Jan-Willem Steur
Jan-Willem
Original Message:
Sent: Wed September 20, 2023 12:38 PM
From: Dhiraj Panjwani
Subject: Issue while Maximo to MAS Upgrade
Hi Team,
I am getting the below error while the all pod is trying to connect to database. Also the UpdateDB was successful .
BMXAA6453I - The server is connecting to database version: V8600-60
[err] javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
[err] at java.base/com.sun.crypto.provider.CipherCore.unpad(CipherCore.java:1028)
[err] at java.base/com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1109)
[err] at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:906)
[err] at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)
[err] at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2202)
[err] at psdi.util.MXCipher.decData(MXCipher.java:293)
[err] at psdi.server.MXServer.packagingCheck(MXServer.java:1952)
[err] at psdi.server.MXServer.boot(MXServer.java:1631)
[err] at psdi.server.MXServer.start(MXServer.java:3858)
[err] at psdi.servlet.MAXIMOStartupServlet.init(MAXIMOStartupServlet.java:116)
[err] at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:301)
[err] at [internal classes]
[err] at com.ibm.ws.webcontainer.osgi.WebContainer.access$100(WebContainer.java:112)
[err] at com.ibm.ws.webcontainer.osgi.WebContainer$3.run(WebContainer.java:994)
[err] at [internal classes]
[err] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[err] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[err] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[err] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[err] at java.base/java.lang.Thread.run(Thread.java:839)
20 Sep 2023 16:04:03:683 [FATAL] [maximo] BMXAA6473E - The MXSERVER server could not be started. Check the log file for other errors to determine the cause.
psdi.util.MXSystemException: BMXAA4077E - The format for the start date is not valid. The system install date that is stored on the database is corrupt. Contact your system administrator to ensure that the database was installed properly.
at psdi.server.MXServer.packagingCheck(MXServer.java:1956) ~[businessobjects.jar:?]
at psdi.server.MXServer.boot(MXServer.java:1631) ~[businessobjects.jar:?]
at psdi.server.MXServer.start(MXServer.java:3858) [businessobjects.jar:?]
at psdi.servlet.MAXIMOStartupServlet.init(MAXIMOStartupServlet.java:116) [mboweb.war:?]
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:301) [com.ibm.ws.webcontainer_1.1.76.jar:?]
at [internal classes]
I have already performed the ./resetcrypto.sh command but still the same problem.
Appreciate if someone can provide some pointers here.
Thanks,
Dhiraj Panjwani
------------------------------
Dhiraj Panjwani
------------------------------