1 2 Previous Next 16 Replies Latest reply on Mar 16, 2018 8:03 AM by Anand Vidyasagar

    UNDEPLOY_PACKAGE_ERROR

    Keyuri Pophale

      Hi,

       

      While uninstalling application from innovation studio, i am getting UNDEPLOY_PACKAGE_ERROR.

      I even tried undeploying application by command.

       

      Here is the entire error:

      UNDEPLOY_PACKAGE_ERROR: Undeploy Failed. Delete these objects manually using innovation studio and retry to undeploy: ERROR (0): ; Error Deleting role - Talent Management Head - [ERROR (302): Record Instance does not exist in the database.; Roles 000000000003829] :null

       

      What would be the solution for it?

      Thanks, in advance.

        • 1. Re: UNDEPLOY_PACKAGE_ERROR
          Gregory Kiyoi

          Keyuri,

           

          Can you provide the steps you are using to "uninstall" the application from innovation studio?  Also when you say you tried undeploying by command, you mean command line, correct?

           

          Laurent Matheo have you seen similar error?

           

          --GMK

          • 2. Re: UNDEPLOY_PACKAGE_ERROR
            Keyuri Pophale

            Hi,

             

            For uninstalling application from innovation studio, i clicked on the 'actions' tab in the workspace then clicked on 'uninstall application'.

            And yes, I also used command line to undeploy the application. the command that i used is:

                     

                      mvn com.bmc.arsys:rx-sdk-maven-plugin:undeploy -N

             

            Right now, the error that i am facing is:

            UNDEPLOY_PACKAGE_ERROR: ERROR (2): Server:null

             

            Thanks,

            Keyuri

             

             

            • 3. Re: UNDEPLOY_PACKAGE_ERROR
              Gregory Kiyoi

              Thanks for the update.  This application was created in innovation studio as a "codeless" app, correct? 

              • 4. Re: UNDEPLOY_PACKAGE_ERROR
                Keyuri Pophale

                This application contains custom java and angularJS code.

                • 5. Re: UNDEPLOY_PACKAGE_ERROR
                  Laurent Matheo

                  Hi

                   

                  Did you update the SDK with latest version? If yes can you please post the full logs when you use the maven command to undeploy your application?

                  • 6. Re: UNDEPLOY_PACKAGE_ERROR
                    Keyuri Pophale

                    Hi,

                    Yes i have updated the SDK with latest version. The logs that are generated are:

                     

                    Command: mvn com.bmc.arsys:rx-sdk-maven-plugin:undeploy -N -e

                     

                    [INFO] Scanning for projects...

                    [INFO]

                    [INFO] ------------------------------------------------------------------------

                    [INFO] Building resource-management-all 1.0-SNAPSHOT

                    [INFO] ------------------------------------------------------------------------

                    [INFO]

                    [INFO] --- rx-sdk-maven-plugin:17.11.0-SNAPSHOT:undeploy (default-cli) @ resource-management-all ---

                    [INFO] Executing undeploy mojo...

                    [INFO] undeploying package... com.persistent.resource-management

                    [INFO] Authenticating User developer ...

                    [INFO] User [developer] is authenticated

                    [INFO] Deploy Tool Utility Run Start time: Wed Feb 14 12:12:52 IST 2018

                    [INFO] UnDeploying the package com.persistent.resource-management

                    [INFO] response status:201

                    [INFO] The package is successfully staged (*not undeployed) and scheduled for undeployment.

                    [INFO]

                    ******************************************************

                    You may use the below status URI to check undeployment status under a valid logged in session.STATUS URI: https://developer6150.innovate.bmc.com/api/rx/application/bundle/deploymentstatus/IDGADG1AANVNMAPD8TBIPCM0HL18IQ

                    ******************************************************

                    [INFO] **** Checking completion status of the scheduled undeployment at server. ****

                    [INFO] UnDeployment in progress...

                    [INFO] Complete undeployment status response:

                    DeploymentStatus [packageDeployStatus=Error, packageName=com.persistent.resource-management, packageVersion=1.0-SNAPSHOT,  currentServersInSync=true, newlyAddedServers=[], jarToServerDeployStatusMap={remedy95aws=Deployed}, ErrorMessages=UNDEPLOY_PACKAGE_ERROR:

                    ERROR (2): Server:null]

                    [INFO] UnDeployment completed. UnDeployment Status as below :

                    DeploymentStatus [packageDeployStatus=Error, packageName=com.persistent.resource-management, packageVersion=1.0-SNAPSHOT,  currentServersInSync=true, newlyAddedServers=[], jarToServerDeployStatusMap={remedy95aws=Deployed}]

                    [INFO]

                    Total time taken in completing the Deploy Tool run: 7 sec

                    ****************************************

                    Final Status:Error

                    ****************************************

                    Deploy Tool Run End time: Wed Feb 14 12:12:59 IST 2018

                    [INFO] UNDEPLOYMENT FAILED. Check the detailed status with below url

                     

                     

                    STATUS URI: https://developer6150.innovate.bmc.com/api/rx/application/bundle/deploymentstatus/IDGADG1AANVNMAPD8TBIPCM0HL18IQ

                    [ERROR] ***Operation Error*** Please ensure supplied arguments

                    UnDeployment Failed with status:Error

                    [INFO] ------------------------------------------------------------------------

                    [INFO] BUILD FAILURE

                    [INFO] ------------------------------------------------------------------------

                    [INFO] Total time: 14.576 s

                    [INFO] Finished at: 2018-02-14T12:12:59+05:30

                    [INFO] Final Memory: 12M/245M

                    [INFO] ------------------------------------------------------------------------

                    [ERROR] Failed to execute goal com.bmc.arsys:rx-sdk-maven-plugin:17.11.0-SNAPSHOT:undeploy (default-cli) on project resource-management-all: error Running undeployment maven Tool: UnDeployment Failed with status:Error -> [Help 1]

                    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.bmc.arsys:rx-sdk-maven-plugin:17.11.0-SNAPSHOT:undeploy (default-cli) on project resource-management-all: error Running undeployment maven Tool

                            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)

                            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

                            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

                            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

                            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

                            at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

                            at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

                            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)

                            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

                            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)

                            at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

                            at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

                            at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:498)

                            at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

                            at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

                            at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

                            at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

                    Caused by: org.apache.maven.plugin.MojoFailureException: error Running undeployment maven Tool

                            at com.bmc.arsys.rx.sdk.UnDeployPackageMojo.execute(UnDeployPackageMojo.java:53)

                            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

                            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

                            ... 20 more

                    Caused by: java.lang.Exception: UnDeployment Failed with status:Error

                            at com.bmc.arsys.rx.deployment.bundle.BundleUndeployHandler.undeployPackage(BundleUndeployHandler.java:137)

                            at com.bmc.arsys.rx.sdk.UnDeployPackageMojo.execute(UnDeployPackageMojo.java:51)

                            ... 22 more

                    [ERROR]

                    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

                    [ERROR]

                    [ERROR] For more information about the errors and possible solutions, please read the following articles:

                    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

                     

                    Thanks,

                    Keyuri

                    • 7. Re: UNDEPLOY_PACKAGE_ERROR
                      Gregory Kiyoi

                      From the logging it appears you are on 17.11 SDK, but the Sandbox has been upgraded to 17.11 Update 1.  Can you download the latest SDK (17.11 Update 1) and retry the command line - see Setting up your IDE and installing Innovation Suite SDK - Documentation for Innovation Suite - BMC Documentation for download link.

                       

                      Thank you Laurent Matheo

                      • 8. Re: UNDEPLOY_PACKAGE_ERROR
                        Keyuri Pophale


                        Hi,

                         

                        Thanks for your input.

                        I updated my sandbox to 17.11 Update 1 as mentioned in the document.

                        Then executed the command to undeploy:

                         

                        mvn com.bmc.arsys:rx-sdk-maven-plugin:undeploy -N

                         

                        I am still facing the error:

                         

                        {"packageDeployStatus":"Error","packageName":"com.persistent.resource-management","packageVersion":"1.0-SNAPSHOT","errorMessage":"UNDEPLOY_PACKAGE_ERROR:\nERROR (2): Server:null","currentServersInSync":true,"newlyAddedServers":[],"serverDeploymentStatus":{"remedy95aws":"Deployed"}}

                         

                        If i try undeploying through innovation studio:

                            

                             application->workspace->actions->uninstall application

                         

                        the error still persists:

                         

                             UNDEPLOY_PACKAGE_ERROR: ERROR (2): Server:null

                         

                        If i restart my innovation studio, would it remove all my applications?

                         

                        Thanks,

                        Keyuri

                        • 9. Re: UNDEPLOY_PACKAGE_ERROR
                          Gregory Kiyoi

                          Restarting the sandbox will not remove any applications.

                          • 11. Re: UNDEPLOY_PACKAGE_ERROR
                            Kulbhushan Verma

                            Hi

                            Could you please try restart of innovation studio and then attempt undeploy.

                             

                            Thanks

                            Kulbhushan

                            • 12. Re: UNDEPLOY_PACKAGE_ERROR
                              Neeti Rai

                              Kulbhushan Verma

                               

                              We tried the same but it didn't work.

                              Is it possible for you to please remove this application 'Resource Management' from the sandbox https://developer6150.innovate.bmc.com through back end.

                               

                              If once it is  removed i can try back from scratch as I did for my earlier sandbox.

                              • 13. Re: UNDEPLOY_PACKAGE_ERROR
                                Kulbhushan Verma

                                Neeti Rai

                                 

                                It looks there is an issue with roles data.

                                Can you try deleting the objects of this app from innovation studio.

                                Thereafter please use command line undeploy.

                                 

                                if this does not help, then we can proceed with backend app deletion.

                                • 14. Re: UNDEPLOY_PACKAGE_ERROR
                                  Keyuri Pophale

                                  Kulbhushan Verma

                                  Hello,

                                   

                                  Thanks for your suggestion.

                                  I deleted the role objects of this app from Innovation studio.

                                  However, It did not work. I got the same error.

                                   

                                  Could you please delete this application 'Resource Management' from the sandbox https://developer6150.innovate.bmc.com through back end?

                                  Also, do I need to update my sdk to any newer release before starting the application  development.

                                  Currently my SDK version is 17.11.01

                                   

                                  It would be helpful if you could remove my application by today so that i can continue on it at the earliest.

                                   

                                  Thank You.

                                   

                                  1 2 Previous Next