DevOps Automation

 View Only
  • 1.  Failed to start Urban Code Deploy after upgrading from v6.2.7 to 7.1.0ial

    Posted Tue January 21, 2025 10:27 AM
    Edited by Jhon Freddy Osorio Alfonzo Tue January 21, 2025 10:28 AM

    Hi, 

    I am trying to start Urban Code Deploy after executing the version update (6.2.7 to 7.1.0) and the following error is occurring:

    2025-01-21 10:02:20,409 COT INFO  codestation.upgrader com.urbancode.ds.repl.codestation.upgrade.CodestationUpgrader - Upgrader Running.
    2025-01-21 10:02:20,591 COT ERROR main com.urbancode.container.tomcat.Container - Failed to start UrbanCode Deploy
    java.lang.RuntimeException: Failed to start UrbanCode Deploy
            at com.urbancode.ds.UDeployServer.start(UDeployServer.java:640)
            at com.urbancode.container.tomcat.Container.run(Container.java:139)
            at com.urbancode.ds.UDeployServer.main(UDeployServer.java:338)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.base/java.lang.reflect.Method.invoke(Unknown Source)
            at com.urbancode.launcher.Launcher.invokeMainMethod(Launcher.java:251)
            at com.urbancode.launcher.Launcher.launch(Launcher.java:176)
            at com.urbancode.launcher.Launcher.main(Launcher.java:104)
    Caused by: java.io.IOException: Invalid secret key format
            at java.base/com.sun.crypto.provider.JceKeyStore.engineLoad(Unknown Source)
            at java.base/java.security.KeyStore.load(Unknown Source)
            at com.urbancode.util.KeyStoreUtil.loadKeyStore(KeyStoreUtil.java:39)
            at com.urbancode.ds.UDeployServer.assertSecretKeyExists(UDeployServer.java:2590)
            at com.urbancode.ds.UDeployServer.initializeEncryptionKey(UDeployServer.java:2558)
            at com.urbancode.ds.UDeployServer.start(UDeployServer.java:590)
            ... 9 more

    In the environment I have java 11 configured:

    java version "11.0.22" 2024-01-16
    IBM Semeru Runtime Certified Edition 11.0.22.0 (build 11.0.22+7)
    Eclipse OpenJ9 VM 11.0.22.0 (build openj9-0.43.0, JRE 11 AIX ppc64-64-Bit Compressed References 20240201_767 (JIT enabled, AOT enabled)
    OpenJ9   - 2c3d78b48
    OMR      - ea8124dbc
    JCL      - ad0357f272 based on jdk-11.0.22+7)



    ------------------------------
    Jhon Freddy Osorio Alfonzo
    ------------------------------



  • 2.  RE: Failed to start Urban Code Deploy after upgrading from v6.2.7 to 7.1.0ial

    Posted Wed January 22, 2025 01:48 AM

    Seems like an issue with Java. While upgrading Java 8 to Java 11, we have to run some additional step of converting keystore mentioned here - https://community.ibm.com/community/user/wasdevops/blogs/osman-burucu/2021/10/20/ibm-java-8-eos-and-how-to-migrate 

    Please create a support ticket. Support team will provide keystore converter tool and instructions.



    ------------------------------
    Shabaz Kowthalam
    ------------------------------



  • 3.  RE: Failed to start Urban Code Deploy after upgrading from v6.2.7 to 7.1.0ial

    Posted Thu January 23, 2025 09:06 AM

    Keystore conversion was fine for us, we did a similar update just about a year ago, 7.0.3 to 7.3.2, but the same versions of Java.  Once we did the keystore work all has been well from there on.  We even went from IBM java to OpenJDK and it was fine, some path differences, but otherwise all was well.   The stability improvement that we got was MASSIVE, of course there were all agents that needed to be upgraded as well, but that was pretty smooth.



    ------------------------------
    Kevin Flanagan
    ------------------------------



  • 4.  RE: Failed to start Urban Code Deploy after upgrading from v6.2.7 to 7.1.0ial

    Posted 29 days ago

    Hi Shabaz,

    Thank you very much for your help, the information was very important. I already proceeded to create the case with IBM Support to obtain the tool that allows me to convert the encryption.keystore file so that it is compatible with the JRE provider.



    ------------------------------
    Jhon Freddy Osorio Alfonzo
    ------------------------------



  • 5.  RE: Failed to start Urban Code Deploy after upgrading from v6.2.7 to 7.1.0ial

    Posted 28 days ago

    Generally speaking, keytool comes with your JRE, not a separate download/kit.

     

     



    Thank you,

     

                Kevin

     

    Kevin M Flanagan | Sr DevOps Engineer  | Platform Technologies|GTO|MetLife         

    101 Metlife Way, Cary, NC 27513 | M: 984-218-5451 | Kevin.Flanagan@metlife.com

     

     

    The information contained in this message may be CONFIDENTIAL and is for the intended addressee only.  Any unauthorized use, dissemination of the information, or copying of this message is prohibited.  If you are not the intended addressee, please notify the sender immediately and delete this message.






  • 6.  RE: Failed to start Urban Code Deploy after upgrading from v6.2.7 to 7.1.0ial

    Posted 27 days ago

    Kevin, you are right about the keytool but this is a different tool Keystore Converter which is developed by UCD Team to convert agent/server keystore from one Java vendor to another.



    ------------------------------
    Shabaz Kowthalam
    ------------------------------